Description
pnpm is a package manager. Versions 6.25.0 through 10.26.2 have a Command Injection vulnerability when using environment variable substitution in .npmrc configuration files with tokenHelper settings. An attacker who can control environment variables during pnpm operations could achieve Remote Code Execution (RCE) in build environments. This issue is fixed in version 10.27.0.
Affected products
pnpm: pnpm
References3
- github.com/pnpm/pnpm/security/advisories/GHSA-2phv-j68v-wwqx ExploitVendor Advisory
- github.com/pnpm/pnpm/security/advisories/GHSA-2phv-j68v-wwqx ExploitVendor Advisory
- github.com/pnpm/pnpm/releases/tag/v10.27.0 ProductRelease Notes
Metrics
- CVSS 3.1
-
7.8
HIGH
Score source: NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - EPSS — exploit probability
- 1% percentile: 64 · as of 11 November 2026
- CWE
- CWE-78CWE-94
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.