ModerateVulnerabilityGHSA-776f-qx25-q3ccCVE-2023-0842Published 5 Apr 2023
xml2js is vulnerable to prototype pollution
Your version
Affected releases · xml2js
- 0.4.x and older0.1.0 – 0.4.23No fix, no longer updated
0.4.x has no fix yet; the newest fixed line:
npm install xml2js@0.5.0Every release on a timeline
Affected
0.1.0 – 0.4.23
48 releases
Fixed
0.5.0 – 0.6.2
4 releases, latest
What happens
xml2js versions before 0.5.0 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.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.