pnpm: Repository config can expand victim environment secrets into registry requests before scripts run (CVE-2026-55180)
Description
A vulnerability in pnpm package manager prior to versions 10.34.2 and 11.5.3 allows malicious repository configurations to expand environment variable placeholders into registry requests. This can cause victim environment secrets to be sent to attacker-controlled registries before lifecycle scripts execute. The issue is fixed in versions 10.34.2 and 11.5.3.
CVSS v3.1
Score 6.5medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
pnpm versions before 10.34.2 and 11.5.3 improperly expanded ${ENV_VAR} placeholders from repository-controlled .npmrc and pnpm-workspace.yaml files into registry request destinations and credentials. This behavior could be exploited by a malicious repository to exfiltrate environment secrets from the victim's environment by causing these secrets to be sent to an attacker-controlled registry during dependency resolution, prior to the execution of lifecycle scripts. The vulnerability is addressed in pnpm versions 10.34.2 and 11.5.3.
Potential Impact
The vulnerability allows an attacker controlling a repository configuration to cause sensitive environment variables from the victim's environment to be sent to an attacker-chosen registry. This results in confidentiality loss of environment secrets. There is no indication of integrity or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade pnpm to version 10.34.2 or later, or 11.5.3 or later, where this vulnerability is fixed. No other mitigation is indicated or required.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-pnpm-CVE-2026-55180
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ac2c0ae2cdf04f656523453
Added to database: 10/04/2026, 21:10:06 UTC
Last enriched: 10/04/2026, 21:16:31 UTC
Last updated: 10/05/2026, 06:48:17 UTC
Views: 8
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.