CVE-2026-142213
xml2js through 0. 6. 2 XML Injection via Builder CDATA Escaping (TuxCare: npm)
- Severity
- 6.3MediumNetwork attack, no privileges, no user interactionCVSS 4.0, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- 0.48% in 30 daysPercentile43rdEPSS, scored
- Listed fix
0.6.2-tuxcare.1for xml2jsFrom OSV1 more listed version
Overview
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.
CVSS 4.0 vector
Exploitability
- Attack vector
- Network
- Complexity
- High
- Attack requirements
- Present
- Privileges needed
- None
- User interaction
- None
Impact on the vulnerable system
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
Impact on subsequent systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NExploit chance over time
Affected
Packages 1
| Package | Affected | Fixed |
|---|---|---|
xml2jsTuxCare:npm | 0.6.2-tuxcare.0 up to 0.6.2-tuxcare.1, plus listed versions 0.6.2 | 0.6.2-tuxcare.1 |
| 0.6.0-tuxcare.0 up to 0.6.0-tuxcare.1, plus listed versions 0.6.0 | 0.6.0-tuxcare.1 |
Products 1
Sources
CVE List Score usedCVSS 4.06.3
xml2js through 0.6.2 XML Injection via Builder CDATA Escaping
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.
- Record
CVE-2026-142213- CVSS 4.0
- 6.3 Medium
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 - CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-91
- Updated
- 2026-12-02
EUVDEUVD-2026-141617CVSS 4.06.3
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.
- Record
EUVD-2026-141617- CVSS 4.0
- 6.3 Medium
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 - Updated
- 2026-12-02
GitHub AdvisoriesGHSA-rqv5-mfjj-pgfrCVSS 4.06.3
xml2js through 0.6.2 contains an XML injection vulnerability that allows attackers to break out...
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.
- Record
GHSA-rqv5-mfjj-pgfr- CVSS 4.0
- 6.3 Medium
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 - CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-91
- Updated
- 2026-12-02
NVDCVSS 4.06.3
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.
- Record
CVE-2026-142213- CVSS 4.0
- 6.3 Medium
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 - CVSS 3.1
- 3.7 Low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N - Weakness
- CWE-91
- Updated
- 2026-12-02
OSVCVSS 4.06.3
xml2js through 0.6.2 XML Injection via Builder CDATA Escaping
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.
- Record
CVE-2026-142213- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-91
- Updated
- 2026-12-03
OSVCLSA-2026-1796393842No score
TuxCare security update for xml2js (1 CVE)
TuxCare rebuilt xml2js to address 1 CVE. Fixed in 0.6.2-tuxcare.1.
- Record
CLSA-2026-1796393842- Updated
- 2026-12-04
OSVCLSA-2026-1796414779No score
TuxCare security update for xml2js (1 CVE)
TuxCare rebuilt xml2js to address 1 CVE. Fixed in 0.6.0-tuxcare.1.
- Record
CLSA-2026-1796414779- Updated
- 2026-12-05
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, other IDs | OSV | |
| Affected packages, other IDs, key facts | OSV | |
| Published date | EUVD | |
| Published date | CVE List, EUVD, NVD | |
| Other IDs, references, severity | GitHub Advisories | |
| Other IDs, published date | EUVD | |
| References | OSV | |
| Severity | NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/Leonidas-from-XIV/node-xml2js/blob/0.6.2/lib/builder.js
github.com/Leonidas-from-XIV/node-xml2js/pull/724
vulncheck.com/advisories/xml2js-through-0.6.2-xml-injection-via-builder-cdata-escaping
nvd.nist.gov/vuln/detail/CVE-2026-142213
github.com/advisories/GHSA-rqv5-mfjj-pgfr
github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142213.json
github.com/Leonidas-from-XIV/node-xml2js