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

CVE-2026-23890: Pnpm Path Traversal Vulnerability

CVE-2026-23890 is a path traversal vulnerability in Pnpm that allows malicious packages to create executables outside node_modules/.bin. This post covers technical details, affected versions, impact, and mitigation.

Published: January 30, 2026

CVE-2026-23890 Overview

CVE-2026-23890 is a path traversal vulnerability in pnpm, a popular Node.js package manager. The vulnerability exists in pnpm's bin linking functionality, which allows malicious npm packages to create executable shims or symlinks outside of the intended node_modules/.bin directory. Bin names starting with @ bypass validation, and after scope normalization, path traversal sequences like ../../ remain intact, enabling attackers to write files to arbitrary locations.

Critical Impact

Malicious npm packages can overwrite configuration files, scripts, or other sensitive files on systems running vulnerable pnpm versions, potentially leading to supply chain attacks in CI/CD pipelines.

Affected Products

  • pnpm versions prior to 10.28.1
  • All pnpm users who install npm packages
  • CI/CD pipelines using pnpm for dependency management

Discovery Timeline

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

Technical Details for CVE-2026-23890

Vulnerability Analysis

This path traversal vulnerability (CWE-23) exists in pnpm's bin linking mechanism, which is responsible for creating executable shims in the node_modules/.bin directory when installing packages. The flaw allows attackers to craft malicious package manifests that can write files outside the intended bin directory.

The vulnerability can be exploited without authentication through network-based attacks, though user interaction is required (the victim must install a malicious package). Successful exploitation results in high impact to system integrity, as attackers can overwrite arbitrary files within the permissions of the running user.

Root Cause

The root cause lies in insufficient input validation of bin names in package manifests. Specifically, bin names starting with @ (typically used for scoped packages) were allowed to bypass validation. After the scope normalization process strips the @scope/ prefix, any path traversal sequences like ../../ embedded in the bin name remain intact, allowing the constructed path to escape the node_modules/.bin directory.

Attack Vector

An attacker can exploit this vulnerability by publishing a malicious npm package with a specially crafted bin field in its package.json. When a victim installs this package using a vulnerable version of pnpm, the path traversal sequences in the bin name cause pnpm to create symlinks or shims outside the expected directory structure, potentially overwriting sensitive files such as configuration files, shell scripts, or other project files.

typescript
// Security patch from pkg-manager/package-bins/src/index.ts
// Before: Insufficient validation allowed path traversal via @ prefix
// After: Validates bin names and ensures bin paths are subdirectories of package path

function commandsFromBin (bin: PackageBin, pkgName: string, pkgPath: string): Command[] {
  const cmds: Command[] = []
  for (const [commandName, binRelativePath] of typeof bin === 'string' ? [[pkgName, bin]] : Object.entries(bin)) {
    const binName = commandName[0] === '@'
      ? commandName.slice(commandName.indexOf('/') + 1)
      : commandName
    // Validate: must be safe (no path traversal) - only allow URL-safe chars or $
    if (binName !== encodeURIComponent(binName) && binName !== '$') {
      continue
    }
    const binPath = path.join(pkgPath, binRelativePath)
    if (!isSubdir(pkgPath, binPath)) {
      continue
    }
    cmds.push({ name: binName, path: binPath })
  }
  // ... rest of function
}

Source: GitHub Commit

Detection Methods for CVE-2026-23890

Indicators of Compromise

  • Unexpected files or symlinks appearing outside node_modules/.bin directories after package installation
  • Modified configuration files (e.g., .npmrc, .env, shell scripts) with unexpected content
  • Symlinks in project directories pointing to locations within node_modules
  • Unusual bin entries in package.json files containing @ prefixes followed by path traversal sequences

Detection Strategies

  • Audit installed packages for suspicious bin field configurations containing @ prefixes with ../ sequences
  • Monitor file system changes during pnpm install operations for writes outside expected directories
  • Implement package scanning in CI/CD pipelines to detect malicious manifest patterns before installation
  • Review pnpm version in use and flag any versions prior to 10.28.1

Monitoring Recommendations

  • Enable file integrity monitoring on critical configuration files and scripts in project directories
  • Log and alert on symlink creation events outside node_modules during package manager operations
  • Implement runtime security monitoring for development and CI/CD environments
  • Configure SentinelOne agents to detect suspicious file write patterns during Node.js package installation processes

How to Mitigate CVE-2026-23890

Immediate Actions Required

  • Upgrade pnpm to version 10.28.1 or later immediately
  • Audit existing projects for any signs of compromise (unexpected files or modified configurations)
  • Review recently installed packages for suspicious bin configurations
  • Regenerate node_modules directories by removing them and running fresh installs with the patched version

Patch Information

pnpm version 10.28.1 contains the security fix for this vulnerability. The patch adds two critical validation checks to the commandsFromBin function:

  1. Bin name validation: Ensures bin names only contain URL-safe characters (or the $ character), rejecting any names containing path traversal sequences
  2. Path containment check: Uses an isSubdir() function to verify that the resolved bin path remains within the package directory

For detailed patch information, see the GitHub Security Advisory and Release Notes for v10.28.1.

Workarounds

  • Use npm or yarn as alternative package managers until pnpm can be upgraded
  • Implement strict package allow-listing in CI/CD pipelines to prevent installation of untrusted packages
  • Run pnpm installations in isolated, containerized environments with limited write access
  • Enable read-only file systems for sensitive directories during package installation operations
bash
# Upgrade pnpm to the patched version
npm install -g pnpm@10.28.1

# Verify the installed version
pnpm --version

# Clean reinstall dependencies with patched pnpm
rm -rf node_modules
pnpm install

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.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-23
  • Technical References
  • GitHub Release Notes
  • Vendor Resources
  • GitHub Commit Overview

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-23888: Pnpm Path Traversal Vulnerability

  • CVE-2026-24131: 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