Live threats

All CVEs / Xml2js Project

CVE-2023-0842Xml2js Project Xml2js

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
No
Published
Apr 5, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1321
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Xml2js.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm xml2js < 0.5.0 0.5.0 npm install xml2js@0.5.0

Per OSV / GitHub Advisories (GHSA-776f-qx25-q3cc). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
xml2js_projectxml2js0.4.23

Official sources

References

Links published by the sources. Open them with care.