Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
10.0

CVE-2026-145650: pnpm may let malicious packages overwrite files

CVE-2026-145650 · published today
Summary

Versions of pnpm between 12.0.0 and 12.10.0 can be tricked by a specially crafted package to write files outside its normal storage area. This could let an attacker replace important files such as Git hooks, potentially running code on your system. Update pnpm to a version newer than 12.10.0 or disable the global virtual store feature to remove the risk.

What to do
  • Update pnpm pnpm to version 12.10.0 or later.
Affected software
VendorProductAffected versions
pnpm pnpm < 12.10.0
Original advisory text
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.
Fix within
Internet-facing 3 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically (estimated)
  • Gives an attacker full control (estimated)
Severity
10.0 Critical
Type
CWE-22Path Traversal
Timeline
Published6 Dec 2026
Updated6 Dec 2026
First seen6 Dec 2026
Sources
CVE-2026-145650 · MITRE
Track software like this
Free during beta