Vulnerability
CVE-2026-101043
pnpm versions 11.0.0 before 11.11.0 and 10.7.0 before 10.34.5 expand ${VAR} environment-variable placeholders in the httpProxy, httpsProxy, and noProxy settings read from a project's pnpm-workspace.yaml. Because the manifest is repository-controlled and the proxy keys were omitted from the request-destination key set that otherwise suppresses placeholder expansion for untrusted manifests (as already done for registry, pnprServer, registries and namedRegistries), an attacker who controls a repository's pnpm-workspace.yaml can cause a victim who clones the repository and runs a pnpm command (e.g. pnpm install) to expand environment secrets such as NPM_TOKEN or GITHUB_TOKEN into a proxy hostname or userinfo and route install traffic — and the corresponding DNS lookups — through an attacker-controlled host. The exfiltration occurs during configuration loading, before any lifecycle script executes. Fixed in pnpm 11.11.0 and 10.34.5.
11 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-2j3g-qghp-72cf
- CGA-352g-8jhj-8h7v
- CGA-6j3v-q459-c23w
- CGA-6pg4-jv98-x6hm
- CGA-88cp-cghh-c27x
- CGA-g4j7-wg45-6r2h
- CGA-m35v-j264-2v4h
- CGA-pjw8-h7v2-843r
- CGA-q6h3-r464-p4p2
- CGA-wr68-2pj5-5mwf
-
GHSA-vx52-2968-3vc6
pnpm: Environment secrets exfiltrated via env-placeholder expansion in proxy settings read from an untrusted pnpm-workspace.yaml