CVE-2026-82392: pnpm Path Traversal Vulnerability in Virtual Store Linker

pnpm Updated 02 Sep 2026

Summary

02/09/2026
Yes i
High
7.1

CVE-2026-82392: pnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraph. Affects pnpm across 2 version ranges.

< 10.34.5 >= 11.0.0, < 11.11.0

Fixed in 10.34.5 or 11.11.0, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

pnpm is a fast, disk space-efficient package manager for Node.js that utilizes a unique approach to package installation by creating a virtual store. This method allows for efficient management of dependencies, reducing duplication and improving installation speed. However, pnpm is susceptible to a path traversal vulnerability that can lead to arbitrary file writes on the filesystem, posing significant security risks.

Vulnerability Detail

The vulnerability arises from the virtual store linker's construction of package installation directories using unvalidated package names extracted from the pnpm-lock.yaml file. Specifically, the package name is derived from the dependency path without any validation, allowing an attacker to craft a malicious lockfile that includes traversal sequences. This can lead to package content being written to arbitrary locations on the filesystem during the installation process, potentially compromising system integrity and security.

How To Fix

Latest published version: 12.15.0 as of 23 Oct 2026

npm install pnpm@12.15.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 10.34.5 10.34.5
    npm install pnpm@10.34.5
  • >= 11.0.0, < 11.11.0 11.11.0
    npm install pnpm@11.11.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, avoid using crafted pnpm-lock.yaml files from untrusted sources. Additionally, you can implement validation checks on the dependency paths before processing them in your application.

Conclusion

The pnpm path traversal vulnerability (CVE-2026-82392) poses significant risks by allowing attackers to manipulate package installations. It is crucial for users to update to the latest patched versions of pnpm and to be cautious with dependency management to mitigate potential threats.

See every vulnerability recorded for pnpm →

Share this vulnerability

FAQ

The vulnerability allows for path traversal, enabling attackers to write files to arbitrary locations on the filesystem during the installation of packages.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By checking your package-lock.json file with Vulert's playground, you can determine if your application is affected.

An attacker could exploit this vulnerability to overwrite critical files, inject malicious code, or hijack binaries, leading to severe security breaches.

Yes, if the configuration allows it, an attacker could escalate the attack to remote code execution by executing malicious scripts during the installation process.

If immediate updates are not possible, ensure that you do not use untrusted pnpm-lock.yaml files and consider implementing additional validation checks on dependency paths.

Related vulnerabilities

Recent vulnerabilities recorded for pnpm.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Latest published version: 12.15.0 as of 23 Oct 2026

npm install pnpm@12.15.0

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 10.34.5 10.34.5
    npm install pnpm@10.34.5
  • >= 11.0.0, < 11.11.0 11.11.0
    npm install pnpm@11.11.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback