Skip to main content

pnpm CVE-2025-69264

CRITICAL
Protection Mechanism Failure (CWE-693)
2026-01-07 security-advisories@github.com GHSA-379q-355j-w6rj
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Attacker plants malicious prepare script in git repo
  2. Delivery
    Victim references git dependency
  3. Exploit
    pnpm install fetches and prepares package
  4. Execution
    prepare/prepack runs during fetch phase
  5. Impact
    Arbitrary code executes on developer/CI host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Protection mechanism completeness
Exploitation Conditions

The project must declare or transitively pull a git-hosted (git URL) dependency that is attacker-controlled, and the victim must run pnpm install with a vulnerable version (10.0.0-10.25). The specific condition is the git-fetch code path: prepare, prepublish, or prepack scripts in the git dependency's package.json run during fetch, bypassing the onlyBuiltDependencies allowlist that otherwise blocks postinstall. Limiting factors: exploitation does not fire against registry (npm-published) dependencies, only git-sourced ones; it requires a malicious dependency to be referenced in the first place (a supply-chain or social-engineering precondition rather than direct remote access); and pnpm 10.26.0+ is not affected.

Impact

The signals conflict and should be weighed carefully. NVD assigns CVSS 9.8 (AV:N/AC:L/PR:N/UI:N) with full C/I/A impact, consistent with developer/CI RCE, and a public PoC plus the GitHub Security Advisory confirm the technique is documented and reproducible. However, this is a supply-chain bypass: real exploitation depends on a victim adding or installing an attacker-controlled git-hosted dependency, which in practice is user-initiated - so UI:N likely overstates automaticity and a UI:R assessment (CVSS ~8.8) is more honest. The low EPSS (0.11%, 30th percentile) and absence from CISA KEV indicate no widespread or confirmed active exploitation; this reads as a high-severity, broadly-applicable weakness whose practical exploitation hinges on a poisoned or socially-engineered dependency reference rather than mass internet-facing attack. No SSVC decision data was provided in the input. Net: treat as a high-priority patch for any environment that installs git dependencies with pnpm v10, while recognizing the trigger requires a malicious dependency to enter the dependency tree.

Exploit ScenarioDerived

An attacker publishes or compromises a git repository referenced as a pnpm dependency and places a malicious prepare/prepack script in its package.json. When a developer or CI pipeline runs pnpm install (v10.0.0-10.25) against a project that pulls that git dependency, the script executes automatically during the fetch phase - despite v10's lifecycle-script protections - granting code execution in the build environment. A public PoC for the technique exists in the GitHub advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv5 – Jun 30, 2026

Arbitrary code execution in the pnpm package manager (versions 10.0.0 through 10.25) lets a git-hosted dependency run code on a developer or CI machine during pnpm install, bypassing the v10 default protection that disables dependency lifecycle scripts. Although v10 blocks postinstall via the onlyBuiltDependencies allowlist, git dependencies still run prepare, prepublish, and prepack scripts during the fetch phase, giving remote code execution without user approval. Publicly available exploit code exists (GitHub advisory GHSA-379q-355j-w6rj), but EPSS is low (0.11%) and the issue is not listed in CISA KEV; it is fixed in version 10.26.0.

Earlier versions of this analysis (4)
v4 Jun 30, 2026 - 04:10 cvss changed CVSS 9.8

Remote code execution in pnpm 10.0.0 through 10.25 allows git-hosted dependencies to run arbitrary code during pnpm install, defeating the v10 default protection that disables dependency lifecycle scripts. Because the block only covers postinstall scripts via the onlyBuiltDependencies allowlist, an attacker can smuggle code into the prepare, prepublish, or prepack scripts that pnpm still executes during the git fetch phase - with no consent prompt. CVSS is 9.8 and publicly available exploit code exists (GitHub Security Advisory GHSA-379q-355j-w6rj), though EPSS remains low at 0.11%; fixed in 10.26.0.

v3 Jun 30, 2026 - 04:10 cvss changed CVSS 9.8

Remote code execution in the pnpm package manager (versions 10.0.0 through 10.25) allows git-hosted dependencies to run arbitrary code during pnpm install, bypassing the v10 default protection that disables dependency lifecycle scripts. Although pnpm v10 blocks postinstall scripts via the onlyBuiltDependencies allowlist, git dependencies still execute prepare, prepublish, and prepack scripts during the fetch phase, so a malicious git dependency runs code on the developer or CI machine without consent or approval. Publicly available exploit code exists and a vendor patch (10.26.0) is available; EPSS probability is low (0.11%) and the issue is not in CISA KEV.

v2 Jun 30, 2026 - 04:09 cvss changed CVSS 9.8

Remote code execution in the pnpm package manager (versions 10.0.0 through 10.25) lets git-hosted dependencies run arbitrary code during pnpm install, defeating the v10 default protection that disables dependency lifecycle scripts. While pnpm v10 blocks postinstall scripts unless explicitly approved via onlyBuiltDependencies, git-sourced packages still execute prepare, prepublish, and prepack scripts in the fetch phase, so a malicious git dependency achieves code execution with no user consent. Publicly available exploit code exists via the GitHub Security Advisory, though EPSS exploitation probability is low (0.11%, 30th percentile) and the issue is not in CISA KEV.

v1 Mar 12, 2026 - 21:54 CVSS 8.8

pnpm is a package manager. Versions 10.0.0 through 10.25 allow git-hosted dependencies to execute arbitrary code during pnpm install, circumventing the v10 security feature "Dependency lifecycle scripts execution disabled by default". [CVSS 8.8 HIGH]

RemediationAI

Vendor-released patch: pnpm 10.26.0 - upgrade pnpm to 10.26.0 or later, which closes the git-fetch-phase script execution path; this is the primary and recommended fix (see GHSA-379q-355j-w6rj and fix commit 73cc63504d9bc360c43e4b2feb9080677f03c5b5). Until you can upgrade, the highest-impact compensating control is to avoid git-hosted dependencies entirely and consume only registry-published, version-pinned packages, since the bypass is specific to the git fetch/prepare path; the trade-off is losing the ability to install packages directly from git. Where git dependencies are unavoidable, pin them to trusted commit SHAs, run pnpm install only inside sandboxed/ephemeral CI containers with no secrets and restricted network egress, and review the prepare/prepublish/prepack scripts in any git dependency's package.json before installing. Red Hat's VEX data (https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-69264.json) can confirm downstream package status.

Affected Packages

npm pnpm fix: 10.26.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pnpm is a Node.js package manager whose v10 line introduced 'lifecycle scripts disabled by default' to mitigate supply-chain attacks: postinstall and similar build scripts only run for packages explicitly listed under onlyBuiltDependencies. This vulnerability is a CWE-693 (Protection Mechanism Failure) - the control is incomplete because it governs the install/build phase but not the git-fetch phase. When a dependency is specified via a git URL, pnpm clones and prepares it, and npm/pnpm semantics run prepare (and prepublish/prepack) scripts as part of producing an installable package from source. Those hooks execute outside the onlyBuiltDependencies gate, so attacker-controlled JavaScript in a git dependency's package.json scripts runs automatically. The affected CPE is cpe:2.3:a:pnpm:pnpm:*:*:*:*:*:*:node.js:* across the 10.0.0-10.25 range.

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

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-delivered malicious git dependency yields full host RCE (C/I/A High), but a victim must initiate install of an attacker-controlled dependency, so UI:R rather than UI:N.

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

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

9
Analysis Updated
Jun 30, 2026 - 04:11 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:10 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:10 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 04:09 vuln.today
v2 - CVSS changed
Severity Changed
Jun 30, 2026 - 03:23 NVD
HIGH CRITICAL
CVSS changed
Jun 30, 2026 - 03:23 NVD
8.8 (HIGH) 9.8 (CRITICAL)
PoC Detected
Jan 12, 2026 - 21:53 vuln.today
Public exploit code
Patch released
Jan 12, 2026 - 21:53 nvd
Patch available
CVE Published
Jan 07, 2026 - 22:15 nvd
HIGH 8.8

DescriptionNVD

pnpm is a package manager. Versions 10.0.0 through 10.25 allow git-hosted dependencies to execute arbitrary code during pnpm install, circumventing the v10 security feature "Dependency lifecycle scripts execution disabled by default". While pnpm v10 blocks postinstall scripts via the onlyBuiltDependencies mechanism, git dependencies can still execute prepare, prepublish, and prepack scripts during the fetch phase, enabling remote code execution without user consent or approval. This issue is fixed in version 10.26.0.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2 npm packages depend on pnpm (2 direct, 0 indirect)

Ecosystem-wide dependent count for version 10.0.0.

Executive ViewAI

Why It Matters

A critical code execution flaw in pnpm package manager (versions 10.0.0-10.25) allows remote attackers to execute arbitrary code on developer machines and CI/CD infrastructure during routine dependency installation. Organizations using affected versions face direct compromise of their build pipeline and potential injection of malicious code into software releases. Exploit code is publicly available and attacks require only a compromised or attacker-controlled git repository.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 70% exploitable
Prevalence
High
widely adopted JavaScript/Node.js package manager in modern dev and CI
Exploit
POC
Public exploit code exists
Data Quality
5 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 Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)NVD

cpe:2.3:a:pnpm:pnpm:*:*:*:*:*:*:node.js:*

More in Pnpm

View all
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

CVE-2026-55700 HIGH POC
7.1 Jun 25

Path traversal in pnpm's `pnpm stage download` command (versions 11.3.0 through 11.5.2) lets a malicious or compromised

Vendor StatusVendor

SUSE

Severity: High

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