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

EcosystemPackageFixed inAdvisory
Debian:12node-xml2js0.4.23+~cs15.4.0+dfsg-7DEBIAN-CVE-2023-0842
Debian:13node-xml2js0.4.23+~cs15.4.0+dfsg-7DEBIAN-CVE-2023-0842
Debian:14node-xml2js0.4.23+~cs15.4.0+dfsg-7DEBIAN-CVE-2023-0842
Ubuntu:22.04:LTSnode-xml2jsno fix listedUBUNTU-CVE-2023-0842
Ubuntu:24.04:LTSnode-xml2jsno fix listedUBUNTU-CVE-2023-0842
Ubuntu:25.10node-xml2jsno fix listedUBUNTU-CVE-2023-0842
Ubuntu:26.04:LTSnode-xml2jsno fix listedUBUNTU-CVE-2023-0842
Ubuntu:26.10node-xml2jsno fix listedUBUNTU-CVE-2023-0842
npmxml2js0.5.0GHSA-776f-qx25-q3cc

Affected products (as reported)

VendorProductVersions
n/a xml2js 0.4.23

Weakness: CWE-1321 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

References