XSS in innerHTML without equals sign solved using new HTML element
Researcher Masato Kinugawa found a way to execute JavaScript in innerHTML without an equals sign, using a newly introduced HTML element.
Reported by PortSwigger Research
First reported Summary updated
- Public PoC
- Yes
- Exploited
- Not known
- Severity
- Not rated
What happened
Masato Kinugawa discovered a technique to execute JavaScript in an innerHTML context without using an equals sign, solving a challenge previously considered impossible.1
The technique uses a newly introduced HTML element that clones child nodes of the selected element, inspired by a DOMPurify bypass by Kabir Acharya.1
The payload no longer works in Chrome due to a behaviour change in Chrome 153, but still works in Safari 27.2.1
Who is affected
- Safari, 27.21
Is there a public exploit?
Yes, public A public proof-of-concept payload is provided that executes alert(1) in Safari 27.2.1
Exploited in the wild?
Not known None of the sources reports attacks using it so far.
For bug hunters
This is a cross-site scripting (XSS) bypass that works in an innerHTML context where an equals sign is filtered. Such flaws appear in programs that sanitise HTML input but allow certain tags or attributes. Look for HTML injection points where innerHTML is used and test whether the new element can clone and execute scripts without an equals sign.
What to test
- Test innerHTML injection with the new element and a script payload without equals.
- Check if the application filters equals signs but allows other characters.
- Try SVG-based payloads to avoid syntax errors from following content.
- Verify execution in Safari 27.2 and other browsers.
Written by bugbounty.wiki with AI from its source. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.
Coverage
The article this story is based on. Each headline opens the outlet's own article.
-
1
PortSwigger Research
Achieving the impossible: XSS in innerHTML without equals“I'm delighted to introduce Masato Kinugawa as a guest web security researcher on the PortSwigger research channel.”