CVE Catalog

CVE-2026-142213

LowCVSS 3.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.48%

43th percentile - higher than 43% of all known CVEs

Summary

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.

Risk Assessment

An attacker can inject arbitrary XML elements and attributes into the output, potentially leading to data manipulation or attacks on systems consuming the XML. The risk affects applications serializing untrusted input with the cdata option.

Recommendation

Update xml2js to a version later than 0.6.2 if available, or apply the vendor patch. Avoid serializing untrusted input with the cdata option or validate it beforehand.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS