CVE-2026-23889

pnpm has Windows-specific tarball Path Traversal

Published Jan 26, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's tarball extraction allows malicious packages to write files outside the package directory on Windows. The path normalization only checks for `./` but not `.\`. On Windows, backslashes are directory separators, enabling path traversal. This vulnerability is Windows-only. This issue impacts Windows pnpm users and Windows CI/CD pipelines (GitHub Actions Windows runners, Azure DevOps). It can lead to overwriting `.npmrc`, build configs, or other files. Version 10.28.1 contains a patch.

Analysis

AI-generated

Technical impact

A path traversal flaw in pnpm’s tarball extraction process allows malicious packages to write files outside the intended package directory on Windows. The path normalization logic only checks for the Unix‐style "." prefix, ignoring the backslash used on Windows; this oversight lets an attacker include file paths that escape the package boundary and overwrite critical files such as ".npmrc" or build configuration files, potentially leading to privilege escalation or arbitrary code execution.

Affected Systems

pnpm users running on Windows and Windows‑based CI/CD environments, including GitHub Actions Windows runners and Azure DevOps pipelines, using version 10.28.0 or earlier. The vulnerability does not affect other operating systems.

Risk and Exploitability

The CVSS score of 6.5 reflects moderate severity, and the EPSS score of less than 1% suggests a low likelihood of exploitation at this time. The vulnerability is not listed in the CISA KEV catalogue. An attacker can exploit this flaw by introducing a malicious package into a locally built or CI‑driven project on a Windows machine, thereby gaining the ability to overwrite arbitrary files on the host.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pnpm to version 10.28.1 or later to apply the path traversal fix.
  • Restrict the use of pnpm to trusted package sources and validate tarball contents before extraction in CI/CD pipelines.
  • Run CI/CD agents with least privilege and omit write permissions to critical configuration directories when installing packages.

Generated by OpenCVE AI on April 18, 2026 at 14:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-6x96-7vc8-cm3p pnpm has Windows-specific tarball Path Traversal
History
Type Values Removed Values Added
First Time appeared Microsoft
Microsoft windows
CPEs cpe:2.3:a:pnpm:pnpm:*:*:*:*:*:node.js:*:*
cpe:2.3:o:microsoft:windows:-:*:*:*:*:*:*:*
Vendors & Products Microsoft
Microsoft windows
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Pnpm
Pnpm pnpm
Vendors & Products Pnpm
Pnpm pnpm
Type Values Removed Values Added
Description pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's tarball extraction allows malicious packages to write files outside the package directory on Windows. The path normalization only checks for `./` but not `.\`. On Windows, backslashes are directory separators, enabling path traversal. This vulnerability is Windows-only. This issue impacts Windows pnpm users, Windows CI/CD pipelines (GitHub Actions Windows runners, Azure DevOps), and those who can overwrite `.npmrc`, build configs, or other 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 tarball extraction allows malicious packages to write files outside the package directory on Windows. The path normalization only checks for `./` but not `.\`. On Windows, backslashes are directory separators, enabling path traversal. This vulnerability is Windows-only. This issue impacts Windows pnpm users and Windows CI/CD pipelines (GitHub Actions Windows runners, Azure DevOps). It can lead to overwriting `.npmrc`, build configs, or other files. Version 10.28.1 contains a patch.
Type Values Removed Values Added
Description pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's tarball extraction allows malicious packages to write files outside the package directory on Windows. The path normalization only checks for `./` but not `.\`. On Windows, backslashes are directory separators, enabling path traversal. This vulnerability is Windows-only. This issue impacts Windows pnpm users, Windows CI/CD pipelines (GitHub Actions Windows runners, Azure DevOps), and those who can overwrite `.npmrc`, build configs, or other files. Version 10.28.1 contains a patch.
Title pnpm has Windows-specific tarball Path Traversal
Weaknesses CWE-22
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'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jan 27, 2026, 9:40 PM
Reserved
Jan 16, 2026, 9:02 PM
Status
Analyzed
Published
Jan 26, 2026, 10:15 PM
Modified
Jun 17, 2026, 10:22 AM
Severity
Moderate
Public date
Jan 26, 2026, 9:50 PM