Description
pnpm is a package manager. Prior to 10.34.4 and 11.7.0, a crafted lockfile alias could be joined directly under a hoisted node_modules directory. Traversal aliases could escape that directory, while reserved aliases such as .bin or .pnpm could overwrite pnpm-owned layout. 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

The vulnerability arises when a crafted alias in a pnpm lockfile is resolved directly into a hoisted node_modules directory. If the alias contains path traversal sequences or uses reserved names such as .bin or .pnpm, the resolved path may escape the intended subtree or overwrite files that pnpm manages, allowing a malicious actor to place arbitrary content inside the installation layout. This flaw corresponds to Path Traversal (CWE-22) and improper handling of relative paths (CWE-73). Based on the description, it is inferred that the attacker can supply a malicious lockfile during a pnpm install to exploit the issue.

Affected Systems

The issue affects pnpm installations older than version 10.34.4 and 11.7.0. Users that run those releases and consume lockfiles from untrusted sources, especially in build or deployment pipelines, are susceptible to the problem.

Risk and Exploitability

The CVSS score of 7.1 indicates a high severity. The EPSS score is below 1%, indicating a very low likelihood of active exploitation, and the vulnerability is not listed in CISA's KEV catalog, so no widespread, verified exploits are known. Attackers would need to supply a malicious lockfile during a pnpm install, a scenario commonly encountered in continuous-integration environments or where external lockfiles are fetched from registries. Based on the description, it is inferred that the primary attack vector involves supplying a crafted lockfile presented to pnpm, typically by a malicious source or compromised registry, with the install performed by a user having write access to the node_modules tree.

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, 11.7.0, or later.
  • Obtain or verify lockfiles from trusted, authenticated sources before running pnpm install.
  • If an immediate upgrade is not feasible, execute pnpm as a non-privileged user or enforce stricter permissions on the node_modules tree to block unauthorized writes.

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

Mon, 06 Jul 2026 17: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 lockfile alias could be joined directly under a hoisted node_modules directory. Traversal aliases could escape that directory, while reserved aliases such as .bin or .pnpm could overwrite pnpm-owned layout. This vulnerability is fixed in 10.34.4 and 11.7.0.
Title pnpm: hoisted install imports lockfile alias outside node_modules
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-06T15:40:34.708Z

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

Link: CVE-2026-59196

cve-icon Vulnrichment

Updated: 2026-07-06T15:40:29.371Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

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