Skip to content
OpenAdvisories
High · 7.6 CVE-2025-69262 EUVD-2026-1159GHSA-2phv-j68v-wwqx

pnpm vulnerable to Command Injection via environment variable substitution

Published Jan 7, 2026 · Updated Feb 26, 2026 · 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.

Affected products

VendorProductAffectedFixed
pnpm pnpm >=6.25.0, < 10.27.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Alpine v3.23 pnpm 10.33.4-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling pnpm-stage0 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm pnpm >= 6.25.0, < 10.27.0 10.27.0 GHSA-2phv-j68v-wwqx

References