Insufficiently protected credentials in pnpm - CVE-2026-50017

 

Insufficiently protected credentials in pnpm - CVE-2026-50017

Published: June 15, 2026


Vulnerability identifier: #VU134549
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-50017
CWE-ID: CWE-522
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: pnpm
Affected software:
pnpm

Detailed vulnerability description

The vulnerability allows a remote user to disclose sensitive information.

The vulnerability exists due to insufficiently protected credentials in pnpm auth-header handling when processing repository-local .npmrc registry configuration during install or metadata requests. A remote user can provide a repository with a crafted .npmrc that selects an attacker-controlled registry to disclose sensitive information.

The issue can expose user-level unscoped npm credentials in Authorization headers before package lifecycle scripts run and does not depend on package code execution.


How to mitigate CVE-2026-50017

Install security update from vendor's website.

Sources