Skip to main content

pnpm CVE-2026-145650

| EUVDEUVD-2026-145811 CRITICAL
Path Traversal (CWE-22)
2026-12-06 VulnCheck GHSA-385w-h9pq-mg7q
10.0
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish dependency with traversal manifest version
  2. Delivery
    Victim runs fresh-resolve install, GVS enabled
  3. Exploit
    Unvalidated version builds store-escaping slot path
  4. Execution
    Dependency files written to .git/hooks location
  5. Impact
    Code 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pnpm 12.0.0 <12.10.0

Affected Packages

euvd pnpm fix: 12.10.0

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

Vendor (VulnCheck) PRIMARY 10.0 CRITICAL
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
vuln.today AI 8.1 HIGH

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Dec 06, 2026 - 04:01 EUVD
CVE Published
Dec 06, 2026 - 00:16 cve.org
CRITICAL 10.0

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

Prevalence
Medium
pnpm is popular, but affected v12 Rust line is newly released with limited adoption
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Pnpm

View all
CVE-2025-69264 CRITICAL POC
9.8 Jan 07

Arbitrary code execution in the pnpm package manager (versions 10.0.0 through 10.25) lets a git-hosted dependency run co

CVE-2023-37478 CRITICAL POC
9.8 Aug 01

pnpm is a package manager. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable, no authentica

CVE-2026-50016 HIGH POC
8.8 Jun 25

Path traversal in pnpm before 10.34.0 and 11.4.0 lets a malicious registry package smuggle '../' segments inside a trans

CVE-2026-55698 HIGH POC
8.8 Jun 25

Arbitrary code execution in the pnpm package manager (versions prior to 10.34.2 and 11.5.3) lets a malicious repository

CVE-2026-55697 HIGH POC
8.8 Jun 25

Arbitrary command execution in pnpm before 10.34.2 and 11.5.3 allows a malicious repository to run attacker-chosen nativ

CVE-2025-69263 HIGH POC
8.8 Jan 07

Supply-chain integrity bypass in pnpm package manager (versions ≤10.26.2, per description; GHSA states <10.26.0) allows

CVE-2022-26183 HIGH POC
8.8 Mar 21

PNPM v6.15.1 and below was discovered to contain an untrusted search path which causes the application to behave in unex

CVE-2026-50021 HIGH POC
8.1 Jun 25

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

CVE-2025-69262 HIGH POC
7.8 Jan 07

Command injection in pnpm versions 6.25.0 through 10.26.2 allows attackers controlling environment variables to execute

CVE-2026-82393 HIGH POC
7.5 Aug 31

Scoped path traversal in pnpm allows arbitrary filesystem overwrites during package installation, defeating the --ignore

CVE-2026-50015 HIGH POC
7.3 Jun 25

Arbitrary file write and deletion in pnpm package manager (versions prior to 10.34.0 and 11.4.0) lets a malicious contri

CVE-2026-50014 HIGH POC
7.3 Jun 25

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy