CVE-2020-7598
Prototype Pollution in minimist
Description
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.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » minimistvia npm minimist | < 0.2.1>= 1.0.0, < 1.2.3 | 0.2.1, 1.2.3 |
| org.webjars.npm » minimistvia npm minimist | < 0.2.1>= 1.0.0, < 1.2.3 | 0.2.1, 1.2.3 |
Blast radius
51% of the dependent artifacts (14) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 20 |
| 2 hops | 31 |
| 3 hops | 6 |
Most used dependents
- org.webjars.npm » mkdirp160 usages
- org.mvnpm » mkdirp39 usages
- org.webjars.npm » bower13 usages
- org.webjars.npm » mocha11 usages
- org.webjars.npm » opencollective9 usages
- org.webjars.npm » extract-zip7 usages
- org.webjars.npm » openlayers4 usages
- org.webjars.npm » mapbox-gl4 usages
- org.mvnpm » mocha4 usages
- org.webjars.npm » closure-util2 usages
- org.webjars.npm » togeojson2 usages
- org.webjars.npm » geojson-rewind2 usages
- org.webjars.npm » mapbox-gl-style-spec1 usages
- org.webjars.npm » osmtogeojson1 usages
- org.webjars.npm » phantomjs2-ext1 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2020-7598 | nvd.nist.gov |
| Package | substack/minimist | github.com |
| Web | minimistjs/minimist commit 10bd4cd | github.com |
| Web | minimistjs/minimist commit 38a4d1c | github.com |
| Web | minimistjs/minimist commit 4cf1354 | github.com |
| Web | minimistjs/minimist commit 63e7ed0 | github.com |
| Web | vuln/SNYK-JS-MINIMIST-559764 | snyk.io |
| Web | advisories/1179 | npmjs.com |
| Web | opensuse-security-announce/2020-06/msg00024.html | lists.opensuse.org |
