Prototype Pollution In minimist
Description
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.
Mitigation
Update Impact
Minimal update. May introduce new vulnerabilities or breaking changes.
Ecosystem | Package | Affected version | Patched versions |
|---|---|---|---|
npm | 0.2.1, 1.2.3 | ||
debian 12 | 1.2.5-1 | ||
debian 14 | 1.2.5-1 | ||
debian 13 | 1.2.5-1 | ||
debian 11 | 1.2.5-1 | ||
rpm rhel8 | 1:10.21.0-3.module+el8.2.0+7071+d2377ea3 | ||
rpm rhel8.1 | 1:10.21.0-3.module+el8.1.0+7070+fe09e702 |
Aliases
References