GHSA-rqv5-mfjj-pgfrMediumCVSS 3.7
xml2js through 0.6.2 contains an XML injection vulnerability that allows attackers to break out...
🔗 CVE IDs covered (1)
📋 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.
🔗 References (5)
- https://nvd.nist.gov/vuln/detail/CVE-2026-142213
- https://github.com/Leonidas-from-XIV/node-xml2js/pull/724
- https://github.com/Leonidas-from-XIV/node-xml2js/blob/0.6.2/lib/builder.js#L15-L21
- https://www.vulncheck.com/advisories/xml2js-through-0.6.2-xml-injection-via-builder-cdata-escaping
- https://github.com/advisories/GHSA-rqv5-mfjj-pgfr