Skip to content
OpenAdvisories
High · 7.5 CVE-2026-34601 EUVD-2026-18460GHSA-wh4c-j3r5-mjhp

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

Published Apr 2, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
xmldom xmldom xmldom <= 0.6.0, @xmldom/xmldom < 0.8.12, @xmldom/xmldom >= 0.9.0, < 0.9.9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-xmldom 0.9.9-1 —
Debian 13 node-xmldom No fix yet —
Debian 12 node-xmldom No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-xmldom No fix yet —
Ubuntu 26.04 LTS node-xmldom No fix yet —
Ubuntu 25.10 node-xmldom No fix yet —
Ubuntu 24.04 LTS node-xmldom No fix yet —
Ubuntu 22.04 LTS node-xmldom No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-xmldom No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed heroic-games-launcher 2.20.1-5.1 openSUSE-SU-2026:10497-1
openSUSE Tumbleweed python-jupyterlab-templates 0.5.3-1.1 openSUSE-SU-2026:10506-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling saf 1.6.0-r0 —
Wolfi rolling sqlpad 7.5.7-r17 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @xmldom/xmldom < 0.8.12 0.8.12 GHSA-wh4c-j3r5-mjhp
npm @xmldom/xmldom >= 0.9.0, < 0.9.9 0.9.9 GHSA-wh4c-j3r5-mjhp
npm xmldom <= 0.6.0 — GHSA-wh4c-j3r5-mjhp

Advisories 4

References