pnpm
12.21.0 · 13 Nov 2026MIT358M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 8.0.0 to 8.15.9
57 releases in betweennotes for 55
Reading releases, release notes and advisories…
Counted from 55 of 57 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking8.7.0
Security
26 advisories still affect 8.15.9
- pnpm vulnerable to Command Injection via environment variable substitutionhigh · GHSA-2phv-j68v-wwqx
- pnpm: Repository config can expand victim environment secrets into registry requests before scripts runmoderate · GHSA-3qhv-2rgh-x77r
- pnpm: Reserved bin name deletes PNPM_HOME during global removemoderate · GHSA-4gxm-v5v7-fqc4
Upgrading to 10.34.5 clears them.
Fixes 1 advisory affecting 8.0.0
- pnpm incorrectly parses tar archives relative to specificationhigh · GHSA-5r98-f33j-g8h7
- 8.15.8
If the
script-shelloption is configured to a.bat/.cmdfile on Windows, pnpm will now error withERR_PNPM_INVALID_SCRIPT_SHELL_WINDOWS. Newer versions of Node.js released in April 2024 do not support executing these files directly without behavior differences. If thescript-shelloption is necessary for your use-case, please set a.exefile instead.
Release by release
- Security
If the
script-shelloption is configured to a.bat/.cmdfile on Windows, pnpm will now error withERR_PNPM_INVALID_SCRIPT_SHELL_WINDOWS. Newer versions of Node.js released in April 2024 do not support executing these files directly without behavior differences. If thescript-shelloption is necessary for your use-case, please set a.exefile instead. - Fixed
Upgrade tar to v6.2.1 in the dependences #7939.
- Security
- Fixed
Print the right error code when a package fails to be added to the store #7679.
- Fixed
Don't fail on a tarball that appears to be not a USTAR or GNU TAR archive. Still try to unpack the tarball #7120.
- Fixed
Always add a name and version field to the index files in the store #7115.
- Fixed
Deleting a dependencies field via a
readPackagehook should work #7704. - Fixed
Symlinks should be resolved and uploaded to the side-effects cache #7691.
- Fixed
- Fixed
When purging multiple
node_modulesdirectories, pnpm will no longer print multiple prompts simultaneously. - Fixed
Don't print an unnecessary warning when adding new dependencies to a project that uses hoisted
node_modules. - Fixed
Linking globally the command of a package that has no name in
package.json#4761. - Fixed
Installation should work with lockfile created by pnpm v9.0.0-alpha.4
- Fixed
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.