CVE-2026-50016

pnpm: Transitive dependency alias path traversal allows project path override via symlink replacement

State
Published
Severity
8.8 High
Published
Jun 25, 2026
Updated
Jun 26, 2026
Reserved
Jun 2, 2026

Read the record on cve.org

Description

pnpm is a package manager. Prior to 10.34.0 and 11.4.0, pnpm allows a transitive dependency alias from registry package metadata to contain path traversal segments. During install, pnpm later uses that alias as a filesystem path when linking dependency nodes. As a result, a registry package can cause `pnpm install --ignore-scripts` to replace paths in the current project with symlinks to attacker-controlled dependency package directories. This vulnerability is fixed in 10.34.0 and 11.4.0.

Scores

CVSSScoreVectorSource
3.18.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HGitHub_M

Weaknesses

  • CWE-23 Relative Path Traversal

Affected Products

ProductVersions
pnpmpnpm
  • < 10.33.4Affected
  • >= 11.0.0, < 11.4.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.