# CVE-2023-0842: xml2js 0.4.23 - Prototype Pollution

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.40%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-04-05T00:00:00.000Z
- Modified: 2026-06-17T05:26:26.057Z
- Also known as: GHSA-776f-qx25-q3cc
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: Fluid Attacks

## 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.

(As written by CVE List.)

## Affected

- node-xml2js: 0.4.23
- xml2js (npm): before 0.5.0
- xml2js_project xml2js: 0.4.23

## Every score

- CISA-ADP: 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`
- GitHub: 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`
- NVD: 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`

## References

- <https://fluidattacks.com/advisories/myers/> (exploit, third-party-advisory)
- <https://github.com/Leonidas-from-XIV/node-xml2js/> (product)
- <https://lists.debian.org/debian-lts-announce/2024/03/msg00013.html> (mailing-list, web)
- <https://github.com/Leonidas-from-XIV/node-xml2js/releases/tag/0.6.2> (patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-0842> (advisory)
- <https://github.com/Leonidas-from-XIV/node-xml2js/issues/663> (web)
- <https://github.com/Leonidas-from-XIV/node-xml2js/pull/603/commits/581b19a62d88f8a3c068b5a45f4542c2d6a495a5> (web)
- <https://fluidattacks.com/advisories/myers> (web)
- <https://github.com/Leonidas-from-XIV/node-xml2js> (package)

## Sources

- CVE List: [CVE-2023-0842](https://www.cve.org/CVERecord?id=CVE-2023-0842), CVE Terms of Use, modified 2025-12-03
- GitHub Advisory Database: [GHSA-776f-qx25-q3cc](https://github.com/advisories/GHSA-776f-qx25-q3cc), CC-BY-4.0, modified 2025-02-13
- NVD: [CVE-2023-0842](https://nvd.nist.gov/vuln/detail/CVE-2023-0842), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-0842 · Whole record: https://cve.day/CVE-2023-0842.json · Rebuilt by cve.day 2026-11-25T22:58:23.267Z
