# CVE-2025-69262: pnpm vulnerable to Command Injection via environment variable substitution

- Severity: High 7.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 65% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-01-07T18:51:07.000Z
- Modified: 2026-10-14T19:10:00.297Z
- Also known as: GHSA-2phv-j68v-wwqx
- Weaknesses: CWE-78, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pnpm pnpm: >=6.25.0, < 10.27.0; from 6.25.0 before 10.27.0
- pnpm (npm): from 6.25.0 before 10.27.0

## Every score

- GitHub_M: CVSS:3.1 7.6 High `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/pnpm/pnpm/security/advisories/GHSA-2phv-j68v-wwqx> (exploit, vendor-advisory, web)
- <https://github.com/pnpm/pnpm/releases/tag/v10.27.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-69262> (advisory)
- <https://github.com/pnpm/pnpm> (package)

## Sources

- CVE List: [CVE-2025-69262](https://www.cve.org/CVERecord?id=CVE-2025-69262), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-2phv-j68v-wwqx](https://github.com/advisories/GHSA-2phv-j68v-wwqx), CC-BY-4.0, modified 2026-02-03
- NVD: [CVE-2025-69262](https://nvd.nist.gov/vuln/detail/CVE-2025-69262), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-69262 · Whole record: https://cve.day/CVE-2025-69262.json · Rebuilt by cve.day 2026-11-25T22:59:10.420Z
