CVE-2026-59195CWE-22

pnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-config

High · published July 6, 2026

CVSS v3.1
8.2
EPSS
0%
Percentile
33.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.2 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L
CVSS v4.0
Not supplied
EPSS
0.00401 · 33.2th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2026-07-06T15:21Z
EPSS history
Timeline
  • 06 JUL 15:21Z
    pnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-config
    cvelistv5