External Control of File Name or Path Affecting pnpm package, versions >=12.0.0-alpha.0 <12.0.0-alpha.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about External Control of File Name or Path vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PNPM-19500673
  • published2 Sept 2026
  • disclosed1 Sept 2026
  • creditUnknown

Introduced: 1 Sep 2026

New CVE NOT AVAILABLE CWE-22  (opens in a new tab)
CWE-59  (opens in a new tab)
CWE-73  (opens in a new tab)

How to fix?

Upgrade pnpm to version 12.0.0-alpha.5 or higher.

Overview

pnpm is a Fast, disk space efficient package manager

Affected versions of this package are vulnerable to External Control of File Name or Path and link following in its lockfile install path (safe_join_modules_dir.rs in the bundled pacquet package manager), whose containment checks fail to reject traversal, absolute, platform-specific, and reserved dependency names. An attacker can create symlinks and write files outside the project or node_modules boundary by distributing a lockfile whose dependency aliases contain traversal segments such as ../../escaped-link. This requires the victim to run an install with --trust-lockfile, or a trusted frozen lockfile, against the attacker-supplied lockfile.

CVSS Base Scores

version 4.0
version 3.1