Skip to content

In-depth lesson · Mutation XSS and sanitiser bypass

Reports behind this point

Consider the context where the sanitised output is placed. If it is placed inside an attribute, inside a script block, or inside a style block, different parsing rules apply. Mutation XSS often arises when the context changes between sanitisation and rendering. Test each context separately.