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

CVE-2025-69262: Pnpm Command Injection RCE Vulnerability

CVE-2025-69262 is a command injection vulnerability in Pnpm that enables remote code execution through environment variable substitution in .npmrc files. This article covers technical details, affected versions, and mitigation.

Updated: May 15, 2026

CVE-2025-69262 Overview

CVE-2025-69262 is a command injection vulnerability in pnpm, a widely used JavaScript package manager. The flaw affects versions 6.25.0 through 10.26.2 and stems from unsafe environment variable substitution in .npmrc configuration files when tokenHelper settings are used. An attacker who controls environment variables during pnpm operations can achieve remote code execution in build environments such as continuous integration (CI) pipelines. The issue is classified under CWE-78 (OS Command Injection) and is fixed in version 10.27.0.

Critical Impact

Attackers who influence environment variables during a pnpm invocation can execute arbitrary OS commands, leading to code execution and supply chain compromise in build pipelines.

Affected Products

  • pnpm versions 6.25.0 through 10.26.2
  • Node.js projects using .npmrc with tokenHelper configuration
  • CI/CD build environments invoking vulnerable pnpm releases

Discovery Timeline

  • 2026-01-07 - CVE-2025-69262 published to the National Vulnerability Database (NVD)
  • 2026-01-12 - Last updated in NVD database

Technical Details for CVE-2025-69262

Vulnerability Analysis

The vulnerability resides in how pnpm processes the tokenHelper directive declared in .npmrc configuration files. The tokenHelper option specifies an external command that returns an authentication token for registry operations. When the configured command string includes environment variable references, pnpm performs variable substitution before executing the helper through a shell. The substitution occurs without sanitization or argument-array separation, allowing shell metacharacters embedded in environment variable values to break out of the intended command context.

An attacker capable of setting an environment variable consumed by tokenHelper can inject shell operators such as ;, &&, or backticks. The injected payload runs with the privileges of the user invoking pnpm, which in build systems is typically a CI runner account with access to source code, secrets, and registry credentials.

Root Cause

The root cause is unsafe construction of a shell command from attacker-influenced input. The tokenHelper resolver performs string-level expansion of environment variables and passes the result to a shell rather than executing the helper binary directly with a fixed argument vector. This pattern is a textbook instance of CWE-78, OS Command Injection.

Attack Vector

Exploitation requires local access in the sense that the attacker must influence environment variables present when pnpm executes. In practice, this includes: a malicious dependency or postinstall script that exports variables before invoking subsequent pnpm commands, a compromised CI configuration file that defines tainted variables, or a shared build agent where one job can influence the environment of another. Successful exploitation yields arbitrary command execution within the build context, enabling theft of registry tokens, modification of published artifacts, and lateral movement into adjacent pipelines.

No public proof-of-concept exploit is listed in the vendor advisory. Technical details are documented in the GitHub Security Advisory GHSA-2phv-j68v-wwqx.

Detection Methods for CVE-2025-69262

Indicators of Compromise

  • Unexpected child processes spawned by the pnpm binary during install or publish operations, particularly shells (sh, bash, cmd.exe) executing non-helper commands.
  • .npmrc files containing tokenHelper entries that reference environment variables wrapped with shell metacharacters such as ;, |, &, $(), or backticks.
  • Outbound network connections initiated from pnpm-spawned processes to hosts unrelated to configured registries.
  • Modifications to ~/.npmrc, project-level .npmrc, or environment files in repositories immediately preceding a build.

Detection Strategies

  • Audit all .npmrc files across repositories and developer workstations for the tokenHelper directive and review any environment variables it consumes.
  • Compare installed pnpm versions against the patched release 10.27.0 using software bill of materials (SBOM) data or pnpm --version output collected from build agents.
  • Inspect CI job definitions for environment variables whose values are derived from untrusted sources such as pull request metadata, forked branches, or third-party webhooks.

Monitoring Recommendations

  • Enable process-tree telemetry on build agents and alert on shell processes parented by pnpm or node during dependency resolution.
  • Forward build logs and process events to a centralized analytics platform to identify anomalous command execution patterns across pipelines.
  • Monitor outbound DNS and HTTP traffic from CI runners for connections that do not match an allowlist of package registries and internal services.

How to Mitigate CVE-2025-69262

Immediate Actions Required

  • Upgrade pnpm to version 10.27.0 or later on all developer workstations, build agents, and container images.
  • Inventory every .npmrc file in active repositories and remove or sanitize tokenHelper entries that reference environment variables.
  • Rotate any registry authentication tokens that may have been accessible to vulnerable build environments.
  • Restrict which environment variables CI jobs accept from untrusted sources such as pull requests originating from forks.

Patch Information

The pnpm maintainers released the fix in version 10.27.0. Release notes are available at the GitHub pnpm Release v10.27.0 page, and the advisory is published as GHSA-2phv-j68v-wwqx. Upgrading is the recommended remediation path.

Workarounds

  • Remove tokenHelper from .npmrc files and use static authentication tokens supplied through secret managers when upgrading is not immediately possible.
  • Pin pnpm to a fixed version in CI to prevent unintentional downgrades to vulnerable releases.
  • Run builds inside ephemeral, isolated containers so command injection cannot persist or pivot across jobs.
  • Constrain CI environment variables to an explicit allowlist and reject values containing shell metacharacters.
bash
# Upgrade pnpm to the patched release
npm install -g pnpm@10.27.0

# Verify the installed version is no longer vulnerable
pnpm --version

# Audit repositories for tokenHelper usage
grep -rEn '^\s*tokenHelper' . --include='.npmrc'

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPnpm

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub pnpm Release v10.27.0
  • Vendor Resources
  • GitHub Security Advisory GHSA-2phv-j68v-wwqx
  • Related CVEs
  • CVE-2025-69263: Pnpm Package Manager RCE Vulnerability

  • CVE-2025-69264: Pnpm Package Manager RCE Vulnerability

  • CVE-2024-53866: Pnpm Package Manager RCE Vulnerability

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