Skip to content

In-depth lesson · Mutation XSS and sanitiser bypass

Year by year

What the disclosed Mutation XSS and sanitiser bypass reports of each year show, newest first: what first appeared, what kept working and what turned up less.

Back to the lesson 1 to 50 of 52

2026

11 points

New this year4

  1. Creating a MathML annotation-xml element with encoding set to text/html, appending it to the document, assigning innerHTML containing a style block with an img carrying an onerror handler fired the handler, a new technique.

    Seen in 1 report
  2. Setting a p element's innerHTML to markup with an is attribute holding a quote and an event handler, removing the is attribute, reading innerHTML again and re-parsing the output let the handler survive, a new bypass.

    Seen in 1 report
  3. Crafting nested elements that reset the namespace to null plus an iframe with a srcdoc script, passing it through an XML-aware sanitizer, showed the iframe was treated as inert and then became live, a new technique.

    Seen in 1 report
  4. Providing a crafted XML fragment with a template element that resets the namespace and a script tag, passing it through a DOM-based sanitizer, instantiated the script in the null namespace, a new bypass.

    Seen in 1 report

Kept working5

  1. A large group of Chromium reports shared the same shape: a CSSOM serialiser emitted a decoded identifier without re-escaping, breaking the round-trip invariant for sanitizers that read and re-inject CSS.

    Seen in 6 reports
  2. Posting a comment containing a blockquote whose cite attribute hid a special newline character made wpautop() turn it into markup that broke out of the attribute.

    Seen in 2 reports
  3. Copying crafted attachment markup and pasting it into the Trix editor bypassed the sanitiser and ran script.

    Seen in 1 report
  4. Enabling the markdown_placeholders feature flag, adding a JSON file with HTML containing a script tag, creating a tag whose name contained an HTML payload referencing the JSON file made the Markdown render run script.

    Seen in 1 report
  5. Sending an HTML email with a style attribute containing CSS character escapes and opening it in Roundcube in HTML mode made a background image request to an attacker-controlled URL.

    Seen in 1 report

Turned up less2

  1. The pattern of relying on a parsing behaviour change in a specific browser version to get script past a sanitiser, seen in 2017, was rarer in 2026 as reports focused on CSSOM serialisation and namespace confusion.

    Seen in 1 report
  2. The technique of using an XML entity in an SVG navigation icon upload to bypass a whitelist, seen in 2017, did not appear in the 2026 reports.

    Seen in 1 report

2025

7 points

New this year1

  1. Overwriting the file_type=lsif response with crafted JSON, refreshing, clicking the grey square and checking whether markup injected through the code navigation response ran script gadgets in data attributes was a new technique.

    Seen in 1 report

Kept working6

  1. Allowing math and style together, reflecting a parameter through the sanitize helper and sending crafted markup let script survive sanitisation.

    Seen in 2 reports
  2. Allowing svg and style together, reflecting a parameter through the sanitize helper and sending crafted markup let script survive sanitisation.

    Seen in 1 report
  3. Copying crafted attachment markup and pasting it into the Trix editor bypassed the sanitiser and ran script.

    Seen in 1 report
  4. Allowing the style tag explicitly, reflecting a parameter through the sanitize helper and sending crafted markup let it survive filtering.

    Seen in 1 report
  5. Allowing the noscript element, reflecting a parameter through the sanitize helper and sending crafted nesting left script markup in the output.

    Seen in 1 report
  6. On a self-hosted instance, creating a public group and subgroup, finding an asset icon URL, creating a public project named after the hashed SVG file with a malicious SVG, then adding a task whose name contained an SVG use element pointing to it resulted in XSS.

    Seen in 1 report

2024

5 points

New this year1

  1. Inserting a newline in the DOCTYPE so the check that marks files unsafe failed to match and the file was served with inline disposition and a .xhtml filename was a new bypass.

    Seen in 1 report

Kept working4

  1. Sending a message with many unclosed p tags followed by an extra tag with an event handler bypassed the sanitiser by increasing the number of unclosed tags to fit larger tags.

    Seen in 1 report
  2. Setting a full name containing an unclosed anchor carrying gadget classes and an API transfer URL as its href made a victim click anywhere on a merge request page and sent an API PUT request on their behalf.

    Seen in 1 report
  3. Creating a wiki page titled _sidebar with crafted content showed that the Banzai reference filter expanded references inside HTML attributes and ran script.

    Seen in 1 report
  4. Creating a .xhtml file containing a script and an iframe, inserting a newline in the DOCTYPE, then viewing the raw file on an iOS device served it as HTML.

    Seen in 1 report

2023

5 points

New this year1

  1. Injecting a meta refresh tag pointing at a data URL containing script was a new technique, though Gmail's CSP stopped it from running.

    Seen in 1 report

Kept working4

  1. Allowing svg and use tags, passing an SVG use element whose href was a base64-encoded SVG data URI containing an image with an error handler, and rendering the output fired the handler.

    Seen in 2 reports
  2. Configuring select and style in the class-level allowed tags, reflecting a parameter through the sanitize helper and sending a crafted select and style payload ran script.

    Seen in 1 report
  3. In the Gmail AMP playground, placing HTML-like text after a CSS property declaration inside the style amp-custom block made a closing style tag without its final bracket parse as a close tag.

    Seen in 1 report
  4. Writing a hyperlink in RDoc's own link syntax using the javascript scheme let it survive into the generated HTML.

    Seen in 1 report

2022

8 points

New this year2

  1. Using the data-disable-with attribute, which the sanitiser did not strip and which Rails-ujs turned into HTML on click, got script or a form submission past the directive, a new technique.

    Seen in 1 report
  2. Splitting a tag name with a line break to get past a filter that removes HTML tags was first seen in the disclosed reports.

    Seen in 1 report

Kept working6

  1. Allowing math and style together, reflecting a parameter through the sanitize helper and sending crafted markup let script survive sanitisation.

    Seen in 1 report
  2. Configuring select and style in the class-level allowed tags, reflecting a parameter through the sanitize helper and sending a crafted select and style payload ran script.

    Seen in 1 report
  3. Allowing svg and style together, reflecting a parameter through the sanitize helper and sending crafted markup let script survive sanitisation.

    Seen in 1 report
  4. Testing the esdoc-publish-html-plugin HTML sanitiser with crafted markup bypassed it to run script.

    Seen in 1 report
  5. Pasting crafted markup into an issue comment showed that the syntax highlighting filter built HTML from unsanitised attributes or the emoji custom element inserted its name attribute into an image tag without escaping.

    Seen in 1 report
  6. Adding CI configuration with job names containing crafted markup, opening the job list, erasing a job's logs and artifacts, then clicking Retry and the error message ran script or submitted a form.

    Seen in 1 report

2021

6 points

New this year1

  1. Using a path traversal after an allowed prefix to get past a startsWith allow-list on the use element's href was a new technique in the disclosed reports.

    Seen in 1 report

Kept working5

  1. Crafting a Markdown link containing special characters and an event handler broke out of an HTML attribute and ran script when the victim viewed the message.

    Seen in 1 report
  2. Parsing markup containing noscript tags through DOMParser APIs resulted in mutation XSS.

    Seen in 1 report
  3. Feeding crafted markup through ZeptoJS revealed a potential mutation XSS vulnerability.

    Seen in 1 report
  4. Assigning sanitised markup to an iframe srcdoc attribute bypassed the sanitiser.

    Seen in 1 report
  5. Adding an HTML output to a notebook containing an SVG use element whose href pointed to an allowed icon path followed by a path traversal to an attacker-controlled SVG ran script when the notebook was viewed in Firefox.

    Seen in 1 report

2020

7 points

New this year2

  1. After the fix wrapped the input in an extra CDATA block, repeating the attack with the closing sequence doubled escaped the added wrapper, showing a new bypass technique.

    Seen in 1 report
  2. Sending an HTML email whose style tag used CSS url() values with encoded characters bypassed the sanitiser and injected a form when the email was opened, a new vector in the disclosed reports.

    Seen in 1 report

Kept working5

  1. Feeding crafted markup through an AngularJS application's sanitisation path showed that it mutated into executable markup.

    Seen in 1 report
  2. Creating a custom map whose name contained the CDATA closing sequence followed by markup and exporting it as KML let the name escape the CDATA block in the response.

    Seen in 1 report
  3. Assigning markup containing a template element to innerHTML produced mutation XSS or DOM XSS due to incorrect parsing.

    Seen in 1 report
  4. A DOMPurify bypass relying on HTML namespace confusion was successful.

    Seen in 1 report
  5. Pasting markup combining svg, style and title elements into a page that sanitises clipboard content bypassed the sanitiser.

    Seen in 1 report

2017

1 point

Kept working1

  1. Uploading an SVG navigation icon with an XML entity and an onload handler bypassed the whitelist and fired on the partners dashboard and shop admin panel.

    Seen in 1 report