pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 10.20.0 to 10.21.0
1 release in betweenevery note read
Security
26 advisories still affect 10.21.0
- pnpm vulnerable to Command Injection via environment variable substitutionhigh · GHSA-2phv-j68v-wwqx
- pnpm v10+ Bypass "Dependency lifecycle scripts execution disabled by default"high · GHSA-379q-355j-w6rj
- pnpm: Repository config can expand victim environment secrets into registry requests before scripts runmoderate · GHSA-3qhv-2rgh-x77r
Upgrading to 10.34.5 clears them.
Release by release
- New
Node.js Runtime Installation for Dependencies. Added support for automatic Node.js runtime installation for dependencies. pnpm will now install the Node.js version required by a dependency if that dependency declares a Node.js runtime in the "engines" field. For example:
- New
Added a new setting:
trustPolicy. - New
Added support for
pnpm config get globalconfigto retrieve the global config file path #9977. - Fixed
When a user runs
pnpm updateon a dependency that is not directly listed inpackage.json, none of the direct dependencies should be updated #10155. - Fixed
Don't crash when two processes of pnpm are hardlinking the contents of a directory to the same destination simultaneously #10160.
- Fixed
Setting
gitBranchLockfileand related settings viapnpm-workspace.yamlshould work #9651.
- New
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.