XSS achievable in innerHTML without equals sign using a new HTML element
Arbitrary JavaScript can be executed via an innerHTML injection without using an equals sign by leveraging a newly introduced HTML element.
Security & privacy PortSwigger Research 18 Nov 2026 Attack Prototype evidence
Published as “Achieving the impossible: XSS in innerHTML without equals”
Why it matters
The discovery shows that assumptions about XSS impossibility can be broken by new HTML features, urging browser vendors to revisit sanitization and spec details.
Summary
The author discovered that a recently added HTML element can clone child nodes of a selected option, causing an SVG <script> element inserted via innerHTML to execute when the clone is appended. This bypass solves the long-standing "innerHTML context but no equals allowed" impossible lab. The technique works in Safari 27.2 but was mitigated in Chrome 153 after a change to the already-started flag. The write-up includes a proof-of-concept payload and analysis of the underlying spec behavior.
What they found 1
- Chrome changed behavior to prevent the technique, but Safari 27.2 still permits it.
“Although this payload no longer works in Chrome due to a behavior change introduced in Chrome 153, I have confirmed that it still works in Safari 27.2, the latest version at the time of writing.”
Caveats 3
- The technique no longer works in Chrome 153 because the already-started flag is now set for SVG elements created via innerHTML.
- Although this payload no longer works in Chrome due to a behavior change introduced in Chrome 153, I have confirmed that it still works in Safari 27.2, the latest version at the time of writing.
- This behavior appears to have been unintended and was subsequently changed in Chromium.
What’s new here 4
- Identifies a new HTML element that clones child nodes, enabling XSS without an equals sign.
- Shows that cloning an SVG <script> via innerHTML can trigger script execution.
- Documents a Chrome mitigation (change to already-started flag) while Safari remains vulnerable.
- Provides a working payload that solves an "impossible" web security lab.