Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish dependency with traversal manifest version
-
DeliveryVictim runs fresh-resolve install, GVS enabled
-
ExploitUnvalidated version builds store-escaping slot path
-
ExecutionDependency files written to .git/hooks location
-
ImpactCode execution on installing host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the installing project run with enable-global-virtual-store=true - off by default, but explicitly enabled by pnpm's own engine package-manager installs and runtime shims and settable by any user. It further requires the Rust pnpm v12 fresh/resolution install path (pnpm install with no or a stale lockfile, pnpm add, or pnpm update) to resolve an attacker-controlled dependency (a published tarball or git dependency, direct or transitive) whose manifest version segment carries the traversal payload. The frozen-lockfile path is NOT exploitable because it runs validate_virtual_store_slot_containment before materialization; only the fresh/resolution path, which materializes before any containment check, is affected. Limiting factors: the non-default global-virtual-store setting, the requirement that a malicious version actually be resolved, and the restriction to the v12 line - these narrow real exposure well below the raw 10.0 score, though CI fresh installs reach the sink automatically with no user interaction. |
| Impact | Signals are strongly aligned toward urgency with one important caveat. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) rates this 10.0 with full high impact across both vulnerable and subsequent systems, the vuln.today Decision label is act_now, it was reported by VulnCheck, and the CWE-22/CWE-73 path-traversal-to-overwrite primitive credibly chains to code execution via install-time hook locations. The dominant tempering factor is the exploitation precondition: enable-global-virtual-store=true is off by default, so default-configured installs are not reachable, and the input's AT:N does not reflect that non-default requirement - an honest 4.0 assessment would set AT:P. No KEV listing is present in the input and no EPSS score was provided, so there is no evidence of active exploitation or a modelled exploitation probability to weigh; a conceptual public PoC reference exists in the GHSA advisory but it is not verified as working exploit code. There is also a version-data conflict (see confidence_notes) that affects remediation targeting but not the core risk. Net: this is a real priority for any environment that enables the global virtual store - notably pnpm's own engine package-manager installs, runtime shims, and CI pipelines running fresh/resolving installs - and markedly lower real-world risk for default deployments. |
| Exploit ScenarioDerived | An attacker publishes (or serves as a tarball or git dependency) a package whose package.json version is a traversal string such as "../../../../../../tmp/PWNED", then gets it resolved as a direct or transitive dependency during a victim's fresh or resolving install. On a project running with enable-global-virtual-store=true, pnpm v12 builds the global-virtual-store slot path from the unvalidated version, escapes the store, and imports the dependency's files to an attacker-chosen path such as .git/hooks/pre-commit, yielding code execution on the installing host (automatically in CI, with no human interaction). A conceptual public PoC reference exists in the GHSA advisory; it is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 06, 2026
Arbitrary-path file write during dependency installation in pnpm 12.x (>=12.0.0, <12.10.0) lets a malicious dependency's manifest version string escape the global virtual store and overwrite attacker-chosen files such as .git/hooks entries, delivering code execution on the machine performing the install. The vector requires enable-global-virtual-store=true - off by default but explicitly enabled by pnpm's own engine package-manager installs and runtime shims, and settable by any user - plus the Rust v12 fresh/resolution install path (pnpm install with no or stale lockfile, pnpm add, pnpm update); the frozen-lockfile path runs containment validation before materialization and is not affected, and the independent assessment raises attack complexity to AC:H because of these preconditions. There is no CISA KEV listing and no confirmed working public exploit code, though the vendor advisory publishes reproduction steps; the vuln.today decision label is act_now, so treat CI fresh installs of untrusted dependencies as the priority exposure.
RemediationAI
Upgrade to pnpm 12.10.0 or later, the vendor-released fix version for the >= 12.0.0 < 12.10.0 range (advisory: https://github.com/pnpm/pnpm/security/advisories/GHSA-jg5c-8mvg-5wph); the fix closes the version segment on the fresh/resolution path rather than only the layout-cache read-back covered by the earlier GHSA-2rx9-3g3h-c2jv commit 537a281. If upgrading is not immediately possible, the sources identify the frozen-lockfile path as running verify_lockfile_dependency_names and validate_virtual_store_slot_containment before materialization while the fresh/resolution path does not, so pinning CI installs to a frozen lockfile and reviewing lockfile changes in pull requests avoids the described sink - at the cost that lockfile contents still require vetting and that pnpm add or update will bypass that control. Disabling enable-global-virtual-store avoids the vulnerable slot layout entirely, but the setting is explicitly enabled by pnpm's own engine package-manager installs and runtime shims, so this must be verified per invocation rather than assumed, and it forfeits global store sharing. The advisory also notes the write permits corruption or destruction of existing files at chosen paths, so machines that ran fresh installs of untrusted dependencies should be checked for unexpected files outside the store, including repository hook and shell profile locations.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic CWE-22 path traversal (the advisory also tags CWE-73, external control of file name or path) in the Rust rewrite of pnpm's v12 workspace. The global-virtual-store slot path is composed as {prefix}{name}/{version}/{hash}, and the version segment is taken verbatim from the resolved dependency manifest: explicit_version in pnpm/crates/package-manager/src/dependencies_graph_to_lockfile/packages.rs reads it raw for non-registry packages, PackageMetadata.version in pnpm/crates/lockfile/src/package_metadata.rs is an unvalidated Option<String>, and gvs_version_segment in pnpm/crates/deps-restorer/src/virtual_store_layout.rs returns it unchanged. join_global_virtual_store_path in pnpm/crates/graph-hasher/src/global_virtual_store_path.rs expands each '/'-separated segment via path.extend(rel.split('/')) without normalizing or rejecting '..', so a version such as "../../../../../../tmp/PWNED" produces a slot directory outside the store root, which create_slot_dirs then materializes before the name-only guard safe_join_modules_dir inspects the package name rather than the version. The store-containment invariant is enforced only on the frozen-lockfile path, which runs verify_lockfile_dependency_names and validate_virtual_store_slot_containment prior to materialization; the fresh/resolution path computes and materializes the slot first and awaits its lockfile gate afterwards. The advisory's bypass analysis notes that the adjacent fix commit 537a281 (GHSA-2rx9-3g3h-c2jv family) only adds a digest check on the layout-cache read-back branch and does not cover freshly computed suffixes, and that the name-traversal advisories GHSA-c59q-g84q-2gj5 and GHSA-fr4h-3cph-29xv remediate a different segment; the trigger described by the sources is a resolved malicious manifest version on the fresh install path, not a race or timing condition.
Know when Pnpm gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Attacker needs no privileges (PR:N) but relies on a non-default config and a malicious dependency being resolved (AC:H); arbitrary file write/overwrite yields full C/I/A on the installing host, same security scope (S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-22: Improper Limitation of a Pathname to a Restricted Directory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-145650 is a critical (CVSS 10.0) arbitrary file write vulnerability in pnpm 12.x that can lead to code execution during dependency installation. Any engineering team using pnpm fresh installs (e.g., in CI pipelines) with the global virtual store enabled is exposed, potentially compromising build integrity and developer machines. Leadership should prioritize remediation due to the high impact and the ease of triggering via a malicious dependency.
No vendor-released patch identified at time of analysis. Interim mitigations: disable enable-global-virtual-store, use frozen-lockfile for all installs, restrict write permissions to .git/hooks, and validate dependency manifests before installation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Arbitrary code execution in the pnpm package manager (versions 10.0.0 through 10.25) lets a git-hosted dependency run co
pnpm is a package manager. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentica
Path traversal in pnpm before 10.34.0 and 11.4.0 lets a malicious registry package smuggle '../' segments inside a trans
Arbitrary code execution in the pnpm package manager (versions prior to 10.34.2 and 11.5.3) lets a malicious repository
Arbitrary command execution in pnpm before 10.34.2 and 11.5.3 allows a malicious repository to run attacker-chosen nativ
Supply-chain integrity bypass in pnpm package manager (versions ≤10.26.2, per description; GHSA states <10.26.0) allows
PNPM v6.15.1 and below was discovered to contain an untrusted search path which causes the application to behave in unex
Integrity-check bypass in the pnpm package manager (versions before 10.34.0/10.34.1 and 11.0.0-11.3.x) lets tampered pac
Command injection in pnpm versions 6.25.0 through 10.26.2 allows attackers controlling environment variables to execute
Scoped path traversal in pnpm allows arbitrary filesystem overwrites during package installation, defeating the --ignore
Arbitrary file write and deletion in pnpm package manager (versions prior to 10.34.0 and 11.4.0) lets a malicious contri
Arbitrary command execution in pnpm before 10.34.0 and 11.4.0 allows a malicious lockfile to run code on a developer's m
EUVD-2026-145811
GHSA-385w-h9pq-mg7q
NVD
CVE.org
Exploit-DB