pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
10.34.9 is the newest release of 10.x.
In short
1 security3 fixed
Security
Fixes 3 advisories that affected 10.34.3
- Highpnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-configGHSA-qrv3-253h-g69c · 27 Jun 2026Fixed in 10.34.4
- Highpnpm: `patch-remove` could delete project-selected files outside the patches directoryGHSA-72r4-9c5j-mj57 · 27 Jun 2026Fixed in 10.34.4
- Highpnpm: Hoisted install imports lockfile alias outside node_modulesGHSA-fr4h-3cph-29xv · 27 Jun 2026Fixed in 10.34.4
3 advisories affect 10.34.4; 10.34.5 fixes them
- Highpnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraphGHSA-c59q-g84q-2gj5 · 2 Sep 2026Fixed in 10.34.5
- Highpnpm: A tarball dependency's manifest `name` escapes node_modules → arbitrary file write/overwrite on installGHSA-vq4v-j7r6-jq4m · 2 Sep 2026Fixed in 10.34.5
- Highpnpm: Environment secrets exfiltrated via env-placeholder expansion in proxy settings read from an untrusted pnpm-workspace.yamlGHSA-vx52-2968-3vc6 · 1 Sep 2026Fixed in 10.34.5
Release note
Patch Changes
- Security
Security: validate config dependency names and versions before using them to build filesystem paths. A
pnpm-workspace.yamlwith a traversal-shapedconfigDependenciesname (such as../../PWNED) or version (such as../../../PWNED) could previously causepnpm installto create symlinks or write package files outsidenode_modules/.pnpm-configand the store. Names must now be valid npm package names and versions must be exact semver versions. See GHSA-qrv3-253h-g69c. Reject path-traversal and reserved dependency aliases (such as
../../../escape,.bin,.pnpm, ornode_modules) that come from a lockfile rather than a freshly resolved manifest. A crafted lockfile alias could otherwise be joined directly under a hoistednode_modulesdirectory, letting package files be written outside the intended install root or overwrite pnpm-owned layout.The
nodeLinker: hoistedgraph builder now validates each alias at the directory sink (safeJoinModulesDir), matching the validation pnpm already performs when resolving aliases from manifests. See GHSA-fr4h-3cph-29xv.Prevent
pnpm patch-removefrom removing files outside the configured patches directory.Hardened the warning printed when a project
.npmrcuses environment variables in registry/auth settings: the suggestedpnpm config setcommand is now only included for keys made up of shell-inert characters. Because the key comes from a repository-controlled.npmrcand a shell expands$(...), backticks, and$VAReven inside double quotes, a crafted key could otherwise have turned the suggested copy-paste command into command execution.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.