CVE-2026-59194

HIGH

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

Title source: cna
STIX 2.1

Description

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.

References (1)

Core 1
Core References

Scores

CVSS v3 7.1
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L

Details

CWE
CWE-22 CWE-73
Status published
Products (2)
pnpm/pnpm < 10.34.4
pnpm/pnpm >= 11.0.0, < 11.7.0
Published Jul 06, 2026
Tracked Since Jul 06, 2026