SecurityContext

CVE-2026-23888: pnpm - Path Traversal

  • Cve: CVE-2026-23888
  • Name: pnpm - Path Traversal
  • Description: pnpm is a package manager. Prior to version 10.28.1, a path traversal vulnerability in pnpm's binary fetcher allows malicious packages to write files outside the intended extraction directory. The vulnerability has two attack vectors: (1) Malicious ZIP entries containing `../` or absolute paths that escape the extraction root via AdmZip's `extractAllTo`, and (2) The `BinaryResolution.prefix` field is concatenated into the extraction path without validation, allowing a crafted prefix like `../../evil` to redirect extracted files outside `targetDir`. The issue impacts all pnpm users who install packages with binary assets, users who configure custom Node.js binary locations and CI/CD pipelines that auto-install binary dependencies. It can lead to overwriting config files, scripts, or other sensitive files leading to RCE. Version 10.28.1 contains a patch.
  • Impact: Attackers can overwrite sensitive files and execute arbitrary code, leading to full system compromise.
  • Remediation: Update to version 10.28.1 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: remote_code_execution, file_system_write
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
  • Epss score: 0.0045
  • Epss percentile: 0.39613
  • Assignee: [email protected]
  • Published at: 2026-01-26T22:15:56Z
  • Age in days: 302
  • Modified at: 2026-06-17T10:22:15Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-23888
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/pnpm/pnpm/security/advisories/GHSA-6pfh-p556-v868nvd2026-01-26

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/pnpm/pnpm/commit/5c382f0ca3b7cc49963b94677426e66539dcb3f5Patch
https://github.com/pnpm/pnpm/security/advisories/GHSA-6pfh-p556-v868Exploit, Vendor Advisory
https://github.com/pnpm/pnpm/releases/tag/v10.28.1Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
pnpm:pnpm< 10.28.1nonvd/v1/products/pnpm/pnpm

Projects

RepositoryLink kindsIndexedUrl
pnpm/pnpmcommit, fix, package, releases, security_advisoryyes/v1/repositories/pnpm/pnpm

Index

  • Repositories: 10
  • Repositories high signal: 9
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2026-01-26
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts