pnpm: patch-remove could delete project-selected files outside the patches directory (CVE-2026-59194)
Description
A vulnerability in pnpm package manager prior to versions 10.34.4 and 11.7.0 allows a crafted patch entry to resolve outside the intended patches directory. This can cause the pnpm patch-remove command to delete arbitrary files accessible to the user. The issue is fixed in versions 10.34.4 and 11.7.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
The pnpm package manager contains a vulnerability (CVE-2026-59194) where a specially crafted patch entry can escape the configured patches directory. This flaw enables the pnpm patch-remove command to delete arbitrary reachable files outside the patches directory. The vulnerability affects pnpm versions prior to 10.34.4 and 11.7.0. The issue has been addressed and fixed in versions 10.34.4 and 11.7.0.
Potential Impact
An attacker able to influence patch entries can cause pnpm patch-remove to delete arbitrary files accessible to the user running the command. This could lead to loss of important project files or other data, impacting integrity and availability. There is no indication of confidentiality impact. The vulnerability requires user interaction (UI:R) but no privileges (PR:N) and can be exploited remotely (AV:N).
Mitigation Recommendations
Upgrade pnpm to version 10.34.4 or later, or 11.7.0 or later, where this vulnerability is fixed. No other mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pnpm-CVE-2026-59194
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac2c0ae2cdf04f65652344e
Added to database: 10/04/2026, 21:10:06 UTC
Last enriched: 10/04/2026, 21:16:10 UTC
Last updated: 10/05/2026, 06:48:17 UTC
Views: 8
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.