CVE-2026-59194CWE-22CWE-73

pnpm: patch-remove could delete project-selected files outside the patches directory

High · published July 6, 2026

CVSS v3.1
7.1
EPSS
0%
Percentile
33.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00401 · 33.2th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-73 · External Control of File Name or Path
Published
2026-07-06T15:16Z
EPSS history
Timeline
  • 06 JUL 15:16Z
    pnpm: patch-remove could delete project-selected files outside the patches directory
    cvelistv5