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-22921

CVE-2021-22921: Node.js Privilege Escalation Vulnerability

CVE-2021-22921 is a local privilege escalation vulnerability in Node.js on Windows platforms caused by improper directory permissions. Attackers can exploit PATH and DLL hijacking. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 25, 2026

CVE-2021-22921 Overview

CVE-2021-22921 is a local privilege escalation vulnerability affecting Node.js on Windows platforms. The vulnerability stems from improper configuration of permissions in the installation directory, which allows attackers to perform two distinct escalation attacks: PATH hijacking and DLL hijacking. This vulnerability affects Node.js versions before 16.4.1, 14.17.2, and 12.22.2.

Critical Impact

Local attackers can exploit insecure directory permissions to achieve privilege escalation on Windows systems running vulnerable Node.js versions through PATH or DLL hijacking techniques.

Affected Products

  • Node.js versions prior to 16.4.1
  • Node.js versions prior to 14.17.2 (LTS)
  • Node.js versions prior to 12.22.2 (LTS)
  • Siemens SINEC Infrastructure Network Services (uses affected Node.js versions)

Discovery Timeline

  • 2021-07-12 - CVE-2021-22921 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-22921

Vulnerability Analysis

This vulnerability is classified under CWE-732 (Incorrect Permission Assignment for Critical Resource). The flaw allows local attackers without any special privileges to exploit insecure file permissions within the Node.js installation directory on Windows systems. When a user interacts with the vulnerable Node.js installation (for example, by executing node commands), malicious code planted by an attacker can be executed with elevated privileges.

The vulnerability enables two attack vectors: PATH hijacking, where an attacker places a malicious executable in a directory that takes precedence in the PATH environment variable, and DLL hijacking, where a malicious DLL is placed in the Node.js installation directory to be loaded by legitimate Node.js processes.

Root Cause

The root cause of CVE-2021-22921 lies in the improper configuration of file system permissions during the Node.js installation process on Windows. The installation directory is configured with overly permissive access controls, allowing non-privileged users to write files to locations that are searched during executable or library loading. This violates the principle of least privilege and creates an opportunity for local privilege escalation.

Attack Vector

The attack vector is local, requiring an attacker to have initial access to the target Windows system. The exploitation requires user interaction—specifically, a privileged user must execute Node.js or a related application that loads from the compromised directory.

The attacker workflow typically involves:

  1. Identifying a Node.js installation with insecure directory permissions
  2. Placing a malicious executable or DLL in the installation directory or a PATH-accessible location
  3. Waiting for a privileged user to invoke Node.js functionality
  4. The malicious payload executes with the privileges of the invoking user

Detailed technical information about this vulnerability can be found in the HackerOne Report #1211160 and the Node.js Vulnerability Blog Post.

Detection Methods for CVE-2021-22921

Indicators of Compromise

  • Unexpected DLL files present in the Node.js installation directory (typically C:\Program Files\nodejs\)
  • Unknown or suspicious executable files in directories included in the system PATH
  • Unusual file modifications in the Node.js installation folder with timestamps inconsistent with legitimate updates
  • Process execution anomalies where Node.js processes load DLLs from non-standard locations

Detection Strategies

  • Monitor for file creation events in the Node.js installation directory by non-installer processes
  • Implement application whitelisting to prevent unauthorized executables from running in trusted directories
  • Use endpoint detection and response (EDR) solutions to identify DLL side-loading attempts
  • Audit directory permissions on Node.js installation folders to ensure they follow the principle of least privilege

Monitoring Recommendations

  • Enable Windows Security Event logging for file system auditing on the Node.js installation directory
  • Configure SIEM rules to alert on DLL or EXE file creation in program directories by standard user accounts
  • Implement behavioral monitoring for processes spawned by Node.js that deviate from expected patterns
  • Regularly scan for weak directory permissions using tools like icacls or PowerShell permission auditing scripts

How to Mitigate CVE-2021-22921

Immediate Actions Required

  • Upgrade Node.js to version 16.4.1, 14.17.2, or 12.22.2 (or later) depending on your release track
  • Audit and remediate directory permissions on existing Node.js installations
  • Review systems for signs of compromise before applying patches
  • Restrict write access to Node.js installation directories to administrators only

Patch Information

Node.js has released security updates addressing this vulnerability. Users should update to the following patched versions:

  • Node.js 16.x: Update to version 16.4.1 or later
  • Node.js 14.x LTS: Update to version 14.17.2 or later
  • Node.js 12.x LTS: Update to version 12.22.2 or later

For Siemens SINEC Infrastructure Network Services users, consult the Siemens Security Advisory SSA-389290 for specific guidance.

Additional vendor guidance is available in the NetApp Advisory NTAP-20210805-0003.

Workarounds

  • Manually restrict directory permissions on the Node.js installation folder to allow write access only to administrators
  • Implement application control policies to prevent execution of unsigned binaries in Node.js directories
  • Use a dedicated, non-administrative user account for Node.js development activities
  • Consider running Node.js in containerized environments where file system access can be strictly controlled
bash
# Configuration example - Restrict Node.js directory permissions on Windows
# Run in elevated PowerShell to fix directory permissions
icacls "C:\Program Files\nodejs" /inheritance:r /grant:r "Administrators:(OI)(CI)F" /grant:r "SYSTEM:(OI)(CI)F" /grant:r "Users:(OI)(CI)RX"

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechNodejs

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.41%

  • 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-732
  • Technical References
  • HackerOne Report #1211160

  • NetApp Advisory NTAP-20210805-0003
  • Vendor Resources
  • Siemens Security Advisory SSA-389290

  • Node.js Vulnerability Blog Post
  • Related CVEs
  • CVE-2026-21711: Node.js Privilege Escalation Vulnerability

  • CVE-2023-32559: Node.js Privilege Escalation Vulnerability

  • CVE-2023-30586: Node.js Privilege Escalation Vulnerability

  • CVE-2026-21712: Node.js URL Processing DoS 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