Insufficiently protected credentials in pnpm - CVE-2026-50017
Published: June 15, 2026
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.