{"id":"CVE-2026-142213","summary":"xml2js through 0.6.2 XML Injection via Builder CDATA Escaping","details":"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 ]]\u003e sequence. Attackers controlling string values serialized with the cdata option can include a second ]]\u003e to inject arbitrary elements and attributes, altering downstream XML parsing.","modified":"2026-12-02T20:45:19.588882044Z","published":"2026-12-02T16:50:33.230Z","database_specific":{"cwe_ids":["CWE-91"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142213.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142213.json"},{"type":"PACKAGE","url":"https://github.com/Leonidas-from-XIV/node-xml2js"},{"type":"ARTICLE","url":"https://github.com/Leonidas-from-XIV/node-xml2js/blob/0.6.2/lib/builder.js#L15-L21"},{"type":"FIX","url":"https://github.com/Leonidas-from-XIV/node-xml2js/pull/724"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142213"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/xml2js-through-0.6.2-xml-injection-via-builder-cdata-escaping"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/leonidas-from-xiv/node-xml2js","events":[{"introduced":"0"},{"last_affected":"cf3e061e22e98152b88068c2345bc02581f4d6c7"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"0.6.2"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}}],"versions":["0.6.2","0.6.1","0.6.0","0.5.0","0.4.22","0.4.21","0.4.20","0.4.19","0.4.18","0.4.17","0.4.16","0.4.15","0.4.13","0.4.12","0.4.11","0.4.10","0.4.9","0.4.8","0.4.7","0.4.6","0.4.5","0.4.4","0.4.3","0.4.2","0.4.1","0.4.0","0.2.8","0.2.7","0.2.6","0.2.5","0.2.4","0.2.3","0.2.2","0.2.1","0.2.0","0.1.14","0.1.13","0.1.12","0.1.11","0.1.10","0.1.9","0.1.8","0.1.7","0.1.6"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142213.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"}]}