CVE-2026-55180

pnpm: Repository config can expand victim environment secrets into registry requests before scripts run

State
Published
Severity
6.5 Medium
Published
Jun 25, 2026
Updated
Jun 25, 2026
Reserved
Jun 16, 2026

Read the record on cve.org

Description

pnpm is a package manager. Prior to 10.34.2 and 11.5.3, pnpm and pacquet expanded ${ENV_VAR} placeholders from repository-controlled .npmrc and pnpm-workspace.yaml into registry request destinations and registry credentials. A malicious repository could cause dependency resolution to send victim environment secrets to an attacker-selected registry before lifecycle scripts run. This vulnerability is fixed in 10.34.2 and 11.5.3.

Scores

CVSSScoreVectorSource
3.16.5 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:NGitHub_M

Weaknesses

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-201 Insertion of Sensitive Information Into Sent Data
  • CWE-522 Insufficiently Protected Credentials

Affected Products

ProductVersions
pnpmpnpm
  • < 10.34.2Affected
  • >= 11.0.0, < 11.5.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.