CVE-2026-142213
xml2js through 0.6.2 XML Injection via Builder CDATA Escaping
- Severity
- medium CVSS 6.3 (v4.0)
- Affects
- xml2js · Leonidas-from-XIV
- Weakness
- CWE-91: XML Injection (aka Blind XPath Injection)
- Published
- 2 December 2026 by VulnCheck
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.
Our coverage
We have not written about this one. Know why it matters? Send a tip.