CVE-2023-0842: xml2js · Prototype Pollution
Affects xml2jsSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 1.4% chance of exploitation in 30 days – higher than 72% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Apr 2023
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
npmxml2jspkg:npm/xml2jsOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. 2. Implement strict input validation and sanitization to reject or neutralize __proto__ keys or other prototype pollution vectors in incoming XML or JSON data before parsing. 3. Employ runtime security controls such as object freezing or using libraries that prevent prototype pollution. 4. Conduct code audits and dependency scans to identify usage of vulnerable xml2js versions across all projects. 5. Use application-level monitoring to detect anomalous behavior that could indicate exploitation attempts. 6. Educate development teams about prototype pollution risks and secure coding practices related to object property handling in JavaScript. 7. Consider isolating or sandboxing components that parse untrusted XML to limit potential damage.
Description
CVE-2023-0842 is a medium severity prototype pollution vulnerability in xml2js version 0.4.23. It allows an unauthenticated remote attacker to modify or add properties to JavaScript objects by exploiting improper validation of JSON keys, specifically the __proto__ property. This can lead to integrity issues in applications using the vulnerable xml2js version, potentially causing unexpected behavior or security bypasses. The vulnerability does not impact confidentiality or availability directly and requires no user interaction. No known exploits are currently reported in the wild. European organizations using xml2js 0.4.23 in their Node.