CVE-2025-69262 pnpm vulnerable to Command Injection via environment variable substitution
HighCVSS 7.8
EPSS 1.0%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/pnpm(Alpine v3.23) | >= 6.25.0, < 10.33.4-r0 | 10.33.4-r0 | Fixed |
| npm pnpm(npm) | >= 6.25.0, < 10.27.0 | 10.27.0 | Fixed |
| pnpm | = >=6.25.0, < 10.27.0; >= 6.25.0, < 10.27.0 | 10.27.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm pnpm(npm) | >= 6.25.0, < 10.27.0 | 10.27.0 |
| pnpm | = >=6.25.0, < 10.27.0 | No fix listed |
| alpine/pnpm(Alpine:v3.23) | >= 6.25.0, < 10.33.4-r0 | 10.33.4-r0 |
| pnpm | >= 6.25.0, < 10.27.0 | 10.27.0 |
References
- https://github.com/pnpm/pnpm/security/advisories/GHSA-2phv-j68v-wwqx exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/pnpm/pnpm/releases/tag/v10.27.0 product release-notes
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2427662 issue-tracking
- www.cve.org
- github.com product
- security.alpinelinux.org vendor-advisory