Skip to main content
← All vulnerabilities
CVE-2026-34601GHSA-WH4C-J3R5-MJHP

xmldom: XML injection via unsafe CDATA serialization allows attacker-controlled markup insertion

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.8.12, 0.9.9
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. In xmldom versions 0.6.0 and prior and @xmldom/xmldom prior to versions 0.8.12 and 0.9.9, xmldom/xmldom allows attacker-controlled strings containing the CDATA terminator ]]> to be inserted into a CDATASection node. During serialization, XMLSerializer emitted the CDATA content verbatim without rejecting or safely splitting the terminator. As a result, data intended to remain text-only became active XML markup in the serialized output, enabling XML structure injection and downstream business-logic manipulation. This issue has been patched in xmldom version 0.6.0 and @xmldom/xmldom versions 0.8.12 and 0.9.9.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • xmldom xmldom

    xmldom <= 0.6.0, @xmldom/xmldom < 0.8.12

  • xmldomnpm

    through 0.6.0

  • @xmldom/xmldomnpm

    fixed in 0.8.12

  • @xmldom/xmldomnpm

    From 0.9.0 · fixed in 0.9.9

References 4

GitHub · xmldom/xmldom