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.
Published: 2026-07-06
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

pnpm is a JavaScript package manager that uses patch files to modify installed packages. Prior to versions 10.34.4 and 11.7.0, a crafted patch entry could resolve to a location outside the configured patches directory, and when the user ran pnpm patch-remove the tool would delete the resolved file. The impact is the loss of data integrity, as arbitrary reachable files can be removed against a malicious patch entry.

Affected Systems

The vulnerability affects the pnpm package manager itself. Any installation of pnpm older than 10.34.4 or 11.7.0 that accepts custom patch entries is at risk. This includes project builds and continuous‑integration environments that use those pnpm versions.

Risk and Exploitability

The CVSS score of 7.1 classifies this flaw as high severity. The EPSS score of less than 1% indicates a very low probability of exploitation, and the vulnerability is not yet listed in the CISA KEV catalog. Based on the description, the likely attack vector is local or between users who can add or modify patch entries; an attacker can insert a malicious patch pointing to a sensitive file and then invoke patch-remove to delete that file. The effect is restricted to files reachable by the user context running pnpm, but can be severe if critical system files are targeted.

Generated by OpenCVE AI on July 26, 2026 at 20:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade pnpm to version 10.34.4 or later (for the main release line) or 11.7.0 or newer to close the path resolution flaw.
  • If an upgrade cannot be performed immediately, avoid using the patch-remove command on patch entries that reference files outside the patches directory; remove or edit such entries so that they resolve within the allowed directory.
  • Audit all existing patch entries in your project to identify any that could resolve outside the patches directory and either delete or sanitize those entries to prevent accidental or malicious file deletion.

Generated by OpenCVE AI on July 26, 2026 at 20:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 08 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Wed, 08 Jul 2026 06:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Pnpm
Pnpm pnpm
Vendors & Products Pnpm
Pnpm pnpm

Mon, 06 Jul 2026 15:45:00 +0000

Type Values Removed Values Added
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.
Title pnpm: patch-remove could delete project-selected files outside the patches directory
Weaknesses CWE-22
CWE-73
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-07T16:57:59.326Z

Reserved: 2026-07-02T19:53:48.831Z

Link: CVE-2026-59194

cve-icon Vulnrichment

Updated: 2026-07-07T16:42:38.573Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-06T15:16:28Z

Links: CVE-2026-59194 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T20:30:03Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-73

    External Control of File Name or Path