CriticalGHSA-xvch-5gv4-984hCVE-2021-44906
Prototype Pollution in minimist
Published 18 Mar 2022 · Updated 13 Mar 2026
Affected packages
minimistnpm
- Affected
- >=1.0.0 <1.2.6
- Fixed in
- 1.2.6
Update to the fixed version for your release line, for example:
npm install minimist@1.2.6minimistnpm
- Affected
- <0.2.4
- Fixed in
- 0.2.4
Update to the fixed version for your release line, for example:
npm install minimist@0.2.4Details
Minimist prior to 1.2.6 and 0.2.4 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).
Is GHSA-xvch-5gv4-984h in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected minimist, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2021-44906
- Linkgithub.com/minimistjs/minimist/issues/11
- Linkgithub.com/substack/minimist/issues/164
- Linkgithub.com/minimistjs/minimist/pull/24
- Linkgithub.com/minimistjs/minimist/commit/34e20b8461118608703d6485326abbb8e35e1703
- Linkgithub.com/minimistjs/minimist/commit/bc8ecee43875261f4f17eb20b1243d3ed15e70eb
- Linkgithub.com/minimistjs/minimist/commit/c2b981977fa834b223b408cfb860f933c9811e4d
- Linkgithub.com/minimistjs/minimist/commit/ef9153fc52b6cea0744b2239921c5dcae4697f11
- Linkgithub.com/Marynk/JavaScript-vulnerability-detection/blob/main/minimist%20PoC.zip
- Linkgithub.com/minimistjs/minimist/commits/v0.2.4
- Packagegithub.com/substack/minimist
- Linkgithub.com/substack/minimist/blob/master/index.js#L69
- Linksecurity.netapp.com/advisory/ntap-20240621-0006
- Linksnyk.io/vuln/SNYK-JS-MINIMIST-559764
- Linkstackoverflow.com/questions/8588563/adding-custom-properties-to-a-function/20278068#20278068
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.