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-2025-69264

CVE-2025-69264: Pnpm Package Manager RCE Vulnerability

CVE-2025-69264 is a remote code execution vulnerability in Pnpm package manager that allows git-hosted dependencies to execute arbitrary code during installation. This article covers technical details, affected versions, and mitigation.

Updated: March 12, 2026

CVE-2025-69264 Overview

CVE-2025-69264 is a Remote Code Execution (RCE) vulnerability in pnpm, a popular Node.js package manager. The vulnerability affects versions 10.0.0 through 10.25 and allows git-hosted dependencies to execute arbitrary code during pnpm install, bypassing the security feature introduced in v10 that disabled dependency lifecycle scripts execution by default.

While pnpm v10 blocks postinstall scripts via the onlyBuiltDependencies mechanism, git dependencies can still execute prepare, prepublish, and prepack scripts during the fetch phase. This enables remote code execution without user consent or approval, creating a significant supply chain attack vector.

Critical Impact

Attackers can execute arbitrary code on developer machines during package installation by crafting malicious git-hosted dependencies that exploit the prepare, prepublish, and prepack script execution bypass.

Affected Products

  • pnpm versions 10.0.0 through 10.25 (Node.js package manager)

Discovery Timeline

  • 2026-01-07 - CVE-2025-69264 published to NVD
  • 2026-01-12 - Last updated in NVD database

Technical Details for CVE-2025-69264

Vulnerability Analysis

This vulnerability represents a Protection Mechanism Failure (CWE-693) in pnpm's security architecture. The v10 release introduced a security-hardening feature that disables dependency lifecycle script execution by default through the onlyBuiltDependencies mechanism. However, the implementation failed to account for git-hosted dependencies, which follow a different installation pathway.

When pnpm fetches a git-hosted dependency, it clones the repository and prepares it for installation. During this preparation phase, npm lifecycle scripts such as prepare, prepublish, and prepack are executed to build the package before it's added to the project. The onlyBuiltDependencies security control only blocked postinstall scripts but did not extend to these preparation-phase scripts.

This creates an exploitable gap where an attacker can publish a malicious package to a git repository and include code execution payloads in any of the three bypassed lifecycle scripts. When a victim adds this dependency or updates their dependencies, the malicious code executes automatically without any warning or approval prompt.

Root Cause

The root cause stems from an incomplete implementation of the script execution security controls in pnpm v10. The onlyBuiltDependencies mechanism was designed to prevent untrusted scripts from running during installation, but the security boundary did not encompass the git dependency fetch phase. The prepare, prepublish, and prepack scripts are considered necessary for building git-sourced packages, but this assumption created a security gap that bypasses the intended protections.

Attack Vector

An attacker can exploit this vulnerability through the following attack chain:

  1. Create a malicious git repository containing a Node.js package
  2. Add malicious code to the prepare, prepublish, or prepack script in package.json
  3. Convince a victim to add the dependency via git URL (e.g., pnpm add git+https://github.com/attacker/malicious-package)
  4. Alternatively, compromise an existing git-hosted dependency in the victim's dependency tree
  5. When the victim runs pnpm install, the malicious scripts execute during the fetch phase

The attack requires no authentication and can be triggered remotely via network-accessible git repositories. The victim receives no warning before code execution occurs.

typescript
// Security patch introducing blockExoticSubdeps option
// Source: https://github.com/pnpm/pnpm/commit/73cc63504d9bc360c43e4b2feb9080677f03c5b5

   ignoreWorkspaceCycles?: boolean
   disallowWorkspaceCycles?: boolean
   packGzipLevel?: number
+  blockExoticSubdeps?: boolean

   registries: Registries
   sslConfigs: Record<string, SslConfig>

The patch introduces a new blockExoticSubdeps configuration option that allows users to block non-trusted dependency sources in subdependencies, providing defense-in-depth against supply chain attacks through git-hosted packages.

Detection Methods for CVE-2025-69264

Indicators of Compromise

  • Presence of git-hosted dependencies in package.json or pnpm-lock.yaml files that reference untrusted or recently modified repositories
  • Unexpected process spawning during pnpm install operations, particularly child processes not related to known build tools
  • Network connections to unexpected external hosts during package installation
  • Modifications to system files or user directories following package installation operations

Detection Strategies

  • Monitor for pnpm install commands that trigger execution of shell scripts or binaries outside the normal Node.js build toolchain
  • Implement file integrity monitoring on developer workstations to detect unauthorized changes during package operations
  • Audit dependency manifests for git URL dependencies, especially those pointing to personal repositories or recently created accounts
  • Deploy endpoint detection rules that alert on process trees spawned from the pnpm process that execute sensitive system operations

Monitoring Recommendations

  • Enable verbose logging for pnpm operations using pnpm install --loglevel debug to capture script execution events
  • Implement network monitoring to detect data exfiltration attempts during package installation
  • Review git-hosted dependencies during code review and CI/CD pipeline checks
  • Use SentinelOne's behavioral AI to detect anomalous process behavior during Node.js development workflows

How to Mitigate CVE-2025-69264

Immediate Actions Required

  • Upgrade pnpm to version 10.26.0 or later immediately using npm install -g pnpm@latest
  • Audit existing projects for git-hosted dependencies and evaluate their trustworthiness
  • Enable the new blockExoticSubdeps option in .npmrc to prevent untrusted subdependency sources
  • Consider temporarily switching to registry-hosted versions of dependencies where git URLs are currently used

Patch Information

The vulnerability is fixed in pnpm version 10.26.0. The fix introduces the blockExoticSubdeps configuration option that can be enabled to block non-trusted dependency sources. The security patch is available in the GitHub commit and documented in the GitHub Security Advisory GHSA-379q-355j-w6rj.

Workarounds

  • Avoid using git-hosted dependencies until upgrading to the patched version
  • Use --ignore-scripts flag when installing dependencies from untrusted sources (note: this may break legitimate packages requiring build steps)
  • Pin git dependencies to specific commit hashes rather than branches to reduce exposure window
  • Implement allowlisting of permitted git repository sources in your development environment
bash
# Configuration example for .npmrc
# Enable blocking of exotic subdependencies
block-exotic-subdeps=true

# Upgrade pnpm to patched version
npm install -g pnpm@10.26.0

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPnpm

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-693
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-379q-355j-w6rj
  • Related CVEs
  • CVE-2025-69262: pnpm Command Injection RCE Vulnerability

  • CVE-2025-69263: pnpm Package Manager RCE Vulnerability

  • CVE-2026-23888: Pnpm Path Traversal Vulnerability

  • CVE-2026-23890: Pnpm Path Traversal 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