# Critical CVSS 10.0 pnpm v12 Store Escape Flaw CVE-2026-145650 Prompts 12.10.0 Upgrade

Source: TechNewsList (https://technewslist.com)
Canonical URL: https://technewslist.com/en/article/critical-pnpm-v12-global-virtual-store-escape-cve-2026-145650-2026-12-06-night
Section: Software (https://technewslist.com/en/software)
Author: TechNewsList
Language: en
Published: 2026-12-06T18:17:59.867+00:00
Updated: 2026-12-06T18:17:59.869801+00:00

> Published with a maximum CVSS 10.0 score, CVE-2026-145650 lets malicious dependencies escape pnpm v12's global virtual store during fresh installs, prompting upgrades to 12.10.0.

## TL;DR
- CVE-2026-145650 (GHSA-jg5c-8mvg-5wph) was published on December 6, 2026 with critical CVSS 4.0 and 3.1 scores of 10.0.
- The path traversal bug affects pnpm versions 12.0.0 through 12.9.x when enable-global-virtual-store is turned on during non-frozen installs.
- A crafted manifest version string in a tarball or Git dependency lets attackers write arbitrary files outside the store, risking code execution.
- Upgrading local workstations and CI runners to pnpm 12.10.0 resolves the flaw; no confirmed wild exploitation has been reported.

## Key points
- The bug resides in pnpm's Rust v12 engine where format_global_virtual_store_path accepts raw slash-separated version segments.
- Frozen-lockfile installs validate store containment before writing, whereas fresh or resolving installs materialize files before checks run.
- While enable-global-virtual-store defaults to false, pnpm engine self-installs and runtime shims enable it automatically in common setups.
- Overwriting .git/hooks/pre-commit, node_modules/.bin binaries, or shell profiles provides a direct path to local or CI code execution.
- pnpm 12.10.0 enforces store boundary validation and blocks parent-directory traversal segments inside dependency manifest versions.

## What happened

A critical path traversal vulnerability in the Node.js package manager pnpm, tracked as CVE-2026-145650 and GitHub Security Advisory GHSA-jg5c-8mvg-5wph, was publicly disclosed on December 6, 2026 with maximum CVSS 4.0 and CVSS 3.1 severity scores of 10.0. Assigned by CVE Numbering Authority VulnCheck and credited to security researcher Zhixi "Jace" Sun, the flaw affects pnpm versions 12.0.0 through 12.9.x whenever installations run prior to the patched 12.10.0 release.

According to the advisory, when the `enable-global-virtual-store` configuration flag is active during a fresh or dependency-resolving install, an attacker who controls a non-registry tarball or Git dependency can embed parent-directory traversal sequences inside its `package.json` version field. Instead of isolating extracted package contents inside the global virtual store, pnpm joins those traversal segments directly onto filesystem paths, permitting arbitrary file creation or overwrites across developer machines and CI environments.

While reproducible proof-of-concept steps have already been published alongside the advisory and technical writeups, Brandefense, Rapid7, and VulDB noted that there were no confirmed reports of active exploitation in the wild at the time of disclosure on December 6.

## Why it matters

Package managers sit at the trusted core of modern JavaScript and TypeScript software supply chains, executing routinely inside monorepos, pull-request validation runners, and local engineering laptops. Although `enable-global-virtual-store` defaults to false in standard standalone configurations, the official pnpm advisory cautions that engine self-install workflows and runtime shims enable the setting automatically in common real-world deployments.

![Diagram showing a crafted dependency escaping the pnpm global virtual store into Git hooks](https://technewslist.com/storage/v1/object/public/media/api/1796581071861-dr6lgi-critical-pnpm-v12-global-virtual-store-escape-cve-2026-145650-2026-12-06-night-inside-1-49534f212f.webp)
*Unvalidated manifest version segments let a resolving install write rogue files outside the global virtual store.*

Equally troubling for defenders, CVE-2026-145650 triggers during package resolution and directory materialization before any `postinstall` or `preinstall` lifecycle scripts execute. As a result, organizations that rely on `--ignore-scripts` as a primary safeguard against malicious third-party packages are still exposed if they install untrusted dependencies on an unpatched pnpm v12 release.

## Technical details

Tracked under weakness classifications CWE-22 (improper limitation of a pathname to a restricted directory) and CWE-73 (external control of file name or path), the defect resides inside pnpm's Rust-based v12 (`pacquet`) dependency resolution and virtual-store materialization codebase. Global virtual store slots are structured using `{prefix}{name}/{version}/{hash}`, where `explicit_version` in `dependencies_graph_to_lockfile/packages.rs` records raw manifest version strings for Git and tarball dependencies rather than normalized semver tokens.

During resolution, `format_global_virtual_store_path` and `join_global_virtual_store_path` split that string on `/` and push each raw segment directly into the target filesystem path without rejecting `..` parent traversal tokens. While frozen-lockfile installs route through `create_virtual_dir_by_snapshot.rs` and verify store containment ahead of writing bytes to disk, resolving workflows—including `pnpm add`, `pnpm update`, and lockfile-less `pnpm install`—invoke `create_slot_dirs` and `materialize()` before any boundary check occurs.

![GitHub Security Advisory summary card for pnpm GHSA-jg5c-8mvg-5wph](https://technewslist.com/storage/v1/object/public/media/api/1796581072629-4rjadv-critical-pnpm-v12-global-virtual-store-escape-cve-2026-145650-2026-12-06-night-inside-2-249ae154b2.webp)
*GitHub Security Advisory GHSA-jg5c-8mvg-5wph documents affected Rust modules and the pnpm 12.10.0 patch.*

In a working demonstration detailed by researchers, a dependency declaring a crafted `package.json` version string such as `../../../../../../tmp/PWNED` caused pnpm to traverse out of its intended global virtual store directory and materialize attacker-controlled package files at the resolved target path. Because pnpm copies full dependency payload contents directly into that destination, high-impact targets include `.git/hooks/pre-commit`, `node_modules/.bin` executables, shell profile scripts, and OS task or scheduler directories—enabling arbitrary code execution on the next developer command or CI step.

## Market / industry impact

Interestingly, pnpm's maintainers had already shipped the underlying path-containment guard in version 12.10.0 back in October 2026 before the December 6 public CVE publication, meaning teams running current releases are protected. Nevertheless, real-world JavaScript stacks frequently pin older minor releases inside repository `packageManager` headers, containerized build images, Corepack configurations, and ephemeral pull-request preview workers, leaving unpatched 12.0.0–12.9.x binaries active across enterprise pipelines.

The incident also highlights a recurring pattern in modern Rust-rewritten developer tools: as toolmakers replace legacy JavaScript installers with high-throughput native pipelines, filesystem path joins on untrusted non-registry metadata—such as archive paths, Git tags, and tarball manifests—remain prime territory for high-impact supply-chain bugs.

## What to watch next

DevOps and security engineering teams should inventory all developer environments, Docker base images, GitHub Actions runners, and `package.json` `packageManager` specifications to ensure every build pipeline has upgraded to pnpm 12.10.0 or later. Where immediate version upgrades cannot be completed today, maintainers should explicitly disable `enable-global-virtual-store` and strictly enforce `--frozen-lockfile` across automated builds.

Incident responders should also review recent unpinned dependency additions and audit repositories or shared build hosts for unexpected writes to `.git/hooks`, binary shims, or temporary workspace locations.

## Sources

- Brandefense — Advisory breakdown of CVE-2026-145650 CVSS 10.0 severity and CI triage checks: https://brandefense.io/security-news/pnpm-global-virtual-store-vulnerability-cve-2026-145650/
- SecurityOnline — Technical analysis of Rust v12 install path and PoC impact: https://securityonline.info/cve-2026-145650-pnpm-path-traversal-vulnerability/
- GitHub Advisory GHSA-jg5c-8mvg-5wph — Official pnpm advisory listing vulnerable Rust source files: https://github.com/pnpm/pnpm/security/advisories/GHSA-jg5c-8mvg-5wph
- pnpm 12.10.0 Release Notes — Official patch notes confirming store path-traversal fix: https://pnpm.io/blog/releases/12.10.0


Mentions: pnpm, CVE-2026-145650, GHSA-jg5c-8mvg-5wph, Rust, Brandefense, VulnCheck

## Sources
- [Brandefense](https://brandefense.io/security-news/pnpm-global-virtual-store-vulnerability-cve-2026-145650/)
- [SecurityOnline](https://securityonline.info/cve-2026-145650-pnpm-path-traversal-vulnerability/)
- [GitHub Advisory GHSA-jg5c-8mvg-5wph](https://github.com/pnpm/pnpm/security/advisories/GHSA-jg5c-8mvg-5wph)
- [pnpm 12.10.0 Release Notes](https://pnpm.io/blog/releases/12.10.0)