Advisory

GHSA-vh95-rmgr-6w4m

Also known as: CVE-2020-7598

Summary

Prototype Pollution in minimist

Details

Affected versions of minimist are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of Object, causing the addition or modification of an existing property that will exist on all objects.
Parsing the argument --__proto__.y=Polluted adds a y property with value Polluted to all objects. The argument --__proto__=Polluted raises and uncaught error and crashes the application.
This is exploitable if attackers have control over the arguments being passed to minimist.

Recommendation

Upgrade to versions 0.2.1, 1.2.3 or later.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-04-03 21:48 UTC
Modified
2026-03-13 22:11 UTC

Affected packages and fixes

minimist

npm · All systems

Affected

  • introduced 0, fixed 0.2.1 (semver)

Fixed versions

0.2.1

Fix

minimist

npm · All systems

Affected

  • introduced 1.0.0, fixed 1.2.3 (semver)

Fixed versions

1.2.3

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