cvelo
P4 · InfoCVSS 3.7EPSS 0.5%

xml2js through 0.6.2 XML Injection via Builder CDATA Escaping

  • CVE-2026-142213
  • GHSA-rqv5-mfjj-pgfr
  • EUVD-2026-141617

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.

Text from the CVE.org record.

Recommendation

No source states a fixed version. Check the vendor advisory.

Affected

  • Leonidas-from-XIV xml2js

    Affected versionsFixed in
    up to 0.6.2none stated

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.