pnpm: A tarball dependency's manifest `name` escapes node_modules → arbitrary file write/overwrite on install (CVE-2026-82393)
Description
A vulnerability in pnpm prior to versions 10.34.5 and 11.11.0 allows a tarball dependency's manifest name to perform path traversal outside node_modules during installation. This leads to arbitrary file write or overwrite on the filesystem, potentially replacing critical files such as shell startup scripts, Git hooks, or installed package code, which can result in code execution. The issue arises because slash characters are not properly rejected in scoped package names, enabling crafted package manifests to escape intended directories. This vulnerability is fixed in pnpm versions 10.34.5 and 11.11.0.
CVSS v3.1
Score 7.5high
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, suffers from a path traversal vulnerability in its handling of tarball dependency manifests prior to versions 10.34.5 and 11.11.0. The vulnerability occurs because the package.json manifest's name field in a tarball dependency can contain scoped path traversal sequences that are not properly sanitized. The code in pnpm11/resolving/npm-resolver/src/pickPackage.ts only rejects slash characters for unscoped names, allowing scoped names to bypass this check. During the installation process, the unvalidated name is used in raw path joins in multiple internal modules, causing extraction of files outside the node_modules directory. This allows an attacker to overwrite arbitrary files on the filesystem even when the --ignore-scripts flag is used. Overwritten files can include shell startup files, Git hooks, or package code, potentially leading to code execution. The vulnerability is tracked as CVE-2026-82393 and has a CVSS 3.1 score of 7.5 (high severity). Fixes are available in pnpm versions 10.34.5 and 11.11.0.
Potential Impact
Successful exploitation allows an attacker to write or overwrite arbitrary files on the victim's filesystem during package installation. This can lead to replacement of critical files such as shell startup scripts, Git hooks, or installed package code, which may result in arbitrary code execution. The vulnerability can be triggered even when the --ignore-scripts flag is used, increasing the risk of exploitation. The CVSS score of 7.5 reflects high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
A fix is available and users should upgrade pnpm to version 10.34.5 or later, or 11.11.0 or later. Applying these official patches will prevent the path traversal vulnerability. Until upgraded, users should be cautious when installing packages from untrusted sources. No additional vendor advisory states that no action is required or that the issue is already mitigated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pnpm-CVE-2026-82393
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Patch Information
Threat ID: 6ac2c0ae2cdf04f65652344a
Added to database: 10/04/2026, 21:10:06 UTC
Last enriched: 10/04/2026, 21:15:51 UTC
Last updated: 10/05/2026, 18:48:23 UTC
Views: 21
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.