CVE-2026-59194 PUBLISHED

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

Assigner: GitHub_M
Reserved: 02.07.2026 Published: 06.07.2026 Updated: 06.07.2026

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.

Metrics

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

Product Status

Vendor pnpm
Product pnpm
Versions
  • Version < 10.34.4 is affected
  • Version >= 11.0.0, < 11.7.0 is affected

References

Problem Types

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE
  • CWE-73: External Control of File Name or Path CWE