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

CVE-2026-24056: Pnpm Information Disclosure Vulnerability

CVE-2026-24056 is an information disclosure flaw in Pnpm that allows malicious packages to leak local files via symlinks. This post covers the technical details, affected versions, impact, and mitigation strategies.

Published: January 30, 2026

CVE-2026-24056 Overview

CVE-2026-24056 is a symlink attack vulnerability in pnpm, a popular Node.js package manager. Prior to version 10.28.2, pnpm follows symlinks and reads their target contents without constraining them to the package root when installing file: (directory) or git: dependencies. A malicious package containing a symlink to an absolute path (e.g., /etc/passwd, ~/.ssh/id_rsa) causes pnpm to copy that file's contents into node_modules, leading to local data exfiltration.

Critical Impact

This vulnerability can lead to credential theft through symlinks targeting sensitive files such as ~/.aws/credentials, ~/.npmrc, and ~/.ssh/id_rsa, impacting developers and CI/CD pipelines installing local or git dependencies.

Affected Products

  • pnpm versions prior to 10.28.2
  • Node.js environments using pnpm with file: dependencies
  • CI/CD pipelines installing git: dependencies via pnpm

Discovery Timeline

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

Technical Details for CVE-2026-24056

Vulnerability Analysis

This vulnerability stems from improper handling of symbolic links during the package installation process. When pnpm processes file: or git: dependencies, it follows symlinks without validating whether the target path resides within the package's root directory. This lack of path constraint validation allows an attacker to craft a malicious package containing symlinks that point to arbitrary files on the system.

The vulnerability is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) and CWE-59 (Improper Link Resolution Before File Access). Notably, registry packages published to npm are not affected because symlinks are stripped during the publish process. The attack requires local interaction, making it primarily a threat to developers installing local dependencies or CI/CD systems processing git-based dependencies.

Root Cause

The root cause is the failure to properly resolve and validate symlink targets before copying file contents during dependency installation. The pnpm installation logic did not implement proper symlink boundary checks, allowing path traversal outside the intended package directory. When encountering a symlink, pnpm would resolve and read the target file regardless of its location on the filesystem.

Attack Vector

The attack vector requires an attacker to distribute a malicious package containing crafted symlinks pointing to sensitive files. When a victim installs this package as a file: or git: dependency, pnpm follows the symlinks and copies the contents of targeted files (such as SSH keys, AWS credentials, or npm tokens) into the node_modules directory. The attacker can then access these leaked credentials through the installed package contents.

The attack flow involves:

  1. Attacker creates a malicious package with symlinks to sensitive paths like ~/.ssh/id_rsa or ~/.aws/credentials
  2. Package is distributed via git repository or local file path
  3. Victim runs pnpm install with the malicious dependency
  4. pnpm follows symlinks and copies sensitive file contents into node_modules
  5. Attacker gains access to leaked credentials through package post-install scripts or other mechanisms

Detection Methods for CVE-2026-24056

Indicators of Compromise

  • Unexpected files appearing in node_modules directories that match system configuration files
  • Package dependencies containing symlinks pointing to absolute paths outside the package root
  • Unusual file access patterns during pnpm install operations targeting sensitive directories like ~/.ssh/, ~/.aws/, or ~/.npmrc

Detection Strategies

  • Monitor file system operations during package installation for symlink resolution to sensitive paths
  • Audit file: and git: dependencies in package.json files for untrusted or unfamiliar sources
  • Implement file integrity monitoring on sensitive credential files to detect unauthorized reads
  • Review CI/CD pipeline logs for unexpected file access during dependency installation

Monitoring Recommendations

  • Enable audit logging for file system operations in development and CI/CD environments
  • Configure alerts for pnpm installation processes accessing files outside expected package directories
  • Regularly scan node_modules directories for unexpected file contents matching known sensitive file patterns
  • Monitor for outbound data exfiltration attempts following package installation events

How to Mitigate CVE-2026-24056

Immediate Actions Required

  • Upgrade pnpm to version 10.28.2 or later immediately
  • Audit existing file: and git: dependencies in all projects for potential malicious symlinks
  • Review CI/CD pipeline configurations that install dependencies from git repositories
  • Rotate credentials that may have been exposed if vulnerable pnpm versions were used with untrusted dependencies

Patch Information

The vulnerability has been addressed in pnpm version 10.28.2. The fix implements proper symlink boundary validation during dependency installation, ensuring symlinks cannot target files outside the package root directory. For detailed information about the patch, see the GitHub Commit Changes and the GitHub Security Advisory GHSA-m733-5w8f-5ggw.

Workarounds

  • Avoid installing dependencies from untrusted file: or git: sources until the upgrade is applied
  • Manually inspect packages for symlinks before installation using find . -type l -ls within the package directory
  • Run pnpm installations in isolated containers with limited access to sensitive files
  • Use npm registry packages instead of local file or git dependencies where possible, as registry packages have symlinks stripped during publish
bash
# Upgrade pnpm to patched version
npm install -g pnpm@10.28.2

# Verify installed pnpm version
pnpm --version

# Scan for symlinks in a package directory before installation
find /path/to/package -type l -exec ls -la {} \;

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechPnpm

  • SeverityMEDIUM

  • CVSS Score6.7

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22

  • CWE-59
  • Technical References
  • GitHub Release v10.28.2
  • Vendor Resources
  • GitHub Commit Changes

  • GitHub Security Advisory GHSA-m733-5w8f-5ggw
  • Related CVEs
  • CVE-2026-23888: Pnpm Path Traversal Vulnerability

  • CVE-2026-23890: Pnpm Path Traversal Vulnerability

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