{"affected":[{"defaultStatus":"unaffected","ecosystem":"npm","packageName":"xml2js","product":"xml2js","source":"CNA: VulnCheck","vendor":"Leonidas-from-XIV","versions":[{"lessThanOrEqual":"0.6.2","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-142213","cwes":["CWE-91"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":6.3,"severity":"medium","source":"CNA: VulnCheck","vector":"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","version":"4.0"},{"score":3.7,"severity":"low","source":"CNA: VulnCheck","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},{"score":6.3,"severity":"medium","source":"NVD: disclosure@vulncheck.com","vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","version":"4.0"},{"score":3.7,"severity":"low","source":"NVD: disclosure@vulncheck.com","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","version":"3.1"}],"modifiedAt":1796240394578,"publishedAt":1796230233230,"references":[{"source":"CNA: VulnCheck","tags":["technical-description"],"url":"https://github.com/Leonidas-from-XIV/node-xml2js/blob/0.6.2/lib/builder.js#L15-L21"},{"source":"CNA: VulnCheck","tags":["issue-tracking","patch"],"url":"https://github.com/Leonidas-from-XIV/node-xml2js/pull/724"},{"source":"CNA: VulnCheck","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/xml2js-through-0.6.2-xml-injection-via-builder-cdata-escaping"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/Leonidas-from-XIV/node-xml2js/blob/0.6.2/lib/builder.js#L15-L21"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://github.com/Leonidas-from-XIV/node-xml2js/pull/724"},{"source":"disclosure@vulncheck.com","tags":[],"url":"https://www.vulncheck.com/advisories/xml2js-through-0.6.2-xml-injection-via-builder-cdata-escaping"}],"remediation":[{"kind":"fix","source":"CNA: VulnCheck","text":"The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.","url":"https://github.com/Leonidas-from-XIV/node-xml2js/pull/724"}],"revision":"e976b4ca12b6d48e8939f579af0c30e86a76e698e1c50e42944384ca6f4ba75b","sources":[{"modifiedAt":1796240394578,"name":"CNA: VulnCheck","retrievedAt":1796243231780,"url":"https://www.cve.org/CVERecord?id=CVE-2026-142213"},{"modifiedAt":1796231863633,"name":"NVD","retrievedAt":1796235542697,"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142213"}],"ssvc":{"assessedAt":1796240383929,"automatable":"no","exploitation":"none","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"xml2js through 0.6.2 XML Injection via Builder CDATA Escaping","updatedAt":1796243231780}