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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-43138

CVE-2021-43138: Async Privilege Escalation Vulnerability

CVE-2021-43138 is a privilege escalation vulnerability in Async that allows attackers to obtain elevated privileges through prototype pollution. This article covers technical details, affected versions, and mitigation.

Updated: May 16, 2026

CVE-2021-43138 Overview

CVE-2021-43138 is a prototype pollution vulnerability in the async JavaScript library, a widely used Node.js utility module for working with asynchronous operations. The flaw exists in the createObjectIterator prototype within lib/internal/iterator.js and is triggered through the mapValues() method. A malicious actor supplying crafted input can pollute Object.prototype, enabling privilege escalation or unexpected behavior in downstream consumers of the library.

The vulnerability affects async versions before 2.6.4 and 3.x versions before 3.2.2. It is classified under [CWE-1321] (Improperly Controlled Modification of Object Prototype Attributes).

Critical Impact

Successful exploitation allows attackers to modify Object.prototype properties, potentially leading to privilege escalation, denial of service, or arbitrary code execution within applications that depend on async.

Affected Products

  • async library versions prior to 2.6.4
  • async library 3.x versions prior to 3.2.2
  • Fedora 36 and Fedora 37 distributions shipping the affected package

Discovery Timeline

  • 2022-04-06 - CVE-2021-43138 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-43138

Vulnerability Analysis

The async library provides higher-order functions for iterating over collections asynchronously. The mapValues() function internally constructs an object iterator through createObjectIterator in lib/internal/iterator.js. The iterator implementation fails to validate property keys before assigning them, allowing the special key __proto__ to traverse into Object.prototype.

When attacker-controlled data flows into mapValues() as input, properties placed on Object.prototype become visible to every object in the JavaScript runtime. Applications that subsequently consult these polluted properties for authorization decisions, configuration lookups, or template rendering inherit attacker-supplied values.

The practical impact depends on the host application. Common consequences include bypassing access control checks, injecting unexpected fields into serialized output, and triggering remote code execution when polluted gadgets reach child_process or similar sinks.

Root Cause

The root cause is missing key validation inside createObjectIterator. The iterator copies keys from a source object into a result without filtering reserved property names such as __proto__, constructor, or prototype. This pattern matches [CWE-1321], where dynamic property assignment reaches the prototype chain.

Attack Vector

Exploitation requires that user-controlled data reach mapValues() or related iteration methods that share the vulnerable createObjectIterator code path. The CVSS vector indicates local attack vector with user interaction, reflecting scenarios where a developer or operator processes attacker-supplied JSON or configuration through the affected functions.

The upstream fix in commit e1ecdbf79264f9ab488c7799f4c76996d5dca66d (GitHub Commit) and pull request #1828 adds explicit key filtering to prevent prototype access. Reviewing the version comparison v2.6.3 to v2.6.4 shows the precise lines changed.

No public proof-of-concept exploit is listed in CISA KEV, and the EPSS data does not indicate active exploitation in the wild.

Detection Methods for CVE-2021-43138

Indicators of Compromise

  • Presence of unexpected properties on Object.prototype at runtime, observable through Object.getOwnPropertyNames(Object.prototype)
  • Application logs showing anomalous property access errors or unexpected default values after parsing user-supplied JSON
  • Node.js process behavior changes following ingestion of objects containing __proto__ keys

Detection Strategies

  • Inventory all Node.js projects and container images for async versions below 2.6.4 or 3.2.2 using software composition analysis tools
  • Audit application code for calls to mapValues(), mapValuesLimit(), and mapValuesSeries() that receive untrusted input
  • Enable runtime protection that monitors writes to Object.prototype and flags prototype pollution patterns

Monitoring Recommendations

  • Track outbound dependency manifests (package.json, package-lock.json, yarn.lock) for pinned vulnerable versions during CI/CD scans
  • Forward Node.js application logs to a centralized analytics platform and alert on errors referencing undefined or unexpected properties
  • Monitor Fedora 36 and 37 hosts for the affected nodejs-async package using vulnerability management feeds

How to Mitigate CVE-2021-43138

Immediate Actions Required

  • Upgrade async to version 2.6.4 or 3.2.2 or later across all Node.js projects and container images
  • Rebuild and redeploy applications after dependency updates to ensure the patched version is loaded at runtime
  • Apply Fedora package updates referenced in the Fedora package announcement for affected systems

Patch Information

The maintainers fixed the issue in commit e1ecdbf79264f9ab488c7799f4c76996d5dca66d (GitHub Commit) and released it in versions 2.6.4 and 3.2.2. See the v2.6.4 changelog and pull request #1828 for the full set of changes. NetApp customers should consult NetApp Security Advisory ntap-20240621-0006 for product-specific guidance.

Workarounds

  • Validate and sanitize all user-supplied input before passing it to async iteration functions, stripping __proto__, constructor, and prototype keys
  • Use Object.create(null) for objects derived from untrusted input to avoid inheriting from Object.prototype
  • Freeze Object.prototype at process startup with Object.freeze(Object.prototype) where compatible with the application stack
bash
# Configuration example
npm install async@^2.6.4   # for 2.x branch
npm install async@^3.2.2   # for 3.x branch
npm ls async               # verify resolved version across the dependency tree

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechAsync Project

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.66%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-1321
  • Technical References
  • GitHub Internal Iterator Module

  • GitHub Map Values Limit Module

  • GitHub Changelog v2.6.4

  • JSFiddle Code Example

  • Fedora Package Announcement Archive

  • Fedora Package Announcement Archive

  • NetApp Security Advisory ntap-20240621-0006
  • Vendor Resources
  • GitHub Commit e1ecdbf

  • GitHub Version Comparison v2.6.3 to v2.6.4

  • GitHub Pull Request #1828
  • Latest CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

  • CVE-2026-43330: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43331: Linux Kernel DOS Vulnerability
Default Legacy - Prefooter | 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