Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pnpm
  4. ›
  5. CVE-2026-24056

CVE-2026-24056: pnpm has symlink traversal in file:/git dependencies

January 26, 2026 (updated January 29, 2026)

When pnpm installs a file: (directory) or git: dependency, it follows symlinks and reads their target contents without constraining them to the package root. A malicious package containing a symlink to an absolute path (e.g., /etc/passwd, ~/.ssh/id_rsa) causes pnpm to copy that file’s contents into node_modules, leaking local data.

Preconditions: Only affects file: and git: dependencies. Registry packages (npm) have symlinks stripped during publish and are NOT affected.

References

  • github.com/advisories/GHSA-m733-5w8f-5ggw
  • github.com/pnpm/pnpm
  • github.com/pnpm/pnpm/commit/b277b45bc35ae77ca72d7634d144bbd58a48b70f
  • github.com/pnpm/pnpm/releases/tag/v10.28.2
  • github.com/pnpm/pnpm/security/advisories/GHSA-m733-5w8f-5ggw
  • nvd.nist.gov/vuln/detail/CVE-2026-24056

Code Behaviors & Features

Detect and mitigate CVE-2026-24056 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 10.28.2

Fixed versions

  • 10.28.2

Solution

Upgrade to version 10.28.2 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

npm/pnpm/CVE-2026-24056.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 00:35:30 +0000.