Relative Path Traversal Affecting @pnpm/package-bins package, versions <1000.0.16


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (2nd percentile)

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 Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PNPMPACKAGEBINS-15103738
  • published27 Jan 2026
  • disclosed26 Jan 2026
  • creditmldangelo

Introduced: 26 Jan 2026

CVE-2026-23890  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

Upgrade @pnpm/package-bins to version 1000.0.16 or higher.

Overview

@pnpm/package-bins is a that returns bins of a package.

Affected versions of this package are vulnerable to Relative Path Traversal via the commandsFromBin function when performing bin name validation and normalization. An attacker can create or overwrite arbitrary files outside the intended directory by crafting malicious package bin names containing path traversal sequences.

Note: Exploitation requires the attacker to publish and convince the user to install a malicious package.

CVSS Base Scores

version 4.0
version 3.1