CVE-2023-0842
MEDIUM 5.3CVSS 3.1xml2js is vulnerable to prototype pollution
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.
- Published
- 5 Apr 2023
- Last modified
- 17 Jun 2026
- Assigned by
- help@fluidattacks.com
- NVD status
- Modified
- Weakness
- CWE-1321
- Also known as
- GHSA-776f-qx25-q3cc
- Sources
- NVDJSONOSV GHSA-776f-qx25-q3ccJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | xml2js_project | xml2jscpe:2.3:a:xml2js_project:xml2js:0.4.23:*:*:*:*:*:*:* |
= 0.4.23 | |
| OSV | npm | xml2js | < 0.5.0 | 0.5.0 |
References
- https://fluidattacks.com/advisories/myers/ · Exploit, Third Party Advisory, WEB
- https://github.com/Leonidas-from-XIV/node-xml2js/ · Product, PACKAGE
- https://github.com/Leonidas-from-XIV/node-xml2js/releases/tag/0.6.2
- https://lists.debian.org/debian-lts-announce/2024/03/msg00013.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-0842 · ADVISORY
- https://github.com/Leonidas-from-XIV/node-xml2js/issues/663 · WEB
- https://github.com/Leonidas-from-XIV/node-xml2js/pull/603/commits/581b19a62d88f8a3c068b5a45f4542c2d6a495a5 · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 5 Apr 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 5 Apr 2023)