Vulnerability · Published Apr 5, 2023 · Assigned by Fluid Attacks
CVE-2023-0842xml2js 0.4.23 - Prototype Pollution
Medium 5.3
In plain English
A medium-severity prototype pollution in xml2js. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 72% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.4%top 27.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the __proto__ property to be edited.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-xml2js | 0.4.23+~cs15.4.0+dfsg-7 | DEBIAN-CVE-2023-0842 |
| Debian:13 | node-xml2js | 0.4.23+~cs15.4.0+dfsg-7 | DEBIAN-CVE-2023-0842 |
| Debian:14 | node-xml2js | 0.4.23+~cs15.4.0+dfsg-7 | DEBIAN-CVE-2023-0842 |
| Ubuntu:22.04:LTS | node-xml2js | no fix listed | UBUNTU-CVE-2023-0842 |
| Ubuntu:24.04:LTS | node-xml2js | no fix listed | UBUNTU-CVE-2023-0842 |
| Ubuntu:25.10 | node-xml2js | no fix listed | UBUNTU-CVE-2023-0842 |
| Ubuntu:26.04:LTS | node-xml2js | no fix listed | UBUNTU-CVE-2023-0842 |
| Ubuntu:26.10 | node-xml2js | no fix listed | UBUNTU-CVE-2023-0842 |
| npm | xml2js | 0.5.0 | GHSA-776f-qx25-q3cc |
Affected products (as reported)
Weakness: CWE-1321 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N