GHSA-xvch-5gv4-984h
CRITICAL
Prototype Pollution in minimist
Published March 18, 2022Updated January 14, 2025Source: osv
Details
Minimist prior to 1.2.6 and 0.2.4 is vulnerable to Prototype Pollution via file `index.js`, function `setKey()` (lines 69-95).
Remediation
Upgrade to the fixed version using your package manager.
npm
Update minimist to 1.2.6 or laternpm install minimist@1.2.6
npm
Update minimist to 0.2.4 or laternpm install minimist@0.2.4
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-1321Prototype PollutionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 3.1 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-44906ADVISORY
- https://github.com/minimistjs/minimist/issues/11WEB
- https://github.com/substack/minimist/issues/164WEB
- https://github.com/minimistjs/minimist/pull/24WEB
- https://github.com/minimistjs/minimist/commit/34e20b8461118608703d6485326abbb8e35e1703WEB
- https://github.com/minimistjs/minimist/commit/bc8ecee43875261f4f17eb20b1243d3ed15e70ebWEB
- https://github.com/minimistjs/minimist/commit/c2b981977fa834b223b408cfb860f933c9811e4dWEB
- https://github.com/minimistjs/minimist/commit/ef9153fc52b6cea0744b2239921c5dcae4697f11WEB
- https://github.com/Marynk/JavaScript-vulnerability-detection/blob/main/minimist%20PoC.zipWEB
- https://github.com/minimistjs/minimist/commits/v0.2.4WEB
- https://github.com/substack/minimistPACKAGE
- https://github.com/substack/minimist/blob/master/index.js#L69WEB
- https://security.netapp.com/advisory/ntap-20240621-0006WEB
- https://snyk.io/vuln/SNYK-JS-MINIMIST-559764WEB
- https://stackoverflow.com/questions/8588563/adding-custom-properties-to-a-function/20278068#20278068WEB
Risk Assessment
CVSS Score
3.1
Exploitation is difficult or impact is minor. Address in your next planned update.
EPSS Score (30-day exploit probability)
0.88%
Higher than 75% of vulnerabilities
Also Known As
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies