Relative Path Traversal in pnpm - CVE-2026-50016
Published: June 15, 2026
pnpm
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to relative path traversal in dependency linking logic when processing transitive dependency aliases from registry package metadata during installation. A remote attacker can publish a specially crafted package dependency chain to execute arbitrary code.
User interaction is required to install a package and later run a normal project or CI command that consumes a replaced project-local path.