7.5High

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

xmldom xmldom; Red Hat Migration Toolkit for Applications 8; Red Hat Red Hat Build of Podman Desktop; Red Hat Red Hat Developer Hub Published: (7 months ago)

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.

Weakness (CWE): CWE-91

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Red Hat Migration Toolkit for Applications 8 —
Red Hat Red Hat Build of Podman Desktop —
Red Hat Red Hat Developer Hub —
Red Hat Red Hat Fuse 7 —
Red Hat Red Hat OpenShift AI (RHOAI) —
Red Hat Red Hat OpenShift Container Platform 4 —
Red Hat Red Hat OpenShift Dev Spaces —
Red Hat Self-service automation portal 2 —
xmldom xmldom xmldom <= 0.6.0, @xmldom/xmldom < 0.8.12, @xmldom/xmldom >= 0.9.0, < 0.9.9

References and patches