CVE-2026-59194: pnpm: patch-remove could delete project-selected files outside the patches directory
pnpm is a package manager. Prior to 10.34.4 and 11.7.0, a crafted patch entry could resolve outside the configured patches directory and cause pnpm patch-remove to delete an arbitrary reachable file. This vulnerability is fixed in 10.34.4 and 11.7.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pnpmto a version that resolves this vulnerability.Fixed in 10.34.4 - Upgrade
Upgrade
pnpmto a version that resolves this vulnerability.Fixed in 11.7.0
Event History
Frequently Asked Questions
What is the severity of CVE-2026-59194?
The severity of CVE-2026-59194 is high with a score of 7.1.
How do I fix CVE-2026-59194?
To fix CVE-2026-59194, upgrade pnpm to version 10.34.4 or 11.7.0 or later.
What does CVE-2026-59194 affect?
CVE-2026-59194 affects the pnpm package manager, allowing a vulnerability in patch-remove functionality.
What is the risk associated with CVE-2026-59194?
CVE-2026-59194 poses a risk of arbitrary file deletion outside the patches directory.
What type of vulnerability is CVE-2026-59194 classified as?
CVE-2026-59194 is classified as a Path Traversal vulnerability.