Skip to main content

pnpm vulnerable to Command Injection via environment variable substitution (CVE-2025-69262)

0
High
Published: 08/13/2026 (08/13/2026, 17:28:25 UTC)
Source: GCVE Database
Product: pnpm

Description

pnpm versions 6.25.0 through 10.26.2 contain a Command Injection vulnerability via environment variable substitution in .npmrc configuration files with tokenHelper settings. An attacker with control over environment variables during pnpm operations could execute remote code in build environments. This vulnerability is fixed in version 10.27.0.

CVSS v3.1

Score 7.5high

Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H

Affected software

Homebrewmore threats →ghsa
pnpm
pkg:brew/pnpm
Affected versions
<11.21.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/04/2026, 21:17:38 UTC

Technical Analysis

pnpm, a package manager, is affected by a Command Injection vulnerability (CVE-2025-69262) in versions 6.25.0 through 10.26.2. The issue arises when environment variable substitution is used in .npmrc configuration files specifically with tokenHelper settings. If an attacker can influence environment variables during pnpm operations, they may achieve remote code execution within build environments. The vulnerability has a CVSS 3.1 score of 7.5, indicating high severity. The flaw is addressed in pnpm version 10.27.0.

Potential Impact

Successful exploitation allows an attacker with the ability to control environment variables during pnpm operations to execute arbitrary code remotely in build environments. This can lead to full compromise of the affected system's integrity, confidentiality, and availability.

Mitigation Recommendations

Upgrade pnpm to version 10.27.0 or later, where this vulnerability is fixed. No other mitigations are specified. Ensure environment variables used during pnpm operations are controlled and sanitized until the upgrade is applied.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
BREW-pnpm-CVE-2025-69262
Osv Schema Version
1.7.3
Ecosystems
["Homebrew"]
Cvss Version
3.1

Threat ID: 6ac2c0b22cdf04f656523916

Added to database: 10/04/2026, 21:10:10 UTC

Last enriched: 10/04/2026, 21:17:38 UTC

Last updated: 10/04/2026, 21:17:38 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses