Files
pnpm/pkg-manager
Zoltan Kochan 455cfcd84b fix: reject path-traversal segments in dependency aliases
A transitive registry package can use a dependency-alias key like
`@x/../../../../../.git/hooks` to make `pnpm install` create a symlink
outside the intended `node_modules` directory, since pnpm passes the
alias straight into `path.join(modulesDir, alias)` without checking
that the joined path stays inside `modulesDir`.

Reject aliases that aren't valid npm package names at manifest-read
time (both the importer's manifest and every transitive package
manifest) and re-check at the symlink layer as defense in depth.

Backport of #11954 to the release/10 line.

---
Written by an agent (Claude Code, claude-opus-4-7).
2026-05-27 13:19:21 +02:00
..
2026-05-06 15:00:18 +02:00
2026-05-06 15:00:18 +02:00
2026-01-19 12:12:58 +01:00
2026-05-06 15:00:18 +02:00
2026-05-06 15:00:18 +02:00
2026-03-24 17:15:56 +01:00
2026-03-24 17:15:56 +01:00
2026-05-06 15:00:18 +02:00
2026-02-17 16:44:04 +01:00
2026-01-26 15:17:27 +01:00
2026-05-06 15:00:18 +02:00
2026-05-06 15:00:18 +02:00
2026-03-24 17:15:56 +01:00