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-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 the technical details, affected versions, and patches.

Updated: January 22, 2026

CVE-2025-69262 Overview

CVE-2025-69262 is a Command Injection vulnerability affecting pnpm, a popular JavaScript package manager. Versions 6.25.0 through 10.26.2 are vulnerable when using environment variable substitution in .npmrc configuration files with tokenHelper settings. An attacker who can control environment variables during pnpm operations could achieve Remote Code Execution (RCE) in build environments.

Critical Impact

This vulnerability enables Remote Code Execution in CI/CD pipelines and build environments where attackers can manipulate environment variables, potentially compromising entire software supply chains.

Affected Products

  • pnpm versions 6.25.0 through 10.26.2
  • Build environments using pnpm with .npmrc tokenHelper configurations
  • CI/CD pipelines with environment variable exposure

Discovery Timeline

  • 2026-01-07 - CVE CVE-2025-69262 published to NVD
  • 2026-01-08 - Last updated in NVD database

Technical Details for CVE-2025-69262

Vulnerability Analysis

This vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command) stems from insufficient input sanitization when pnpm processes environment variable substitutions within .npmrc configuration files, specifically in the context of tokenHelper settings. The tokenHelper feature is designed to allow dynamic token generation for private registry authentication, but the implementation fails to properly sanitize environment variable values before incorporating them into shell commands.

When pnpm encounters environment variable references in the .npmrc file's tokenHelper directive, it performs substitution without adequately escaping shell metacharacters. This allows an attacker with control over environment variables to inject arbitrary commands that execute with the privileges of the pnpm process.

The attack requires local access and high privileges to manipulate environment variables, combined with specific configuration conditions, which moderately limits the exploitation window. However, in CI/CD environments where environment variables are commonly used for configuration, this vulnerability poses a significant supply chain security risk.

Root Cause

The root cause is improper neutralization of special elements in environment variable values before they are used in OS command construction. The pnpm codebase did not implement sufficient input validation and escaping for shell metacharacters when processing tokenHelper configurations that reference environment variables. This allowed shell command syntax to pass through and be interpreted by the underlying shell during execution.

Attack Vector

The attack requires local access to the system where pnpm is executed. An attacker must be able to set or modify environment variables that are subsequently referenced in the .npmrc file's tokenHelper configuration. In practice, this is most relevant in:

  • CI/CD pipelines: Where build configurations may inadvertently expose environment variable control
  • Shared build servers: Where multiple users or processes can set environment variables
  • Container environments: Where environment variables are commonly used for configuration injection

The vulnerability is exploited by crafting malicious environment variable values containing shell metacharacters and commands. When pnpm processes the .npmrc file and evaluates the tokenHelper setting, these injected commands are executed.

The attack mechanism involves placing shell metacharacters (such as backticks, $() command substitution syntax, or semicolons) within environment variable values that are referenced by the tokenHelper configuration. For detailed technical information, refer to the GitHub Security Advisory GHSA-2phv-j68v-wwqx.

Detection Methods for CVE-2025-69262

Indicators of Compromise

  • Unusual environment variable values containing shell metacharacters in build logs
  • Unexpected child processes spawned by pnpm during package operations
  • Anomalous network connections or file system access during npm/pnpm install phases
  • Modified or suspicious .npmrc files with complex tokenHelper configurations

Detection Strategies

  • Monitor process execution trees for unexpected child processes spawned by pnpm
  • Implement environment variable auditing in CI/CD pipelines to detect suspicious values
  • Use SentinelOne's behavioral AI to identify command injection patterns during build processes
  • Review .npmrc configurations for tokenHelper settings that reference external environment variables

Monitoring Recommendations

  • Enable detailed logging for pnpm operations in build environments
  • Implement file integrity monitoring for .npmrc configuration files
  • Configure alerting for unusual command patterns executed during package manager operations
  • Deploy SentinelOne agents on build servers to detect and respond to RCE attempts in real-time

How to Mitigate CVE-2025-69262

Immediate Actions Required

  • Upgrade pnpm to version 10.27.0 or later immediately
  • Audit all .npmrc files for tokenHelper configurations that use environment variable substitution
  • Review CI/CD pipeline configurations to limit environment variable exposure
  • Implement environment variable validation before pnpm execution

Patch Information

The vulnerability has been addressed in pnpm version 10.27.0. This release includes proper sanitization of environment variable values when used in tokenHelper and similar configuration contexts. Users should upgrade immediately by running npm install -g pnpm@latest or updating their package manager pinning configurations.

For detailed patch information, see the GitHub Release v10.27.0.

Workarounds

  • Avoid using environment variable substitution in tokenHelper configurations until patched
  • Use static token values or secure credential management systems instead of environment variables
  • Implement strict input validation for any environment variables used in build processes
  • Restrict environment variable setting permissions in shared build environments
bash
# Verify pnpm version and upgrade if vulnerable
pnpm --version

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

# Audit .npmrc files for tokenHelper usage
grep -r "tokenHelper" ~/.npmrc .npmrc 2>/dev/null

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

  • EPSS Probability0.11%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Release v10.27.0

  • GitHub Security Advisory GHSA-2phv-j68v-wwqx
  • Related CVEs
  • CVE-2025-69264: Pnpm Package Manager 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