CVE-2026-145650: pnpm from 12.0.0 before 12.10.0 Path Traversal via Global Virtual Store Version
pnpm from 12.0.0 before 12.10.0 contains a path traversal vulnerability that allows malicious dependencies to write files outside the store via a crafted manifest version string. When enable-global-virtual-store is enabled, fresh or resolving installs build slot paths from the unvalidated version, letting attackers overwrite files such as git hooks for code execution.
Affected Software
Event History
Frequently Asked Questions
Which installations are exposed?
pnpm installations from 12.0.0 before 12.10.0 are affected when enable-global-virtual-store is enabled. The vulnerable path construction occurs during fresh or resolving installs.
What does an attacker need to exploit this?
An attacker needs a malicious dependency whose manifest contains a crafted version string. No privileges or user interaction are required according to the supplied vector.
What is the practical impact of a successful exploit?
A malicious dependency can write files outside the pnpm store through path traversal. The described impact includes overwriting Git hooks, which can lead to code execution.
What can be done if upgrading is not immediately possible?
Disable enable-global-virtual-store and avoid fresh or resolving installs involving untrusted dependencies until an upgrade is possible.