Description
pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's bin linking allows malicious npm packages to create executable shims or symlinks outside of `node_modules/.bin`. Bin names starting with `@` bypass validation, and after scope normalization, path traversal sequences like `../../` remain intact. This issue affects all pnpm users who install npm packages and CI/CD pipelines using pnpm. It can lead to overwriting config files, scripts, or other sensitive files. Version 10.28.1 contains a patch.
Published: 2026-01-26
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Arbitrary file creation outside node_modules/.bin via path traversal in pnpm bin linking
Action: Patch Immediately
AI Analysis

Impact

pnpm, the JavaScript package manager, had a flaw in its bin linking logic that let a malicious npm package create or overwrite files outside the expected node_modules/.bin directory. When a bin name begins with a scope marker such as @, pnpm omits certain validations, and after normalizing the scope the path traversal sequences like ../../ are preserved. As a result an attacker can place executable shims or symbolic links anywhere on the filesystem, potentially targeting configuration files, scripts, or other sensitive locations. The stored weakness is a typical path traversal issue (CWE‑23). This gives the attacker the ability to modify files and to execute code with the permissions of the pnpm process, which could lead to unintended privilege escalation or service disruption.

Affected Systems

The vulnerability impacts any system running pnpm versions prior to 10.28.1 that installs npm packages or uses pnpm in CI/CD pipelines. pnpm users, developers, and automation scripts that pull dependencies are therefore at risk. The affected vendor/product is pnpm:pnpm, all versions before the publicly released patch in 10.28.1.

Risk and Exploitability

The risk assessment assigns a CVSS score of 6.5, placing it in the moderate to high severity category. The EPSS score is below 1%, indicating that widespread exploitation is presently unlikely, and the vulnerability is not listed in CISA’s KEV catalogue. Nevertheless, an attacker only needs to provide or compromise an npm package to trigger the flaw, a scenario that is feasible for supply‑chain attacks or malicious package publication. If an attacker succeeds, they can overwrite or create files on the target system, potentially corrupting configuration, installing backdoors, or enabling further exploitation. The attack vector is inferred to be through malicious or compromised npm packages because the bin linking process occurs during installation. Consequently, users working with untrusted packages or running CI/CD pipelines that install dependencies automatically are at higher risk.

Generated by OpenCVE AI on April 18, 2026 at 02:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to pnpm version 10.28.1 or later to apply the path‑traversal fix
  • Regenerate the node_modules directory by removing it and reinstalling all dependencies to ensure no malicious shims remain
  • Review any files that appear outside node_modules/.bin after installation, particularly configuration or script files, and restore them to a known safe state or remove them

Generated by OpenCVE AI on April 18, 2026 at 02:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-xpqm-wm3m-f34h pnpm scoped bin name Path Traversal allows arbitrary file creation outside node_modules/.bin
History

Wed, 28 Jan 2026 17:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:pnpm:pnpm:*:*:*:*:*:node.js:*:*

Wed, 28 Jan 2026 12:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 27 Jan 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 27 Jan 2026 09:15:00 +0000

Type Values Removed Values Added
First Time appeared Pnpm
Pnpm pnpm
Vendors & Products Pnpm
Pnpm pnpm

Mon, 26 Jan 2026 22:15:00 +0000

Type Values Removed Values Added
Description pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's bin linking allows malicious npm packages to create executable shims or symlinks outside of `node_modules/.bin`. Bin names starting with `@` bypass validation, and after scope normalization, path traversal sequences like `../../` remain intact. This issue affects all pnpm users who install npm packages, CI/CD pipelines using pnpm, and those who can overwrite config files, scripts, or other sensitive files. Version 10.28.1 contains a patch. pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's bin linking allows malicious npm packages to create executable shims or symlinks outside of `node_modules/.bin`. Bin names starting with `@` bypass validation, and after scope normalization, path traversal sequences like `../../` remain intact. This issue affects all pnpm users who install npm packages and CI/CD pipelines using pnpm. It can lead to overwriting config files, scripts, or other sensitive files. Version 10.28.1 contains a patch.

Mon, 26 Jan 2026 22:00:00 +0000

Type Values Removed Values Added
Description pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's bin linking allows malicious npm packages to create executable shims or symlinks outside of `node_modules/.bin`. Bin names starting with `@` bypass validation, and after scope normalization, path traversal sequences like `../../` remain intact. This issue affects all pnpm users who install npm packages, CI/CD pipelines using pnpm, and those who can overwrite config files, scripts, or other sensitive files. Version 10.28.1 contains a patch.
Title pnpm scoped bin name Path Traversal allows arbitrary file creation outside node_modules/.bin
Weaknesses CWE-23
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-01-27T21:39:57.954Z

Reserved: 2026-01-16T21:02:02.902Z

Link: CVE-2026-23890

cve-icon Vulnrichment

Updated: 2026-01-27T21:39:54.444Z

cve-icon NVD

Status : Analyzed

Published: 2026-01-26T22:15:56.363

Modified: 2026-01-28T17:32:21.883

Link: CVE-2026-23890

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-01-26T21:53:40Z

Links: CVE-2026-23890 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-04-18T02:45:27Z

Weaknesses