CVE-2025-69262: Pnpm@9 · pnpm vulnerable to Command Injection via environment variable substitution
Affects pnpm@9Source GCVE Database
Not known to be exploited · CVSS 7.5 High.
Data as of 4 Nov 2026, 01:45 UTC
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewpnpm@9pkg:brew/pnpm%409Other threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Temporary mitigations include disabling the tokenHelper setting in .npmrc, using direct authentication tokens instead of tokenHelper, auditing and restricting environment variables in CI/CD and build environments, and monitoring build logs for suspicious activity. Recommended fixes by the reporter include removing shell:true from spawnSync calls, implementing allowlists for helper paths, validating substituted paths, and sandboxing helper execution. Users should check the vendor advisory for updates and official patches.
Description
A command injection vulnerability (CVE-2025-69262) exists in pnpm version 9.15.4 and later when using environment variable substitution in .npmrc files with tokenHelper settings. An attacker controlling environment variables can execute arbitrary code during pnpm operations, particularly in build environments such as CI/CD pipelines, Docker builds, and Kubernetes deployments. The vulnerability arises from spawning a helper script with shell execution without sufficient validation. The CVSS score is 7.5 (High).