pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 12.6.0 to 12.7.0
1 release in betweenevery note read
Security
- 12.7.0
This release also carries security fixes for bin shims on Nix, for lifecycle scripts of packages in a
storeDirinside the workspace, and foruserAgentplaceholders inpnpm-workspace.yaml. - 12.7.0
Pnpm no longer expands environment variables in a
userAgentset in a project'spnpm-workspace.yaml. AuserAgentwith a placeholder in that file is now ignored. Before this fix, pnpm sent the variable's value to the configured registry #15415. - 12.7.0
On Nix, a dependency's bin named like a system utility such as
sedcan no longer redirect a POSIX bin shim or thepnpm,pn,pnpx, andpnxlaunchers. The shims and launchers now ignorenode_modulesand relativePATHentries while they locate their own files. Installing again replaces the shims already innode_modules#14883. - 12.7.0
Pnpm no longer treats manifests inside its store, cache, state, or modules directories as workspace projects. Before, a
storeDirinside the workspace could let lifecycle scripts of packages in the store run withoutallowBuildsapproval #15033. - 12.7.0
Packages that run a lifecycle script are no longer hard-linked into the virtual store, so a build script can no longer rewrite the workspace source of an injected package or the store copy it was imported from #15483.
Release by release
- Security
This release also carries security fixes for bin shims on Nix, for lifecycle scripts of packages in a
storeDirinside the workspace, and foruserAgentplaceholders inpnpm-workspace.yaml. - Security
Pnpm no longer expands environment variables in a
userAgentset in a project'spnpm-workspace.yaml. AuserAgentwith a placeholder in that file is now ignored. Before this fix, pnpm sent the variable's value to the configured registry #15415. - Security
On Nix, a dependency's bin named like a system utility such as
sedcan no longer redirect a POSIX bin shim or thepnpm,pn,pnpx, andpnxlaunchers. The shims and launchers now ignorenode_modulesand relativePATHentries while they locate their own files. Installing again replaces the shims already innode_modules#14883. - Security
Pnpm no longer treats manifests inside its store, cache, state, or modules directories as workspace projects. Before, a
storeDirinside the workspace could let lifecycle scripts of packages in the store run withoutallowBuildsapproval #15033.
- Security
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.