CVEfocus › CVE database › CVE-2023-0842

CVE-2023-0842xml2js 0.4.23 - Prototype Pollution

CVSS 5.3 MediumEPSS 1.3% (higher than 70% of CVEs)Published 2023-04-05Updated 2025-12-03Assigner: Fluid Attacks

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.

CWE-1321

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
3Under investigation
7Will not fix
8Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-xml2jsFix pendingUBUNTU-CVE-2023-0842
Ubuntu 26.04node-xml2jsUnder investigationUBUNTU-CVE-2023-0842
Ubuntu 25.10node-xml2jsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-0842
Ubuntu 24.04node-xml2jsUnder investigationUBUNTU-CVE-2023-0842
Ubuntu 22.04node-xml2jsUnder investigationUBUNTU-CVE-2023-0842
Ubuntu 20.04node-xml2jsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-0842
Ubuntu 18.04node-xml2jsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-0842
Ubuntu 16.04node-xml2jsWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-0842
Ubuntu 14.04node-xml2jsWill not fix
Ubuntu decided not to fix this in this release
Debian 14node-xml2jsFixed0.4.23+~cs15.4.0+dfsg-7DEBIAN-CVE-2023-0842
Debian 13node-xml2jsFixed0.4.23+~cs15.4.0+dfsg-7DEBIAN-CVE-2023-0842
Debian 12node-xml2jsFixed0.4.23+~cs15.4.0+dfsg-7DEBIAN-CVE-2023-0842
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 7firefoxWill not fix
Out of support scope
Red Hat Enterprise Linux 6firefoxWill not fix
Out of support scope
npm libraryxml2jsFixed0.5.0GHSA-776f-qx25-q3cc

What the vendor says

As published in the CVE record by Fluid Attacks, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.