Advisory

GHSA-776f-qx25-q3cc

Also known as: CVE-2023-0842

Summary

xml2js is vulnerable to prototype pollution

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-04-05 21:30 UTC
Modified
2025-02-13 22:08 UTC

Affected packages and fixes

xml2js

npm · All systems

Affected

  • introduced 0, fixed 0.5.0 (semver)

Fixed versions

0.5.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences