pnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraph (CVE-2026-82392)
Description
A path traversal vulnerability in pnpm prior to 10.34.5 and from 11.0.0 until 11.11.0 allows attacker-controlled package names in pnpm-lock.yaml to write files outside the node_modules directory during installation. This can lead to arbitrary code execution if lifecycle scripts are permitted. The issue is fixed in versions 10.34.5 and 11.11.0.
CVSS v3.1
Score 7.1high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
pnpm, a package manager, improperly validates package names parsed from pnpm-lock.yaml keys using dp.parse(depPath).name. These unvalidated names are used in path operations (path.join) and package import functions, enabling path traversal that writes package contents outside the intended node_modules directory during pnpm install. When lifecycle scripts are allowed via dangerouslyAllowAllBuilds or matching allowBuilds entries, this can result in execution of attacker-controlled code with the user's privileges. The vulnerability affects versions prior to 10.34.5 and versions from 11.0.0 up to but not including 11.11.0. Fixes were released in versions 10.34.5 and 11.11.0.
Potential Impact
An attacker who can control package names in pnpm-lock.yaml can cause arbitrary files to be written outside the node_modules directory during installation. If lifecycle scripts are enabled, this can lead to arbitrary code execution with the privileges of the user running pnpm. The vulnerability does not require privileges and can be triggered remotely via crafted lockfiles. The CVSS score is 7.1 (high severity) with network attack vector, low attack complexity, no privileges required, user interaction required, unchanged scope, no confidentiality impact, high integrity impact, and low availability impact.
Mitigation Recommendations
A fix is available in pnpm versions 10.34.5 and 11.11.0. Users should upgrade to these versions or later to remediate this vulnerability. No additional mitigations are indicated by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pnpm-CVE-2026-82392
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Patch Information
Threat ID: 6ac2c0ae2cdf04f65652344b
Added to database: 10/04/2026, 21:10:06 UTC
Last enriched: 10/04/2026, 21:15:55 UTC
Last updated: 10/04/2026, 21:15:55 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.