{"id":"CVE-2026-92106","state":"PUBLISHED","title":"lazy_html serializes SVG and MathML style and script text unescaped, allowing mutation XSS","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.\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.","publishedAt":"2026-09-25T09:33:13.051Z","updatedAt":"2026-09-25T12:41:30.597Z","severity":{"score":2.3,"label":"Low","version":"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","source":"EEF"},"assigner":"EEF","products":["dashbitco lazy_html"],"affected":[{"vendor":"dashbitco","product":"lazy_html","packageName":"lazy_html","packageURL":"pkg:hex/lazy_html","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.1.13","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:dashbitco:lazy_html:*:*:*:*:*:*:*:*"],"modules":["'Elixir.LazyHTML.Tree'","'Elixir.LazyHTML'","'Elixir.LazyHTML.NIF'"],"programFiles":["lib/lazy_html/tree.ex","lib/lazy_html.ex","c_src/lazy_html.cpp"],"programRoutines":[{"name":"'Elixir.LazyHTML.Tree':to_html/2"},{"name":"'Elixir.LazyHTML':to_html/2"},{"name":"is_noescape_text_node"}],"repo":"https://github.com/dashbitco/lazy_html"},{"vendor":"dashbitco","product":"lazy_html","packageName":"dashbitco/lazy_html","packageURL":"pkg:github/dashbitco/lazy_html","defaultStatus":"unaffected","versions":[{"version":"1dee15746c024916b3110af8b168c2f3b3065fbd","status":"affected","lessThan":"f32c7fd6223225b68bc8691c78b6d4a77972f1d5","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:dashbitco:lazy_html:*:*:*:*:*:*:*:*"],"modules":["'Elixir.LazyHTML.Tree'","'Elixir.LazyHTML'","'Elixir.LazyHTML.NIF'"],"programFiles":["lib/lazy_html/tree.ex","lib/lazy_html.ex","c_src/lazy_html.cpp"],"programRoutines":[{"name":"'Elixir.LazyHTML.Tree':to_html/2"},{"name":"'Elixir.LazyHTML':to_html/2"},{"name":"is_noescape_text_node"}],"repo":"https://github.com/dashbitco/lazy_html"}],"references":["https://github.com/dashbitco/lazy_html/security/advisories/GHSA-8rqp-v692-v82q","https://cna.erlef.org/cves/CVE-2026-92106.html","https://osv.dev/vulnerability/EEF-CVE-2026-92106","https://github.com/dashbitco/lazy_html/commit/1dee15746c024916b3110af8b168c2f3b3065fbd","https://github.com/dashbitco/lazy_html/commit/f32c7fd6223225b68bc8691c78b6d4a77972f1d5"],"weaknesses":["CWE-79"],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/92xxx/CVE-2026-92106.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-92106","state":"PUBLISHED","datePublished":"2026-09-25T09:33:13.051Z","dateUpdated":"2026-09-25T12:41:30.597Z","assignerShortName":"EEF","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateReserved":"2026-09-21T12:15:01.326Z"},"containers":{"cna":{"title":"lazy_html serializes SVG and MathML style and script text unescaped, allowing mutation XSS","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"dashbitco","product":"lazy_html","packageName":"lazy_html","packageURL":"pkg:hex/lazy_html","defaultStatus":"unaffected","versions":[{"version":"0.1.0","status":"affected","lessThan":"0.1.13","versionType":"semver"}],"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:dashbitco:lazy_html:*:*:*:*:*:*:*:*"],"modules":["'Elixir.LazyHTML.Tree'","'Elixir.LazyHTML'","'Elixir.LazyHTML.NIF'"],"programFiles":["lib/lazy_html/tree.ex","lib/lazy_html.ex","c_src/lazy_html.cpp"],"programRoutines":[{"name":"'Elixir.LazyHTML.Tree':to_html/2"},{"name":"'Elixir.LazyHTML':to_html/2"},{"name":"is_noescape_text_node"}],"repo":"https://github.com/dashbitco/lazy_html"},{"vendor":"dashbitco","product":"lazy_html","packageName":"dashbitco/lazy_html","packageURL":"pkg:github/dashbitco/lazy_html","defaultStatus":"unaffected","versions":[{"version":"1dee15746c024916b3110af8b168c2f3b3065fbd","status":"affected","lessThan":"f32c7fd6223225b68bc8691c78b6d4a77972f1d5","versionType":"git"}],"collectionURL":"https://github.com","cpes":["cpe:2.3:a:dashbitco:lazy_html:*:*:*:*:*:*:*:*"],"modules":["'Elixir.LazyHTML.Tree'","'Elixir.LazyHTML'","'Elixir.LazyHTML.NIF'"],"programFiles":["lib/lazy_html/tree.ex","lib/lazy_html.ex","c_src/lazy_html.cpp"],"programRoutines":[{"name":"'Elixir.LazyHTML.Tree':to_html/2"},{"name":"'Elixir.LazyHTML':to_html/2"},{"name":"is_noescape_text_node"}],"repo":"https://github.com/dashbitco/lazy_html"}],"references":[{"url":"https://github.com/dashbitco/lazy_html/security/advisories/GHSA-8rqp-v692-v82q","name":"GitHub Advisory","tags":["related","vendor-advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-92106.html","name":"EEF CNA record for CVE-2026-92106","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-92106","name":"OSV record EEF-CVE-2026-92106","tags":["related"]},{"url":"https://github.com/dashbitco/lazy_html/commit/1dee15746c024916b3110af8b168c2f3b3065fbd","name":"Introducing commit 1dee157 in dashbitco/lazy_html","tags":["related"]},{"url":"https://github.com/dashbitco/lazy_html/commit/f32c7fd6223225b68bc8691c78b6d4a77972f1d5","name":"Fix commit f32c7fd in dashbitco/lazy_html","tags":["patch"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.3,"baseSeverity":"LOW","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"PASSIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-79","description":"CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"EEF","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","dateUpdated":"2026-09-25T09:33:13.051Z"},"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:dashbitco:lazy_html:*:*:*:*:*:*:*:*","versionEndExcluding":"0.1.13","versionStartIncluding":"0.1.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"reporter","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Jonatan Kłosko"},{"lang":"en","type":"analyst","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"analyst","value":"José Valim"}],"dateAssigned":"2026-09-24T13:39:50.000Z","impacts":[{"capecId":"CAPEC-63","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An 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.</p>"},{"base64":false,"type":"text/markdown","value":"An 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."}],"value":"An 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."}]}],"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-25T12:35:42.717583Z","id":"CVE-2026-92106","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-25T12:41:30.597Z"}}]}}}