XML injection in xmldom - CVE-2026-34601
Published: April 20, 2026
xmldom
Detailed vulnerability description
The vulnerability allows a remote attacker to inject XML markup into serialized output.
The vulnerability exists due to improper neutralization of special elements in XMLSerializer CDATA serialization when serializing attacker-controlled CDATA content containing the CDATA terminator. A remote attacker can supply a crafted string that includes ]]> to inject XML markup into serialized output.
Applications are affected when they embed untrusted input inside CDATA sections in generated XML documents, and mutation methods such as appendData(), replaceData(), direct .data assignment, or .textContent assignment can also introduce the unsafe content.