Unrated severityNVD Advisory· Published Dec 2, 2026
xml2js through 0.6.2 XML Injection via Builder CDATA Escaping
CVE-2026-142213
Description
xml2js through 0.6.2 contains an XML injection vulnerability that allows attackers to break out of CDATA sections because escapeCDATA() in lib/builder.js only escapes the first ]]> sequence. Attackers controlling string values serialized with the cdata option can include a second ]]> to inject arbitrary elements and attributes, altering downstream XML parsing.
Patches
Vulnerability mechanics
References
3- github.com/Leonidas-from-XIV/node-xml2js/pull/724mitreissue-trackingpatch
- www.vulncheck.com/advisories/xml2js-through-0.6.2-xml-injection-via-builder-cdata-escapingmitrethird-party-advisory
- github.com/Leonidas-from-XIV/node-xml2js/blob/0.6.2/lib/builder.jsmitretechnical-description
News mentions
0No linked articles in our index yet.