Web Security · Client-side
Mutation Cross-Site Scripting
Also known as: mXSS, Mutation XSS
A form of Cross-Site Scripting where HTML that passed a sanitizer becomes unsafe when a browser parses or re-parses it in a different context. Serializing sanitized markup and assigning it through innerHTML can revive executable content. Use text-only insertion for plain text, or sanitize again at the final HTML sink.