Skip to main content
← All vulnerabilities
CVE-2026-83612GHSA-6MJ3-QW4J-HGRW

xmldom: HTML raw-text closing-tag case mismatch causes output amplification

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.9.12
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

xmldom is a pure JavaScript W3C standard-based (XML DOM Level 2 Core) DOMParser and XMLSerializer module. From 0.9.0-beta.1 until 0.9.12, HTML-mode parsing through DOMParser.parseFromString() mishandles a mixed-case closing tag for the script, style, textarea, or title raw-text elements. parseHtmlSpecialContent, selected by isHTMLRawTextElement or isHTMLEscapableRawTextElement, uses a case-sensitive indexOf() and then calls substring() with a missing-close result of negative one, causing unstable parser progression and quadratic output amplification. A small untrusted text/html document can consequently consume disproportionate CPU and memory when parsed and serialized. This issue is fixed in @xmldom/xmldom version 0.9.12.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • xmldom xmldom

    From 0.9.0-beta.1 · fixed in 0.9.12

  • @xmldom xmldom

    From 0.9.0-beta.1 · fixed in 0.9.12

  • @xmldom/xmldomnpm

    From 0.9.0-beta.1 · fixed in 0.9.12

References 4

GitHub · xmldom/xmldom