cve.bz

CVE-2023-0842 xml2js project xml2js: Prototype Pollution

5.3 mediumExploit referenceEPSS 1.3%Fix available

Medium (5.3) in xml2js project xml2js. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in xml2js 0.5.0.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
1.3% (down from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-02-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1321 Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-0842 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-0842?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-0842?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-0842 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xml2js_project:xml2js0.4.23

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-776f-qx25-q3ccnpmxml2js<0.5.00.5.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10node-xml2js0.2.8-1.1+deb11u1~deb10u1DLA-3760-1
Debian12, 13, 14node-xml2js0.4.23+~cs15.4.0+dfsg-7DEBIAN-CVE-2023-0842
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morenode-xml2jsno fix listedUBUNTU-CVE-2023-0842

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Openshift Data Foundation 5.0odf5/cephcsi-rhel9:1795073870Fixed 2026-11-20RHSA-2026:100741
Red Hat Openshift Data Foundation 5.0odf5/cephcsi-rhel9-operator:1795073546Fixed 2026-11-20RHSA-2026:100741
Red Hat Openshift Data Foundation 5.0odf5/devicefinder-rhel9:1795073967Fixed 2026-11-20RHSA-2026:100741
Red Hat Openshift Data Foundation 5.0odf5/mcg-core-rhel9:1795074158Fixed 2026-11-20RHSA-2026:100741
Red Hat Openshift Data Foundation 5.0odf5/mcg-rhel9-operator:1795074167Fixed 2026-11-20RHSA-2026:100741
Red Hat Openshift Data Foundation 5.0odf5/ocs-client-console-rhel9:1795074655Fixed 2026-11-20RHSA-2026:100741
Red Hat Openshift Data Foundation 5.0odf5/ocs-client-rhel9-operator:1795074170Fixed 2026-11-20RHSA-2026:100741
Red Hat Openshift Data Foundation 5.0odf5/ocs-metrics-exporter-rhel9:1795074383Fixed 2026-11-20RHSA-2026:100741
Red Hat Openshift Data Foundation 5.0odf5/ocs-rhel9-operator:1795074368Fixed 2026-11-20RHSA-2026:100741
Red Hat Openshift Data Foundation 5.0odf5/odf-blackbox-exporter-rhel9:1795074330Fixed 2026-11-20RHSA-2026:100741
OpenShift Service Mesh 2openshift-service-mesh/kiali-rhel8Will not fix
OpenShift Service Mesh 2.1openshift-service-mesh/kiali-rhel8Will not fix
Red Hat A-MQ Onlinenode-xml2jsNot affected
Red Hat Data Grid 8xml2jsWill not fix
Red Hat Enterprise Linux 6firefoxOut of support scope
Red Hat Enterprise Linux 7firefoxOut of support scope
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Fuse 7node-xml2jsOut of support scope
27 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-0842.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON