{"id":"CVE-2026-92106","aliases":["CVE-2026-92106","EEF-CVE-2026-92106","GHSA-8rqp-v692-v82q"],"related":[],"kind":"vulnerability","state":"published","title":"lazy_html serializes SVG and MathML style and script text unescaped, allowing mutation XSS","summary":"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.\n\nLazyHTML.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 &lt;/style&gt;&lt;img src=x onerror=...&gt; 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.\n\nThis issue affects lazy_html: from 0.1.0 before 0.1.13.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.\n\nLazyHTML.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 &lt;/style&gt;&lt;img src=x onerror=...&gt; 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.\n\nThis issue affects lazy_html: from 0.1.0 before 0.1.13.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper 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.\n\n`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 `&lt;/style&gt;&lt;img src=x onerror=...&gt;` 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.\n\nThis issue affects lazy_html: from 0.1.0 before 0.1.13.\n\n## Impact\n\nAn attacker who can submit HTML to an application that sanitizes it with lazy_html can run script in the browsers of users who view the sanitized output.","format":"markdown","source":"eef"}],"published":"2026-09-25T09:33:13.051Z","modified":"2026-11-26T17:23:09.123Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":2.3,"rating":"LOW"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":2.3,"rating":"LOW"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.0","fixed":"0.1.13","status":"affected"}],"vendor":"dashbitco","product":"lazy_html","package":"lazy_html","cpe":"cpe:2.3:a:dashbitco:lazy_html:*:*:*:*:*:*:*:*","repo":"https://github.com/dashbitco/lazy_html","source":"cvelist"},{"ranges":[{"type":"git","introduced":"1dee15746c024916b3110af8b168c2f3b3065fbd","fixed":"f32c7fd6223225b68bc8691c78b6d4a77972f1d5","status":"affected"}],"vendor":"dashbitco","product":"lazy_html","package":"dashbitco/lazy_html","cpe":"cpe:2.3:a:dashbitco:lazy_html:*:*:*:*:*:*:*:*","repo":"https://github.com/dashbitco/lazy_html","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"0.1.13"}],"ecosystem":"Hex","package":"lazy_html","purl":"pkg:hex/lazy_html","source":"eef"},{"ranges":[{"type":"git","introduced":"1dee15746c024916b3110af8b168c2f3b3065fbd","status":"affected","fixed":"f32c7fd6223225b68bc8691c78b6d4a77972f1d5"}],"repo":"https://github.com/dashbitco/lazy_html","source":"eef"}],"references":[{"url":"https://github.com/dashbitco/lazy_html/security/advisories/GHSA-8rqp-v692-v82q","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-92106.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-92106","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dashbitco/lazy_html/commit/1dee15746c024916b3110af8b168c2f3b3065fbd","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/dashbitco/lazy_html/commit/f32c7fd6223225b68bc8691c78b6d4a77972f1d5","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/lazy_html","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","José Valim","Jonatan Kłosko"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-25T12:35:42.717Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-92106","url":"https://www.cve.org/CVERecord?id=CVE-2026-92106","licence":"CVE Terms of Use","modified":"2026-11-19T08:23:57.932Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-92106","url":"https://osv.dev/vulnerability/EEF-CVE-2026-92106","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:09.123Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-92106","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-92106","licence":"Public domain","modified":"2026-09-25T13:22:04.673Z"}],"updatedAt":"2026-11-26T17:37:08.803Z","epss":{"score":0.00482,"percentile":0.43168,"date":"2026-12-01T12:00:22.000Z"}}