CVE-2026-34601
HIGH 7.5CVSS 3.1xmldom: XML injection via unsafe CDATA serialization allows attacker-controlled markup insertion
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.
- Published
- 2 Apr 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-91
- Also known as
- GHSA-wh4c-j3r5-mjhp
- Sources
- NVDJSONOSV GHSA-wh4c-j3r5-mjhpJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | xmldom | <= 0.6.0 | |
| OSV | npm | @xmldom/xmldom | < 0.8.12 | 0.8.12 |
| OSV | npm | @xmldom/xmldom | >= 0.9.0, < 0.9.9 | 0.9.9 |
References
- https://github.com/xmldom/xmldom/commit/2b852e836ab86dbbd6cbaf0537f584dd0b5ac184 · WEB
- https://github.com/xmldom/xmldom/releases/tag/0.8.12 · WEB
- https://github.com/xmldom/xmldom/releases/tag/0.9.9 · WEB
- https://github.com/xmldom/xmldom/security/advisories/GHSA-wh4c-j3r5-mjhp · WEB
- https://access.redhat.com/security/cve/CVE-2026-34601
- https://bugzilla.redhat.com/show_bug.cgi?id=2454595
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34601.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-34601 · ADVISORY
- https://github.com/xmldom/xmldom · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 2 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Apr 2026)