{"id":"CVE-2026-34601","published":"2026-04-02T17:47:13Z","modified":"2026-07-15T01:04:09Z","title":"xmldom: XML injection via unsafe CDATA serialization allows attacker-controlled markup insertion","vendor":"xmldom","product":"xmldom","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00501,"percentile":0.43797,"provenance":"source"},"cwes":[{"id":"CWE-91","name":"XML Injection"}],"references":[{"url":"https://github.com/xmldom/xmldom/security/advisories/GHSA-wh4c-j3r5-mjhp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xmldom/xmldom/commit/2b852e836ab86dbbd6cbaf0537f584dd0b5ac184","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.8.12","tags":["x_refsource_MISC"]},{"url":"https://github.com/xmldom/xmldom/releases/tag/0.9.9","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34601","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2454595","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34601.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":8.76},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"xmldom","affectedVersions":[{"vendor":"xmldom","product":"xmldom","versions":["xmldom <= 0.6.0","@xmldom/xmldom < 0.8.12","@xmldom/xmldom >= 0.9.0, < 0.9.9"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-03T16:02:29.353065Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"xmldom","vulnerableRanges":["<=0.6.0"],"patched":[],"from":["GHSA-wh4c-j3r5-mjhp"],"provenance":"source"},{"ecosystem":"npm","package":"@xmldom/xmldom","vulnerableRanges":["<0.8.12",">=0.9.0, <0.9.9"],"patched":["0.8.12","0.9.9"],"from":["GHSA-wh4c-j3r5-mjhp"],"provenance":"source"}],"summary":{"text":"The xmldom JavaScript DOMParser and XMLSerializer module (xmldom/xmldom and @xmldom/xmldom) fails to handle the CDATA terminator \"]]>\" in CDATASection node content, so attacker-controlled strings containing it are emitted verbatim during serialization. An attacker who can supply string data placed into a CDATASection node over the network, with no authentication or user interaction, can inject XML markup into the serialized output, which can alter downstream business logic.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:40:25Z"},"euvd":{"id":"EUVD-2026-18460","exploited":false,"provenance":"source"}}