pnpm: Transitive dependency alias path traversal allows project path override via symlink replacement (CVE-2026-50016)
Description
pnpm versions prior to 10.34.0 and 11.4.0 contain a vulnerability where a transitive dependency alias can include path traversal segments. This allows an attacker to cause pnpm to replace paths in the current project with symlinks to attacker-controlled directories during installation, even when scripts are ignored. The issue is fixed in versions 10.34.0 and 11.4.0.
CVSS v3.1
Score 8.8high
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, has a vulnerability (CVE-2026-50016) in versions before 10.34.0 and 11.4.0 where a transitive dependency alias from registry package metadata may contain path traversal segments. During the installation process, pnpm uses this alias as a filesystem path when linking dependency nodes. This can lead to an attacker-controlled registry package causing `pnpm install --ignore-scripts` to replace paths in the current project with symlinks pointing to attacker-controlled dependency package directories. This vulnerability is addressed in pnpm versions 10.34.0 and 11.4.0.
Potential Impact
An attacker can exploit this vulnerability to override paths in the victim's project directory with symbolic links to malicious dependency directories. This can lead to arbitrary code execution or modification of project files, impacting confidentiality, integrity, and availability of the affected system. The CVSS score of 8.8 indicates a high severity vulnerability with network attack vector, low attack complexity, no privileges required, user interaction required, and high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade pnpm to version 10.34.0 or later, or 11.4.0 or later, where this vulnerability is fixed. Since a patch is available, applying the official fix is the recommended remediation. No additional mitigations are specified.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pnpm-CVE-2026-50016
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac2c0b02cdf04f656523906
Added to database: 10/04/2026, 21:10:08 UTC
Last enriched: 10/04/2026, 21:16:51 UTC
Last updated: 10/05/2026, 06:48:17 UTC
Views: 10
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.