CVE-2026-142213
published medium CVSS 4.0 · 6.3xml2js through 0.6.2 XML Injection via Builder CDATA Escaping
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Leonidas-from-XIV | — | xml2js0 through 0.6.2 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.7 | low | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Leonidas-from-XIV | xml2js | 0 through 0.6.2 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-91 XML Injection (aka Blind XPath Injection)
References
3- https://github.com/Leonidas-from-XIV/node-xml2js/blob/0.6.2/lib/builder.js#L15-L21
- https://github.com/Leonidas-from-XIV/node-xml2js/pull/724
- VulnCheck Advisory: xml2js through 0.6.2 XML Injection via Builder CDATA Escaping https://www.vulncheck.com/advisories/xml2js-through-0.6.2-xml-injection-via-builder-cdata-escaping
Provider assertions
2VulnCheck · cna
xml2js through 0.6.2 XML Injection via Builder CDATA Escaping
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3727ef5ac86f68cd2716cd34d517a24f567c0b95605db7ea581e541248bac2c1
- Ingested
- 02 Dec 2026, 19:48:38 UTC
- Source record
- Official CVE record