Path traversal in pnpm - CVE-2026-59195
Published: June 23, 2026
Vulnerability details
The vulnerability allows a remote attacker to create symlinks outside the intended directory.
The vulnerability exists due to path traversal in configDependencies env lockfile handling when processing config dependency names from a crafted pnpm-lock.yaml during installation. A remote attacker can supply a malicious repository containing traversal-shaped config dependency names to create symlinks outside the intended directory.
User interaction is required to install a malicious or compromised repository, and the issue can be triggered even when running with --ignore-scripts.