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.
CVE-2026-145650
CVSS base score
10.0 (v3.1)
Severity
CRITICAL
Attack vector
Network
Weakness
CWE-22
Last modified
December 6, 2026
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H