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.
Published: 2026-06-25
Score: 6.5 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

pnpm, a popular JavaScript package manager, had a flaw in versions prior to 10.34.2 and 11.5.3 that allowed repository‑controlled configuration files (.npmrc and pnpm-workspace.yaml) to expand environment variable placeholders (${ENV_VAR}) straight into registry URLs and credentials. A repository owner could therefore embed the victim's environment secrets in a registry request and send them to an attacker‑chosen registry before any lifecycle scripts executed. This results in disclosure of potentially sensitive information, such as private tokens or credentials, making the vulnerability a medium‑severity information‑exposure flaw (CWE‑200, CWE‑201, CWE‑522).

Affected Systems

Systems running pnpm versions earlier than 10.34.2 or 11.5.3 are affected. The flaw exists in the pnpm package manager maintained by the pnpm:pnpm project. Users of any pnpm‑controlled workspace that includes a .npmrc or pnpm‑workspace.yaml file that contains environment variable placeholders are potentially vulnerable unless the configuration is sanitized or the package manager is upgraded to the patched release.

Risk and Exploitability

The CVSS base score of 6.5 indicates moderate severity, and there is no EPSS score available; the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an attacker who can influence the repository’s configuration files, such as by hosting a malicious package or modifying a shared pnpm‑workspace.yaml. Because the environment variables are expanded before script execution, an attacker can intercept secrets during the dependency resolution phase. The risk is primarily that of covert data exfiltration rather than direct code execution, but given the potential for leaking credentials, the threat is significant for environments where sensitive secrets are used in .npmrc files.

Generated by OpenCVE AI on June 25, 2026 at 18:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade pnpm to version 10.34.2 or newer, or version 11.5.3 or newer, which contain the fix.
  • If an upgrade is not yet possible, remove or sanitize any .npmrc or pnpm-workspace.yaml files that contain ${ENV_VAR} placeholders to prevent accidental exposure.
  • Restrict outbound registry traffic by configuring firewall rules or proxy settings to allow only trusted registries, and verify that no unexpected registry URLs are present in repository configuration files.

Generated by OpenCVE AI on June 25, 2026 at 18:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 25 Jun 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 25 Jun 2026 17:30:00 +0000

Type Values Removed Values Added
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.
Title pnpm: Repository config can expand victim environment secrets into registry requests before scripts run
Weaknesses CWE-200
CWE-201
CWE-522
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-25T17:58:51.463Z

Reserved: 2026-06-16T15:20:43.085Z

Link: CVE-2026-55180

cve-icon Vulnrichment

Updated: 2026-06-25T17:58:46.430Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T18:30:14Z

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