The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-44906

CVE-2021-44906: Minimist Prototype Pollution Vulnerability

CVE-2021-44906 is a prototype pollution vulnerability in Minimist that affects versions 1.2.5 and earlier, allowing attackers to modify object prototypes. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-44906 Overview

CVE-2021-44906 is a Prototype Pollution vulnerability affecting Minimist versions 1.2.5 and earlier. The vulnerability exists in the setKey() function within index.js (lines 69-95), which fails to properly sanitize user-controlled input when parsing command-line arguments. This flaw allows attackers to inject properties into JavaScript Object prototypes, potentially leading to application-wide security compromises.

Minimist is a widely-used argument parsing library for Node.js applications with millions of weekly downloads, making this vulnerability particularly impactful across the JavaScript ecosystem.

Critical Impact

Attackers can exploit this Prototype Pollution vulnerability to modify Object prototypes, potentially achieving remote code execution, denial of service, or bypassing security controls in applications using vulnerable Minimist versions.

Affected Products

  • Substack Minimist versions ≤1.2.5
  • Node.js applications using vulnerable Minimist as a dependency
  • Downstream packages and applications that transitively depend on Minimist

Discovery Timeline

  • 2022-03-17 - CVE CVE-2021-44906 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-44906

Vulnerability Analysis

This vulnerability is classified as Prototype Pollution (CWE-1321), a class of vulnerabilities specific to JavaScript and similar prototype-based languages. The setKey() function in Minimist's index.js fails to properly validate property keys before assigning values to objects during command-line argument parsing.

When Minimist parses arguments like --__proto__.polluted=true, the function traverses the object chain using the provided key path without checking for dangerous prototype properties. This allows an attacker to inject arbitrary properties into Object.prototype, which are then inherited by all objects in the JavaScript application.

The exploitation potential is significant because polluted prototype properties can affect security-critical operations throughout the application, including authentication checks, access control decisions, and dynamic code execution paths.

Root Cause

The root cause lies in the setKey() function's lack of input sanitization for special JavaScript object properties. The function directly uses user-supplied key names to traverse and modify object properties without filtering dangerous keys like __proto__, constructor, or prototype. This oversight allows attackers to escape the intended object scope and modify the base Object prototype.

Attack Vector

The attack vector is network-based, as vulnerable applications may process command-line arguments derived from user input, API requests, or configuration files. An attacker can craft malicious input containing prototype pollution payloads that, when parsed by Minimist, inject properties into all JavaScript objects within the application.

For example, passing arguments structured to target __proto__ properties causes the parser to modify the Object prototype. Subsequent code that relies on default object behavior or checks for property existence may behave unexpectedly, leading to security bypasses.

The vulnerability mechanism involves the setKey() function at lines 69-95 of index.js. When processing nested argument keys, the function recursively traverses object properties without checking if the key matches reserved prototype properties. A proof-of-concept demonstrating this behavior is available in the vulnerability detection repository.

Detection Methods for CVE-2021-44906

Indicators of Compromise

  • Unexpected application behavior or crashes following argument parsing operations
  • Log entries showing unusual property names containing __proto__, constructor, or prototype
  • Application logic bypasses or authentication failures that cannot be explained by normal operations
  • Memory anomalies or object property inconsistencies in Node.js applications

Detection Strategies

  • Implement Software Composition Analysis (SCA) scanning to identify Minimist versions ≤1.2.5 in dependency trees
  • Use npm audit or yarn audit to detect known vulnerabilities in Node.js dependencies
  • Deploy runtime application protection that monitors for prototype pollution attempts
  • Review application logs for arguments containing prototype-related keywords

Monitoring Recommendations

  • Enable verbose logging for command-line argument parsing in Node.js applications
  • Monitor for unexpected object property modifications using Node.js debugging tools
  • Implement integrity checks for critical object properties in security-sensitive code paths
  • Set up alerts for dependency vulnerability disclosures affecting Minimist

How to Mitigate CVE-2021-44906

Immediate Actions Required

  • Update Minimist to version 1.2.6 or later immediately across all affected applications
  • Audit your application's dependency tree using npm ls minimist to identify all instances of the vulnerable package
  • Review and test applications after patching to ensure compatibility with the updated version
  • Consider implementing Object.freeze() on critical objects as an additional defense layer

Patch Information

The vulnerability has been addressed in Minimist versions after 1.2.5. Users should upgrade to the latest available version. For detailed information about the vulnerability and remediation, refer to the GitHub issue discussion and the Snyk vulnerability report.

Organizations using enterprise software that bundles Minimist should also review the NetApp Security Advisory for product-specific guidance.

Workarounds

  • Implement input validation to reject arguments containing __proto__, constructor, or prototype before passing to Minimist
  • Use Object.create(null) for objects that will receive parsed argument data to create prototype-less objects
  • Consider alternative argument parsing libraries that include prototype pollution protections
  • Apply application-level freezing of Object.prototype in controlled environments (note: may affect application functionality)
bash
# Update Minimist to patched version
npm update minimist

# Audit for vulnerable dependencies
npm audit

# Check for Minimist instances in dependency tree
npm ls minimist

# Force resolution to patched version in package.json
npm pkg set overrides.minimist=">=1.2.6"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeOther

  • Vendor/TechSubstack Minimist

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.88%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1321
  • Technical References
  • GitHub PoC Repository

  • GitHub Source Code

  • NetApp Security Advisory

  • Stack Overflow Q&A
  • Vendor Resources
  • GitHub Issue Discussion

  • Snyk Vulnerability Report
  • Related CVEs
  • CVE-2020-7598: Minimist Prototype Pollution Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English