A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2026-21715

CVE-2026-21715: Node.js Privilege Escalation Vulnerability

CVE-2026-21715 is a privilege escalation flaw in Node.js Permission Model that bypasses filesystem read restrictions through fs.realpathSync.native(). This article covers technical details, affected versions, impact, and mitigation.

Updated: May 15, 2026

CVE-2026-21715 Overview

CVE-2026-21715 is a permission enforcement flaw in the Node.js Permission Model. The fs.realpathSync.native() function does not enforce the read permission checks that all comparable filesystem functions correctly apply. Code running under --permission with restricted --allow-fs-read can call fs.realpathSync.native() to check file existence, resolve symbolic link targets, and enumerate filesystem paths outside permitted directories. The issue affects Node.js 20.x, 22.x, 24.x, and 25.x release lines. The weakness is classified as [CWE-732] (Incorrect Permission Assignment for Critical Resource).

Critical Impact

Local code running with intentionally restricted filesystem read permissions can bypass the Node.js Permission Model to disclose information about files and directories outside its allowlist.

Affected Products

  • Node.js 20.x release line
  • Node.js 22.x release line
  • Node.js 24.x and 25.x release lines

Discovery Timeline

  • 2026-03-30 - CVE-2026-21715 published to the National Vulnerability Database (NVD)
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-21715

Vulnerability Analysis

The Node.js Permission Model, enabled with the --permission flag, restricts a process to filesystem locations declared through --allow-fs-read and --allow-fs-write. The model mediates filesystem APIs so that calls outside the allowlist fail with ERR_ACCESS_DENIED.

CVE-2026-21715 stems from a missing permission check in the native code path backing fs.realpathSync.native(). While fs.realpathSync(), fs.access(), fs.stat(), and related calls correctly invoke the permission check, the native variant skips it. An attacker controlling JavaScript executed inside a permission-restricted process can call fs.realpathSync.native() against arbitrary absolute paths.

The function returns the canonical path of the supplied input. The behavior leaks three categories of information. First, it discloses whether a target path exists by returning a value or throwing ENOENT. Second, it resolves symbolic links, revealing their targets. Third, it enables directory enumeration by probing candidate paths. Confidentiality is impacted; integrity and availability are not.

Root Cause

The native realpath binding in libuv-backed code does not call the Permission Model gate that wraps the JavaScript-level fs surface. The omission represents an incomplete enforcement of a security policy rather than a logic flaw in path resolution itself. See the Node.js March 2026 Security Blog for vendor technical details.

Attack Vector

Exploitation requires the ability to execute JavaScript inside a Node.js process started with --permission and a constrained --allow-fs-read allowlist. This scenario typically arises in sandboxed plugin hosts, multi-tenant runtimes, or applications that load untrusted third-party modules under permission restrictions. The attacker calls fs.realpathSync.native('/path/outside/allowlist') and inspects the return value or exception type to infer filesystem state. No network access, elevated privileges, or user interaction is required.

No public proof-of-concept exploit is listed for this CVE.

Detection Methods for CVE-2026-21715

Indicators of Compromise

  • Calls to fs.realpathSync.native() originating from untrusted modules within a permission-restricted Node.js process.
  • Application logs showing successful path resolutions for files outside the configured --allow-fs-read allowlist.
  • Unexpected exceptions referencing paths outside the allowlist that returned ENOENT rather than ERR_ACCESS_DENIED.

Detection Strategies

  • Audit Node.js application source and dependency trees for direct or transitive use of fs.realpathSync.native().
  • Inventory production hosts running Node.js 20.x, 22.x, 24.x, or 25.x with the --permission flag to identify exposed processes.
  • Enable Node.js process tracing to log filesystem API invocations and compare resolved paths against the declared allowlist.

Monitoring Recommendations

  • Forward Node.js process telemetry, including command-line flags and module load events, to a central analytics platform for review.
  • Alert on permission-restricted processes that throw ENOENT for paths outside their allowlist, which suggests probing behavior.
  • Track third-party package updates that introduce calls to native filesystem APIs in sandboxed contexts.

How to Mitigate CVE-2026-21715

Immediate Actions Required

  • Upgrade Node.js to the patched release for the 20.x, 22.x, 24.x, or 25.x branch as published in the March 2026 security release.
  • Identify all production workloads relying on --permission and --allow-fs-read and prioritize them for patching.
  • Review untrusted code loaded into permission-restricted processes for use of fs.realpathSync.native().

Patch Information

The Node.js project addressed the missing permission check in the March 2026 security releases across the 20.x, 22.x, 24.x, and 25.x branches. Refer to the Node.js March 2026 Security Blog for fixed version numbers and download links.

Workarounds

  • Override fs.realpathSync.native at process startup with a wrapper that validates inputs against the allowlist before delegating to the original function.
  • Avoid loading untrusted modules into Node.js processes that rely on the Permission Model for filesystem confidentiality until the patch is deployed.
  • Treat the Permission Model as defense-in-depth rather than a sole boundary, and isolate untrusted workloads using OS-level sandboxing such as containers, seccomp, or AppArmor.
bash
# Configuration example: pin to a patched Node.js release and launch with restricted filesystem reads
node --permission --allow-fs-read=/srv/app/data ./server.js

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechNode Js

  • SeverityLOW

  • CVSS Score3.3

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-732
  • Technical References
  • Node.js March 2026 Security Blog
  • Related CVEs
  • CVE-2026-21636: Node.js Privilege Escalation Vulnerability

  • CVE-2025-55132: Node.js Privilege Escalation Vulnerability

  • CVE-2024-36137: Node.js Privilege Escalation Vulnerability

  • CVE-2026-44232: DSSRF Node.js Library SSRF Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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