Path Traversal in Pnpm
CVE-2026-59195
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.
Vulnerability class: Path Traversal (Directory Traversal)
EPSS: 0.003 (21.4th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:L.
Affected products
- Pnpm — versions < 10.34.4, >= 11.0.0, < 11.8.0
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Mitigation, Vendor Advisory)
Frequently asked questions
- What is CVE-2026-59195?
- CVE-2026-59195 is a high-severity vulnerability in Pnpm, classified under Path Traversal. CVSS score: 8.2/10. Published 2026-07-06.
- How severe is CVE-2026-59195?
- High severity. CVSS v3 base score is 8.2 out of 10.