{"id":"CVE-2026-142213","aliases":["CLSA-2026-1796393842","CLSA-2026-1796414779","EUVD-2026-141617","GHSA-rqv5-mfjj-pgfr"],"status":"published","title":"xml2js through 0.6.2 XML Injection via Builder CDATA Escaping","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 ]]\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.","severity":{"version":"4.0","score":6.3,"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","level":"medium","assessor":"cna","from":"cve","others":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"low","assessor":"cna","from":"cve"},{"version":"4.0","score":6.3,"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","level":"medium","from":"ghsa"}]},"epss":{"day":"2026-12-04","score":0.00484,"percentile":0.43363,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-91"],"published":"2026-12-02T16:50:33Z","modified":"2026-12-05T03:00:52Z","fixes":[{"ecosystem":"TuxCare:npm","package":"xml2js","fixed_in":["0.6.2-tuxcare.1","0.6.0-tuxcare.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"TuxCare:npm","package":"xml2js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.6.2-tuxcare.0"},{"fixed":"0.6.2-tuxcare.1"}]}],"versions":["0.6.2"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"xml2js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.6.0-tuxcare.0"},{"fixed":"0.6.0-tuxcare.1"}]}],"versions":["0.6.0"]}],"products":[{"vendor":"leonidas-from-xiv","product":"xml2js"}],"references":[{"url":"https://github.com/Leonidas-from-XIV/node-xml2js/blob/0.6.2/lib/builder.js#L15-L21","tags":["technical-description","article"]},{"url":"https://github.com/Leonidas-from-XIV/node-xml2js/pull/724","tags":["issue-tracking","patch","fix"]},{"url":"https://www.vulncheck.com/advisories/xml2js-through-0.6.2-xml-injection-via-builder-cdata-escaping","tags":["third-party-advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142213","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-rqv5-mfjj-pgfr"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142213.json","tags":["advisory"]},{"url":"https://github.com/Leonidas-from-XIV/node-xml2js","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-142213","title":"xml2js through 0.6.2 XML Injection via Builder CDATA Escaping","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 ]]\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.","status":"published","published":"2026-12-02T16:50:33.23Z","modified":"2026-12-02T19:39:54.578Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium","assessor":"cna"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"low","assessor":"cna"}],"cwes":["CWE-91"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","date":"2026-12-02"},"updated_at":"2026-12-02T19:49:07.438589Z"}],"euvd":[{"id":"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 ]]\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.","status":"published","published":"2026-12-02T16:50:33Z","modified":"2026-12-02T19:39:54Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"updated_at":"2026-12-02T21:27:14.176261Z"}],"ghsa":[{"id":"GHSA-rqv5-mfjj-pgfr","title":"xml2js through 0.6.2 contains an XML injection vulnerability that allows attackers to break out...","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 ]]\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.","status":"published","published":"2026-12-02T18:31:46Z","modified":"2026-12-02T18:31:53Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"cwes":["CWE-91"],"updated_at":"2026-12-02T18:38:43.855074Z"}],"nvd":[{"id":"CVE-2026-142213","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 ]]\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.","status":"published","published":"2026-12-02T17:17:43.633Z","modified":"2026-12-04T16:29:40.94Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium","assessor":"secondary"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","level":"low","assessor":"secondary"}],"cwes":["CWE-91"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial","date":"2026-12-02"},"updated_at":"2026-12-02T20:26:13.686818Z"}],"osv":[{"id":"CVE-2026-142213","title":"xml2js through 0.6.2 XML Injection via Builder CDATA Escaping","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 ]]\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.","status":"published","published":"2026-12-02T16:50:33.23Z","modified":"2026-12-03T21:02:02.295626459Z","cvss":[{"version":"4.0","score":6.3,"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","level":"medium"}],"cwes":["CWE-91"],"updated_at":"2026-12-03T21:10:05.302032Z"},{"id":"CLSA-2026-1796393842","upstream":["CVE-2026-142213"],"title":"TuxCare security update for xml2js (1 CVE)","description":"TuxCare rebuilt xml2js to address 1 CVE. Fixed in 0.6.2-tuxcare.1.","status":"published","published":"2026-12-04T15:17:23Z","modified":"2026-12-04T16:30:10.321392883Z","updated_at":"2026-12-04T16:47:54.354282Z"},{"id":"CLSA-2026-1796414779","upstream":["CVE-2026-142213"],"title":"TuxCare security update for xml2js (1 CVE)","description":"TuxCare rebuilt xml2js to address 1 CVE. Fixed in 0.6.0-tuxcare.1.","status":"published","published":"2026-12-04T21:06:20Z","modified":"2026-12-05T03:00:52.249193299Z","updated_at":"2026-12-05T03:12:49.613263Z"}]}}
