Vulnerabilities/

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

Severity:
High

Description

@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.

Recommendation

Update the @xmldom/xmldom package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
@xmldom/xmldom
Anything's wrong? Let us know Last updated on April 24, 2026