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: 6.8 [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]
CVE-ID: CVE-2026-50017
CWE-ID: CWE-522
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

pnpm

How to mitigate CVE-2026-50017

Install security update from vendor's website.

pnpm - addressed in versions 11.0.0, 11.4.0

External References

Related Security Bulletins