Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-55180 EUVD-2026-39498GHSA-3qhv-2rgh-x77r

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

Published Jun 25, 2026 · Updated Jun 25, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
pnpm pnpm < 10.34.2, >= 11.0.0, < 11.5.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling pnpm-stage0 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm pnpm < 10.34.2 10.34.2 GHSA-3qhv-2rgh-x77r
npm pnpm >= 11.0.0, < 11.5.3 11.5.3 GHSA-3qhv-2rgh-x77r

References