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-2026-24131

CVE-2026-24131: Pnpm Path Traversal Vulnerability

CVE-2026-24131 is a path traversal flaw in Pnpm that allows malicious packages to escape directory boundaries and modify file permissions. This post covers technical details, affected versions, impact, and mitigation.

Published: January 30, 2026

CVE-2026-24131 Overview

CVE-2026-24131 is a Path Traversal vulnerability in pnpm, a popular package manager for Node.js. Prior to version 10.28.2, when pnpm processes a package's directories.bin field, it uses path.join() without validating that the result stays within the package root. A malicious npm package can specify "directories": {"bin": "../../../../tmp"} to escape the package directory, causing pnpm to chmod 755 files at arbitrary locations on the filesystem.

Critical Impact

This vulnerability allows attackers to modify file permissions at arbitrary filesystem locations through malicious npm packages, potentially leading to privilege escalation or security control bypass on Unix/Linux/macOS systems.

Affected Products

  • pnpm versions prior to 10.28.2 on Unix/Linux/macOS
  • Node.js environments using vulnerable pnpm versions
  • CI/CD pipelines and build systems utilizing pnpm

Discovery Timeline

  • 2026-01-26 - CVE CVE-2026-24131 published to NVD
  • 2026-01-28 - Last updated in NVD database

Technical Details for CVE-2026-24131

Vulnerability Analysis

The vulnerability stems from insufficient path validation in pnpm's handling of the directories.bin field within package manifests. When processing a package, pnpm reads the directories.bin configuration to locate executable scripts that should be linked into the project's bin directory. The package manager uses path.join() to combine the package path with the specified bin directory, but fails to verify that the resulting path remains within the package's directory structure.

This oversight allows an attacker to craft a malicious npm package with a directories.bin value containing path traversal sequences (e.g., ../../../../tmp). When this package is installed, pnpm follows the manipulated path and applies chmod 755 permissions to files outside the package boundary, potentially affecting system-critical files or directories.

The vulnerability specifically affects the fixBin functionality, which is gated by EXECUTABLE_SHEBANG_SUPPORTED and only applies to Unix-like operating systems. Windows systems are not affected by this issue.

Root Cause

The root cause is improper input validation (CWE-22: Path Traversal) in the pkg-manager/package-bins/src/index.ts file. The code failed to implement a path containment check using a function like isSubdir() to ensure that the resolved binDir path remains within the pkgPath boundary before proceeding with file operations.

Attack Vector

An attacker can exploit this vulnerability by publishing a malicious npm package to a public or private registry. The attack requires:

  1. Creating a package with a malicious directories.bin field containing path traversal sequences
  2. Having a victim install the package using a vulnerable version of pnpm
  3. The fixBin operation then applies chmod 755 to files at attacker-controlled locations

This is a local attack vector requiring user interaction (package installation), but it can be weaponized through supply chain attacks or typosquatting.

typescript
// Security patch from pkg-manager/package-bins/src/index.ts
   }
   if (manifest.directories?.bin) {
     const binDir = path.join(pkgPath, manifest.directories.bin)
+    // Validate: directories.bin must be within the package root
+    if (!isSubdir(pkgPath, binDir)) {
+      return []
+    }
     const files = await findFiles(binDir)
     return files.map((file) => ({
       name: path.basename(file),

Source: GitHub Commit

Detection Methods for CVE-2026-24131

Indicators of Compromise

  • Package manifests containing directories.bin values with .. path traversal sequences
  • Unexpected chmod operations on files outside of node_modules directories
  • File permission changes in /tmp, system directories, or other sensitive locations following pnpm operations

Detection Strategies

  • Monitor pnpm installation logs for packages with suspicious directories.bin configurations
  • Implement file integrity monitoring on critical system directories to detect unauthorized permission changes
  • Use software composition analysis (SCA) tools to identify vulnerable pnpm versions in your environment
  • Audit package.json files in dependencies for path traversal patterns in the directories field

Monitoring Recommendations

  • Enable verbose logging during pnpm package installations in CI/CD pipelines
  • Deploy endpoint detection and response (EDR) solutions to monitor for anomalous chmod system calls
  • Implement package provenance verification and lock file integrity checks
  • Use SentinelOne Singularity to detect and alert on suspicious file permission modifications

How to Mitigate CVE-2026-24131

Immediate Actions Required

  • Upgrade pnpm to version 10.28.2 or later immediately
  • Audit recently installed packages for suspicious directories.bin configurations
  • Review file permission changes on critical system files following recent pnpm operations
  • Consider using pnpm's strict mode and lockfile verification features

Patch Information

The pnpm team has addressed this vulnerability in version 10.28.2. The patch adds path validation using an isSubdir() check to ensure that the resolved directories.bin path remains within the package root before any file operations are performed. Users should upgrade to this version or later to remediate the vulnerability.

For detailed information, refer to the GitHub Security Advisory and the release notes for v10.28.2.

Workarounds

  • If immediate upgrade is not possible, manually review package.json files of all dependencies for path traversal patterns
  • Implement a pre-install hook script to validate directories.bin values before installation
  • Use containerized or sandboxed build environments to limit the impact of potential exploitation
  • Consider temporarily switching to alternative package managers until pnpm can be upgraded
bash
# Upgrade pnpm to patched version
npm install -g pnpm@10.28.2

# Verify installed version
pnpm --version

# Audit package dependencies for suspicious configurations
pnpm audit

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechPnpm

  • SeverityMEDIUM

  • CVSS Score6.7

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Release v10.28.2
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-v253-rj99-jwpq
  • Related CVEs
  • CVE-2026-23888: Pnpm Path Traversal Vulnerability

  • CVE-2026-23890: Pnpm Path Traversal Vulnerability

  • CVE-2026-24056: Pnpm Information Disclosure Vulnerability

  • CVE-2025-69264: Pnpm Package Manager RCE 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