CVE-2023-0842 json
xml2js 0.4.23 - Prototype Pollution
published 2023-04-05 3 y ago modified 2026-06-17 4 mo ago also GHSA-776f-qx25-q3cc , EUVD-2023-1222
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm xml2js 0.5.0
- node-xml2js Debian 14, Debian 13, Debian 12 0.4.23+~cs15.4.0+dfsg-7
debian advisories DEBIAN-CVE-2023-0842
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-0842 updated cvss 5.3
node-xml2js: xml2js is vulnerable to prototype pollution
-
Red Hat OpenShift Service Mesh 2 openshift-service-mesh/kiali-rhel8 Red Hat OpenShift Service Mesh 2.1 openshift-service-mesh/kiali-rhel8 Red Hat Data Grid 8 xml2jsaffected: no fix planned “Will not fix”
-
Red Hat Enterprise Linux 6 firefox Red Hat Enterprise Linux 7 firefox Red Hat Fuse 7 node-xml2js node-xml2js Red Hat OpenShift Container Platform 3.11 openshift3/ose-console Red Hat Openshift Container Storage 4 ocs4/mcg-core-rhel8affected: no fix planned “Out of support scope”
-
Red Hat Openshift Data Foundation 4 odf4/mcg-core-rhel8, noobaa-core-container Red Hat OpenShift Data Science (RHODS) rhods/odh-dashboard-rhel8affected: no fix available
-
Red Hat OpenShift Dev Spaces devspaces/code-rhel8, devspaces-theia-rhel8-containeraffected: no fix planned “Will not fix”
-
Red Hat Quay 3 quay/quay-rhel8affected: no fix available
-
Red Hat A-MQ Online node-xml2js node-xml2js Red Hat Enterprise Linux 8 mozjs60 Red Hat Enterprise Linux 9 gjs, polkit, polkit-libs Red Hat OpenShift Container Platform 4 openshift4/ose-consolenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
1.39% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- fluidattacks.com https://fluidattacks.com/advisories/myers/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | xml2js | <0.5.0 |
0.5.0 |
Affected products
- n/a xml2js
Classification
- Weakness
-
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes
References
-
github.com
/Leonidas-from-XIV/node-xml2js/releases/tag/0.6.2
patch
-
github.com
/Leonidas-from-XIV/node-xml2js/pull/603/commits/581b19a62d88f8a3c068b5a45f4542c2d6a495a5
web
-
fluidattacks.com
/advisories/myers/
third-party-advisory, exploit
-
github.com
/Leonidas-from-XIV/node-xml2js/
product
-
lists.debian.org
/debian-lts-announce/2024/03/msg00013.html
mailing-list, web
-
nvd.nist.gov
/vuln/detail/CVE-2023-0842
advisory
-
github.com
/Leonidas-from-XIV/node-xml2js/issues/663
web
-
fluidattacks.com
/advisories/myers
web
-
github.com
/Leonidas-from-XIV/node-xml2js
package
Sources
- CVE List CVE-2023-0842
- GitHub Advisory GHSA-776f-qx25-q3cc
- NVD CVE-2023-0842
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.