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

CVE-2026-23888: Pnpm Path Traversal Vulnerability

CVE-2026-23888 is a path traversal vulnerability in Pnpm package manager that allows malicious packages to write files outside intended directories, potentially leading to remote code execution. This post covers technical details, affected versions, impact, and mitigation steps.

Published: January 30, 2026

CVE-2026-23888 Overview

CVE-2026-23888 is a path traversal vulnerability in pnpm's binary fetcher that allows malicious packages to write files outside the intended extraction directory. This vulnerability affects the popular Node.js package manager and can be exploited through two distinct attack vectors targeting the ZIP extraction mechanism.

Critical Impact

Attackers can overwrite configuration files, scripts, or other sensitive files, potentially leading to Remote Code Execution (RCE) on affected systems.

Affected Products

  • pnpm versions prior to 10.28.1
  • All pnpm users who install packages with binary assets
  • CI/CD pipelines that auto-install binary dependencies

Discovery Timeline

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

Technical Details for CVE-2026-23888

Vulnerability Analysis

This path traversal vulnerability (CWE-22) exists in pnpm's binary fetcher component, which handles the extraction of binary assets from package archives. The vulnerability enables malicious packages to escape the intended extraction directory and write files to arbitrary locations on the filesystem.

The flaw impacts organizations running development environments and CI/CD pipelines where pnpm automatically installs package dependencies. When a malicious package is installed, it can overwrite critical system files, inject malicious code into existing scripts, or compromise configuration files—all of which can lead to full system compromise.

Root Cause

The root cause lies in insufficient path validation during ZIP archive extraction. The vulnerability manifests through two specific weaknesses:

  1. AdmZip Extraction Flaw: The extractAllTo method from AdmZip does not properly sanitize ZIP entries containing path traversal sequences like ../ or absolute paths, allowing files to escape the extraction root directory.

  2. Unsanitized Prefix Concatenation: The BinaryResolution.prefix field is directly concatenated into the extraction path without validation. A crafted prefix value such as ../../evil can redirect extracted files outside the intended targetDir.

Attack Vector

The attack is network-based and requires user interaction—specifically, a victim must install a malicious package containing crafted ZIP archives. An attacker would publish a package to a registry (public or private) with specially crafted binary assets. When a user runs pnpm install on a project depending on this malicious package, the path traversal payload executes, writing files to attacker-controlled locations.

The security patch introduces the is-subdir library to validate that all extracted file paths remain within the intended target directory:

typescript
import { type BinaryFetcher, type FetchFunction, type FetchResult } from '@pnpm/fetcher-base'
import { addFilesFromDir } from '@pnpm/worker'
import AdmZip from 'adm-zip'
+import isSubdir from 'is-subdir'
import renameOverwrite from 'rename-overwrite'
import tempy from 'tempy'
import ssri from 'ssri'

Source: GitHub Commit 5c382f0

The patch also includes test fixtures to verify path traversal protection, demonstrating proper ZIP file creation with sanitized paths:

typescript
+/**
+ * Script to generate malicious ZIP fixtures for path traversal testing.
+ *
+ * AdmZip's addFile() sanitizes paths automatically, so we need to create
+ * raw ZIP files manually to test path traversal protection.
+ *
+ * Run with: node --experimental-strip-types scripts/create-fixtures.ts
+ */
+import fs from 'fs'
+import path from 'path'
+
+/**
+ * Create a minimal ZIP file with a given entry path (not sanitized).
+ * This creates a valid ZIP structure with a single uncompressed file entry.
+ */
+function createZipWithEntry (entryPath: string, content: string): Buffer {
+  const contentBuf = Buffer.from(content)
+
+  // Local file header (30 bytes + filename)
+  const localHeader = Buffer.alloc(30 + entryPath.length)
+  localHeader.writeUInt32LE(0x04034b50, 0) // Local file header signature
+  localHeader.writeUInt16LE(20, 4) // Version needed to extract
+  localHeader.writeUInt16LE(0, 6) // General purpose flags
+  localHeader.writeUInt16LE(0, 8) // Compression method (0 = store)
+  localHeader.writeUInt16LE(0, 10) // Last mod file time
+  localHeader.writeUInt16LE(0, 12) // Last mod file date
+  localHeader.writeUInt32LE(0, 14) // CRC-32 (fake but okay for tests)
+  localHeader.writeUInt32LE(contentBuf.length, 18) // Compressed size
+  localHeader.writeUInt32LE(contentBuf.length, 22) // Uncompressed size
+  localHeader.writeUInt16LE(entryPath.length, 26) // Filename length

Source: GitHub Commit 5c382f0

Detection Methods for CVE-2026-23888

Indicators of Compromise

  • Unexpected file modifications outside of node_modules directories during package installation
  • Modified configuration files (.bashrc, .npmrc, .gitconfig) with unauthorized content
  • New or altered executable scripts in system paths or project root directories
  • Package installations containing ZIP entries with ../ sequences or absolute paths

Detection Strategies

  • Implement file integrity monitoring (FIM) on critical configuration files and scripts during CI/CD pipeline execution
  • Monitor pnpm installation logs for unusual extraction paths or error messages related to file operations
  • Audit installed packages for suspicious binary or optionalDependencies entries pointing to untrusted sources
  • Use SentinelOne's Singularity platform to detect anomalous file write operations during package manager processes

Monitoring Recommendations

  • Enable verbose logging for pnpm operations in development and CI/CD environments using pnpm --loglevel debug
  • Configure alerts for file creation or modification events outside expected directories during npm/pnpm processes
  • Implement package allowlisting to restrict installation of packages with binary dependencies to vetted sources only

How to Mitigate CVE-2026-23888

Immediate Actions Required

  • Upgrade pnpm to version 10.28.1 or later immediately across all development environments and CI/CD pipelines
  • Audit recently installed packages with binary dependencies for signs of compromise
  • Review file integrity of configuration files and scripts in affected systems
  • Consider temporarily disabling automatic binary dependency installation until patched

Patch Information

The vulnerability has been patched in pnpm version 10.28.1. The fix introduces proper path validation using the is-subdir library to ensure all extracted files remain within the intended target directory. Organizations should upgrade immediately by running:

bash
npm install -g pnpm@10.28.1

For detailed patch information, see the GitHub Security Advisory GHSA-6pfh-p556-v868 and the release notes for version 10.28.1.

Workarounds

  • Use package lockfiles (pnpm-lock.yaml) with integrity checks to prevent installation of tampered packages
  • Configure pnpm to use a private registry with package vetting and scanning enabled
  • Implement network isolation for package installations to limit the impact of potential compromises
  • Consider using --ignore-scripts flag to prevent post-install scripts from executing until packages are verified
bash
# Upgrade pnpm to the patched version
npm install -g pnpm@10.28.1

# Verify installed version
pnpm --version

# Alternative: Use corepack to manage pnpm version
corepack prepare pnpm@10.28.1 --activate

# Run installations with script safety (temporary workaround)
pnpm install --ignore-scripts

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.04%

  • 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-22
  • Technical References
  • GitHub Release v10.28.1
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-6pfh-p556-v868
  • Related CVEs
  • CVE-2026-23890: 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