CVE-2023-0842Xml2js Project Xml2js
Medium 5.3 No auth needed
Follow: this CVE · Xml2js Project · Xml2js Project Xml2js We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Apr 5, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Xml2js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | xml2js |
< 0.5.0 |
0.5.0 |
npm install xml2js@0.5.0 |
Per OSV / GitHub Advisories (GHSA-776f-qx25-q3cc). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| xml2js_project | xml2js | 0.4.23 |
Official sources
References
Links published by the sources. Open them with care.
- fluidattacks.com Exploit Third Party Advisory
- github.com Product
- github.com
- lists.debian.org