CVE-2022-26183 Untrusted Search Path in PNPM

High 8.8 Published Updated

Attackers can execute arbitrary code by placing malicious files in a directory where PNPM is run on Windows.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-26183?

CVE-2022-26183 is a high-severity path traversal vulnerability in n/a, published on 21 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

PNPM v6.15.1 and below was discovered to contain an untrusted search path which causes the application to behave in unexpected ways when users execute PNPM commands in a directory containing malicious content. This vulnerability occurs when the application is ran on Windows OS.

Weakness: CWE-426

Which versions are affected by CVE-2022-26183?

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

PackageAffectedFixed in
pnpm npmAll versions6.15.1
pnpm npmAll versions6.15.1

Products include Pnpm Pnpm.

How do I fix CVE-2022-26183?

Upgrade pnpm to 6.15.1 or later.

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

Is CVE-2022-26183 being exploited?

There is no known exploitation of CVE-2022-26183 in the wild and no public exploit code.

Sources

Also known as GHSA-9m87-6fj3-c5xh.

Is CVE-2022-26183 in your software?

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

Check your SBOMs for free