CVE-2026-50017 pnpm binds unscoped user-level npm auth credentials to a repository-selected registry

Medium 6.9 Published Updated

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.

Weakness: CWE-522, CWE-200

Which versions are affected by CVE-2026-50017?

4 open source packages ship an affected version, including pnpm. It affects 1 product.

PackageAffectedFixed in
pnpm npmAll versions10.34.0
pnpm npmAll versions10.34.0
pnpm npmFrom 11.0.011.4.0
pnpm npmFrom 11.0.011.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.

Sources

Also known as GHSA-cjhr-43r9-cfmw, MINI-hm45-363c-25rc, ROOT-APP-NPM-CVE-2026-50017.

Is CVE-2026-50017 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free