Description
pnpm is a package manager. Prior to 10.34.4 and 11.8.0, pnpm accepts package names from the env lockfile configDependencies section and uses those names directly when creating config dependency symlinks under node_modules/.pnpm-config. A malicious repository can commit a crafted pnpm-lock.yaml whose env-lockfile document contains a traversal-shaped config dependency name. During pnpm install, pnpm installs the config dependency and creates a symlink at a path derived from that name. This vulnerability is fixed in 10.34.4 and 11.8.0.
Published: 2026-07-06
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A path traversal flaw in pnpm allows an attacker to create a symbolic link that points outside the intended node_modules/.pnpm-config directory. The vulnerability arises when pnpm processes the configDependencies section of a pnpm-lock.yaml file, using the listed package names directly to construct the symlink destination. The likely attack vector is the execution of pnpm install on a repository containing a maliciously crafted lockfile; based on the description, it is inferred that the attacker must supply the lockfile and that the executing user has write permission to the target directory.

Affected Systems

The flaw affects all users running pnpm prior to version 10.34.4 or 11.8.0. Developers, CI/CD pipelines, and any environment that installs packages from potentially untrusted repositories using these older pnpm releases are impacted. The problem manifests during the pnpm install command when the lockfile is parsed.

Risk and Exploitability

The CVSS score of 8.2 signals a high severity, while the EPSS score of < 1% indicates a very low probability of widespread exploitation. The vulnerability is not listed in the CISA KEV catalog. Successful exploitation requires a malicious pnpm-lock.yaml file and write access to the project directory; the attacker can then create a symlink to an arbitrary target within the user’s filesystem, potentially redirecting package resolution or affecting subsequent build steps.

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

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade pnpm to version 10.34.4 or later (or 11.8.0 or later) to apply the fix that sanitizes path handling in configDependencies.
  • If an upgrade is not immediately possible, review the pnpm‑lock.yaml file before installation for entries that contain path traversal patterns such as "../" and remove or neutralize them to prevent unintended symlink creation.
  • Run pnpm install in an isolated or non‑privileged directory and monitor for unexpected symlink creation events to detect potential misuse.

Generated by OpenCVE AI on July 26, 2026 at 20:27 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


Tue, 07 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', '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.8.0, pnpm accepts package names from the env lockfile configDependencies section and uses those names directly when creating config dependency symlinks under node_modules/.pnpm-config. A malicious repository can commit a crafted pnpm-lock.yaml whose env-lockfile document contains a traversal-shaped config dependency name. During pnpm install, pnpm installs the config dependency and creates a symlink at a path derived from that name. This vulnerability is fixed in 10.34.4 and 11.8.0.
Title pnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-config
Weaknesses CWE-22
References
Metrics cvssV3_1

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


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-07T14:06:17.178Z

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

Link: CVE-2026-59195

cve-icon Vulnrichment

Updated: 2026-07-07T14:06:04.639Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-06T15:21:03Z

Links: CVE-2026-59195 - 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')