Insertion of Sensitive Information Into Sent Data Affecting @pnpm/config package, versions >=1002.5.3 <1004.11.6


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-PNPMCONFIG-19500674
  • published2 Sept 2026
  • disclosed1 Sept 2026
  • creditYESHYUNGSEOK

Introduced: 1 Sep 2026

New CVE NOT AVAILABLE CWE-201  (opens in a new tab)

How to fix?

Upgrade @pnpm/config to version 1004.11.6 or higher.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data exposing process environment values, in getOptionsFromRootManifest.ts, which expands ${VAR} placeholders in the httpProxy, httpsProxy, and noProxy settings read from a repository-controlled manifest. An attacker can exfiltrate environment secrets such as NPM_TOKEN or GITHUB_TOKEN by publishing a repository whose pnpm-workspace.yaml sets a proxy URL that embeds ${VAR} in its hostname or userinfo, so the victim's pnpm install routes install traffic through the attacker proxy and leaks the expanded value. This requires the victim to run pnpm install in the untrusted repository with the relevant secrets present in the environment.

Workaround

This vulnerability can be avoided by inspecting an untrusted repository's pnpm-workspace.yaml for httpProxy, httpsProxy, and noProxy settings before running install, or by running pnpm in an environment that does not hold the secrets.

CVSS Base Scores

version 4.0
version 3.1