Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. pnpm
  4. ›
  5. GHSA-qrv3-253h-g69c

GHSA-qrv3-253h-g69c: pnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-config

June 27, 2026

pnpm accepts package names from the env lockfile configDependencies section and uses those names directly when creating config dependency symlinks under node_modules/.pnpm-config.

A malicious repository can commit a crafted pnpm-lock.yaml whose env-lockfile document contains a traversal-shaped config dependency name such as ../../PWNED_CFGDEP. During pnpm install, pnpm installs the config dependency and creates a symlink at a path derived from that name.

In local testing against pnpm v11.5.1, this caused pnpm to create a symlink outside the intended config dependency directory:

expected root: /tmp/pnpm-cfgdep-poc-sznwgunx/victim/node_modules/.pnpm-config
actual path:   /tmp/pnpm-cfgdep-poc-sznwgunx/victim/PWNED_CFGDEP

This works with --ignore-scripts, so it does not rely on lifecycle script execution.

References

  • github.com/advisories/GHSA-qrv3-253h-g69c
  • github.com/pnpm/pnpm/security/advisories/GHSA-qrv3-253h-g69c

Code Behaviors & Features

Detect and mitigate GHSA-qrv3-253h-g69c 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.34.4, all versions starting from 11.0.0 before 11.8.0

Fixed versions

  • 10.34.4
  • 11.8.0

Solution

Upgrade to versions 10.34.4, 11.8.0 or above.

Impact 8.2 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/pnpm/GHSA-qrv3-253h-g69c.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 27 Jun 2026 12:15:51 +0000.