CVE-2026-50017 pnpm binds unscoped user-level npm auth credentials to a repository-selected registry
pnpm leaks user-level npm authentication tokens to attacker-controlled registries specified in repository configuration files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-50017?
CVE-2026-50017 is a medium-severity vulnerability in pnpm, published on 25 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
pnpm is a package manager. Prior to 10.34.0 and 11.4.0, pnpm can send user-level unscoped npm authentication credentials to a registry chosen by a repository-local .npmrc file. In the reproduced case, the user's npm config contains a default registry and an unscoped _authToken. The repository does not provide a token-bearing auth line. It only sets registry= to a different registry URL. During normal pnpm metadata/install workflows, pnpm binds the user-origin unscoped credential to the repository-selected registry and sends it as an Authorization header. This vulnerability is fixed in 10.34.0 and 11.4.0.
Which versions are affected by CVE-2026-50017?
4 open source packages ship an affected version, including pnpm. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pnpm npm | All versions | 10.34.0 |
pnpm npm | All versions | 10.34.0 |
pnpm npm | From 11.0.0 | 11.4.0 |
pnpm npm | From 11.0.0 | 11.4.0 |
Products include Pnpm Pnpm.
How do I fix CVE-2026-50017?
Upgrade pnpm to a fixed version for your release line: 10.34.0 or 11.4.0.
Is CVE-2026-50017 being exploited?
There is no known exploitation of CVE-2026-50017 in the wild and no public exploit code.
Other vulnerabilities in pnpm
- CVE-2026-50016 pnpm: Transitive dependency alias path traversal allows project path override via symlink replacement
- CVE-2026-55698 pnpm: Project env lockfile can short-circuit package-manager resolution and execute lockfile-selected pnpm bytes
- CVE-2025-69264 pnpm v10+ Bypass "Dependency lifecycle scripts execution disabled by default"
- CVE-2022-26183 Untrusted Search Path in PNPM
- CVE-2026-59195 pnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-config
Sources
Also known as GHSA-cjhr-43r9-cfmw, MINI-hm45-363c-25rc, ROOT-APP-NPM-CVE-2026-50017.