Skip to content

xml2js is vulnerable to prototype pollution

Moderate severity GitHub Reviewed Published Apr 5, 2023 to the GitHub Advisory Database • Updated Mar 14, 2024

Package

npm xml2js (npm)

Affected versions

< 0.5.0

Patched versions

0.5.0

Description

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.

References

Published by the National Vulnerability Database Apr 5, 2023
Published to the GitHub Advisory Database Apr 5, 2023
Reviewed Apr 7, 2023
Last updated Mar 14, 2024

Severity

Moderate
5.3
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Weaknesses

CVE ID

CVE-2023-0842

GHSA ID

GHSA-776f-qx25-q3cc

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.