minimist
Affected
- introduced
0, fixed0.2.1(semver)
Fixed versions
0.2.1
Fix
- Fixed version
0.2.1npm install [email protected]
Advisory
Also known as: CVE-2020-7598
Prototype Pollution in minimist
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.
Medium Basis: The source's own band: MODERATE
0, fixed 0.2.1 (semver)0.2.1
0.2.1npm install [email protected]1.0.0, fixed 1.2.3 (semver)1.2.3
1.2.3npm install [email protected]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
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0