Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pnpm
  4. ›
  5. GHSA-2rx9-3g3h-c2jv

GHSA-2rx9-3g3h-c2jv: pnpm: pacquet trust-lockfile install can create dependency symlinks outside the project

September 1, 2026

A crafted lockfile alias could reach several install-time filesystem joins. With --trust-lockfile or a frozen lockfile, traversal segments could create links outside the intended project or node_modules boundary. This patch validates dependency names and every virtual-store slot before creating directories, links, bins, or hoisted entries.

References

  • github.com/advisories/GHSA-2rx9-3g3h-c2jv
  • github.com/pnpm/pnpm/commit/51300fd41c5e4c8f47635108e373cc3d1f324fa7
  • github.com/pnpm/pnpm/pull/12872
  • github.com/pnpm/pnpm/security/advisories/GHSA-2rx9-3g3h-c2jv

Code Behaviors & Features

Detect and mitigate GHSA-2rx9-3g3h-c2jv 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 starting from 12.0.0-alpha.0 before 12.0.0-alpha.5

Fixed versions

  • 12.0.0-alpha.5

Solution

Upgrade to version 12.0.0-alpha.5 or above.

Impact 7.1 HIGH

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

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')
  • CWE-73: External Control of File Name or Path

Source file

npm/pnpm/GHSA-2rx9-3g3h-c2jv.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 22 Sep 2026 12:19:55 +0000.