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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Wed, 02 Dec 2026 17:00:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | xml2js through 0.6.2 XML Injection via Builder CDATA Escaping | |
| First Time appeared |
Xml2js Project
Xml2js Project xml2js |
|
| Weaknesses | CWE-91 | |
| CPEs | cpe:2.3:a:xml2js_project:xml2js:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Xml2js Project
Xml2js Project xml2js |
|
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: VulnCheck
Published:
Updated: 2026-12-02T19:39:54.578Z
Reserved: 2026-12-02T15:28:43.923Z
Link: CVE-2026-142213
No data.
Status : Received
Published: 2026-12-02T17:17:43.633
Modified: 2026-12-02T20:20:41.817
Link: CVE-2026-142213
No data.
OpenCVE Enrichment
No data.
Weaknesses