Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. minimist
  4. ›
  5. CVE-2021-44906

CVE-2021-44906: Prototype Pollution in minimist

March 17, 2022 (updated April 12, 2022)

Minimist <=1.2.5 is vulnerable to Prototype Pollution via file index.js, function setKey() (lines 69-95).

References

  • github.com/advisories/GHSA-xvch-5gv4-984h
  • github.com/substack/minimist/blob/master/index.js
  • github.com/substack/minimist/issues/164
  • nvd.nist.gov/vuln/detail/CVE-2021-44906
  • snyk.io/vuln/SNYK-JS-MINIMIST-559764
  • stackoverflow.com/questions/8588563/adding-custom-properties-to-a-function/20278068

Code Behaviors & Features

Detect and mitigate CVE-2021-44906 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.6

Fixed versions

  • 1.2.6

Solution

Upgrade to version 1.2.6 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/minimist/CVE-2021-44906.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:30 +0000.