CVE-2026-92106 lazy_html serializes SVG and MathML style and script text unescaped, allowing mutation XSS
Attackers can execute arbitrary JavaScript via mutation XSS when untrusted HTML containing SVG or MathML is parsed and serialized by the lazy_html library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-92106?
CVE-2026-92106 is a low-severity cross-site scripting vulnerability in dashbitco lazy_html, published on 25 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in dashbitco lazy_html allows mutation XSS via a parse and serialize round-trip of attacker-supplied HTML.
LazyHTML.to_html/2 and LazyHTML.Tree.to_html/2 decide whether to escape an element's text from its tag name alone. A style or script element inside SVG or MathML foreign content is parsed with character references decoded, but is serialized as an HTML raw-text element, so its text is emitted unescaped. Encoded markup such as </style><img src=x onerror=...> inside <svg><style> therefore closes the element on re-parse and becomes live markup. Applications that parse untrusted HTML with lazy_html, filter the document or tree, and serialize it for display are affected, since the payload is a plain text node that no element or attribute filter sees.
This issue affects lazy_html: from 0.1.0 before 0.1.13.
Weakness: CWE-79
Which versions are affected by CVE-2026-92106?
1 open source package ship an affected version, including lazy_html.
| Package | Affected | Fixed in |
|---|---|---|
lazy_html Hex | From 0.1.0 | 0.1.13 |
How do I fix CVE-2026-92106?
Upgrade lazy_html to 0.1.13 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-92106 being exploited?
There is no known exploitation of CVE-2026-92106 in the wild and no public exploit code.
Sources
Also known as EEF-CVE-2026-92106, GHSA-8rqp-v692-v82q.