CVE-2026-50016 pnpm: Transitive dependency alias path traversal allows project path override via symlink replacement

High 8.8 Published Updated

A malicious registry package can use path traversal in dependency aliases to replace project files with symlinks, potentially leading to code execution or data modification.

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-50016?

CVE-2026-50016 is a high-severity path traversal 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 allows a transitive dependency alias from registry package metadata to contain path traversal segments. During install, pnpm later uses that alias as a filesystem path when linking dependency nodes. As a result, a registry package can cause `pnpm install --ignore-scripts` to replace paths in the current project with symlinks to attacker-controlled dependency package directories. This vulnerability is fixed in 10.34.0 and 11.4.0.

Weakness: CWE-23

Which versions are affected by CVE-2026-50016?

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-50016?

Upgrade pnpm to a fixed version for your release line: 10.34.0 or 11.4.0.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-50016 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-50016 exists.

Sources

Also known as GHSA-hwx4-2j3j-g496, MINI-575j-vrf4-7vp8, ROOT-APP-NPM-CVE-2026-50016.

Is CVE-2026-50016 in your software?

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

Check your SBOMs for free