pnpm vulnerable to Command Injection via environment variable substitution (CVE-2025-69262)
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
Affected software
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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.