pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 11.0.5 to 12.21.0
95 releases in betweenevery note read
Start here
Before you upgrade
Tick each one off as you go- Breaking12.20.0
- Breaking12.20.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking12.0.0
- Breaking11.28.1
- Breaking11.22.0
Security
Fixes 18 advisories affecting 11.0.5
- 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
- pnpm: Unsafe default behavior breaks integrity checkmoderate · GHSA-54hh-g5mx-jqcp
- pnpm: Manifest identity spoof satisfies allowBuilds and runs attacker lifecyclehigh · GHSA-5wx6-mg75-v57r
- pnpm: `patch-remove` could delete project-selected files outside the patches directoryhigh · GHSA-72r4-9c5j-mj57
- pnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraphhigh · GHSA-c59q-g84q-2gj5
- pnpm binds unscoped user-level npm auth credentials to a repository-selected registrymoderate · GHSA-cjhr-43r9-cfmw
- pnpm: Hoisted install imports lockfile alias outside node_moduleshigh · GHSA-fr4h-3cph-29xv
- pnpm: Repository-controlled configDependencies can select a pacquet native install enginehigh · GHSA-gj8w-mvpf-x27x
- pnpm: Tarball hash of GitHub git dependencies is not stored in lockfilemoderate · GHSA-hg3w-7f8c-63hp
- pnpm: Transitive dependency alias path traversal allows project path override via symlink replacementhigh · GHSA-hwx4-2j3j-g496
- pnpm: Git Fetch Argument Injection via Lockfile resolution.commitmoderate · GHSA-p4xf-rf54-rj3x
- pnpm Has an Integrity Check Bypass via Missing Lockfile Integrity Fieldmoderate · GHSA-q6j5-fjx5-2mc3
- pnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-confighigh · GHSA-qrv3-253h-g69c
- pnpm Vulnerable to Arbitrary File Write/Delete via Malicious Patch File (Path Traversal)high · GHSA-rxhj-4m44-96r4
- pnpm: A tarball dependency's manifest `name` escapes node_modules → arbitrary file write/overwrite on installhigh · GHSA-vq4v-j7r6-jq4m
- pnpm: Environment secrets exfiltrated via env-placeholder expansion in proxy settings read from an untrusted pnpm-workspace.yamlhigh · GHSA-vx52-2968-3vc6
- pnpm: Project env lockfile can short-circuit package-manager resolution and execute lockfile-selected pnpm byteshigh · GHSA-w466-c33r-3gjp
- 12.20.0
Remote resolution, shared build caches, and release notes no longer work with pnpr 0.1.0-alpha.19 or older. pnpm now reads the capabilities a pnpr server advertises under
pnpr.protocols. Installs fail when the server does not confirm the requested resolution and verification policies. - 12.19.0
It also includes a security fix: an offline install error no longer prints registry credentials. pnpm now checks the
enginesand platform fields of every workspace project, and many hoisted-linker and frozen-lockfile bugs are fixed. - 12.19.0
The error for a tarball that is missing from the store in offline mode no longer prints the credentials or token in the tarball URL.
- 12.16.0
It also fixes two security issues, in zstd decompression and in signing.
- 12.16.0
Fixed memory exposure and allocation handling vulnerabilities when processing zstd-compressed data #17388.
- 12.16.0
Signing in pnpm and pnpr no longer uses arithmetic that may leak the private key through timing. This covers shared artifacts, OCI registry tokens, and OIDC login state advisory.
- 12.15.0
Pnpm now fails with
ERR_PNPM_REGISTRY_NAME_MISMATCHif a registry returns metadata for a package other than the one requested. Before, pnpm installed the package under the name in the metadata, soallowBuildsrules for the requested package did not apply to it. - 12.15.0
minimumReleaseAgeExcludePruneandtrustPolicyExcludePrunenow keep exclusions for resolved configuration dependencies and their transitive dependencies #17142. - 12.10.0
It also carries several security fixes, including one that stops a dependency version from writing files outside the global virtual store.
- 12.10.0
pnpm installnow prevents dependency versions with path traversal from writing files outside the global virtual store.
Release by release
- New
pnpm store addrun in a project now prepares downloaded tarballs for every lockfile entry that pins them. Besides registry packages,pnpm install --offline --frozen-lockfilecan then install dependencies on a tarball URL and dependencies on a git host such as GitHub whose lockfile entry records anintegrity. - Fixed
Pnpm now reads a lockfile with a mapping key longer than 1,024 characters written as
'key':, without the?marker. Before,pnpm installand other commands failed on such a lockfile withERR_PNPM_BROKEN_LOCKFILE. - Fixed
With
lockfile.format: v13,pnpm installno longer fails to create or rewrite the lockfile when a package declares many of its dependencies as peers. - Fixed
Fixed
pnpm deployfailing withlockfile.format: v13when injected workspace packages have hashed peer bindings.
- New
- Security
Remote resolution, shared build caches, and release notes no longer work with pnpr 0.1.0-alpha.19 or older. pnpm now reads the capabilities a pnpr server advertises under
pnpr.protocols. Installs fail when the server does not confirm the requested resolution and verification policies. - Breaking
Remote resolution and shared build caches no longer work with pnpr 0.1.0-alpha.19 or older.
- Breaking
The
node-gypbundled with pnpm no longer ships undici 6, which security scanners flag for CVE-2026-84947. On Node.js 26,node-gypdownloads through a proxy or with a custom CA file no longer crash with "invalid onError method" #17941. - New
With
lockfile.format: v13,pnpm installrecords the dependency specifiers of local directory packages. Frozen installs reject changed specifiers even when the locked versions still satisfy them.
- Security
- Security
It also includes a security fix: an offline install error no longer prints registry credentials. pnpm now checks the
enginesand platform fields of every workspace project, and many hoisted-linker and frozen-lockfile bugs are fixed. - Security
The error for a tarball that is missing from the store in offline mode no longer prints the credentials or token in the tarball URL.
- New
Added
pnpm fund, which lists the funding URLs declared by the installed dependencies in the same treenpm fundprints. Use--jsonfor thenpm fund --jsonreport and--recursiveor--filterto report on workspace projects.pnpm fund <pkg>opens the funding URL of an installed package, and--whichpicks one when it lists several #7354. - New
With
nodeLinker.type: loaded, packages that need a build no longer have to be listed innodeLinker.excluded. A package with a matching side-effects cache entry loads from the store. If side-effects cache reads and writes are enabled, pnpm builds an approved package once, saves the result to the side-effects cache, and then loads it from the store. This includes a build that changes no files in its package, so its script does not run again in other projects that use the same store. List a package insideEffectsCache.excludeif its build must run in every project, such as a git hook installer. pnpm materializes other cache misses, packages with native.nodeaddons, and their dependencies automatically.
- Security
- New
Pnpm now names the link to a dependency's agent skill after the skill alone. A skill that the
@acme/kitpackage ships inskills/auth/is linked as.claude/skills/auth, not.claude/skills/pnpm-@acme+kit-auth. The next install replaces links with the old names. pnpm lists the linked skills in a# pnpmblock of each agent skill directory's.gitignore#17455. - New
pnpm approvenow asks which agent skills to link when a package ships more than one. pnpm records the chosen skills as a list, such aspermissions.<pkg>.skills: [guide, migrate], and does not offer the other skills for approval again. The first time a project approves a skill,pnpm approvealso asks which agent directories to link skills into, and records the answer underskills.dirs. - New
Pnpm links agent skills nested in category directories, such as
skills/engineering/implement/SKILL.md, up to three levels belowskills/. Before, it linked only the skills directly underskills/. - New
pnpm packpacks one archive per entry ofpublishConfig.variants, each platform variant as<name>-<version>~<tag>.tgz.pnpm pack --variant <target>packs only the archive whose entry lists that target.pnpm pack --jsonprints theintegrityandsizeof every archive it writes.
- New
- New
pnpm peers checknow accepts--global(-g) to check globally installed packages. After a global install or update, the peer dependency warning now suggestspnpm peers check -g#17504. - New
pnpm outdatedandpnpm updatenow inspect and update package manager and runtime versions indevEngines.packageManager,packageManager,devEngines.runtime,engines.runtime, andruntime:dependencies. Withcargo.enabledorpython.enabled,pnpm outdatedandpnpm updatealso inspect and update Cargo dependencies inCargo.tomlandCargo.lockand Python dependencies inpyproject.tomlandpylock.toml. - New
overridesselectors now support:prod,:optional, and:peerpseudo-selectors that target a single dependency group. They also support*wildcard patterns on parent and target package names. An override with a non-range value, such asnpm:orfile:, no longer adds a peer dependency todependencies. Removing an optional dependency with"-"now also removes the duplicate entry fromdependencies#5391. - Fixed
Files that pnpm creates in a project now get the permissions the umask gives any new file, such as
0644. Before, several of them were readable only by the user who ran pnpm, which broke Docker images that run as a different user #17435.
- New
- Fixed
pnpm installno longer hangs on a cold store in a workspace that also installs Cargo crates or a Rust toolchain. - Fixed
pnpm packandpnpm publishnow apply afilesentry that names a file after the glob and directory entries, as npm does. A file excluded by name, such as!dist/index.js, stays out even when a laterdist/**matches it. A file named by its path, such aslib/secret.js, ships even when a later!lib/*.jsmatches it. - Fixed
pnpm installno longer leaves a broken symlink in an injected workspace dependency when the package links to a file outside its published files and pnpm imports by hardlink. Installing a git dependency now skips internal directory symlinks when importing its files into the store. - Fixed
pnpm installnow relinks a command that a workspace project renames into the projects that depend on it whensharedWorkspaceLockfileisfalsepnpm/tasks#224.
- Fixed
- Security
It also fixes two security issues, in zstd decompression and in signing.
- Security
Fixed memory exposure and allocation handling vulnerabilities when processing zstd-compressed data #17388.
- Security
Signing in pnpm and pnpr no longer uses arithmetic that may leak the private key through timing. This covers shared artifacts, OCI registry tokens, and OIDC login state advisory.
- New
Added a repeatable global
--env-file <path>flag to load environment variables from dotenv-style files before running a command. Later files override earlier files, variables already in the environment are preserved, and loaded variables are visible to user-level.npmrcinterpolation and lifecycle scripts #7111.
- Security
- Security
Pnpm now fails with
ERR_PNPM_REGISTRY_NAME_MISMATCHif a registry returns metadata for a package other than the one requested. Before, pnpm installed the package under the name in the metadata, soallowBuildsrules for the requested package did not apply to it. - Security
minimumReleaseAgeExcludePruneandtrustPolicyExcludePrunenow keep exclusions for resolved configuration dependencies and their transitive dependencies #17142. - New
pnpm-workspace.yamlcan now delegate settings to other YAML files and to config dependencies through a newincludefield. Each source may define only the settings the root manifest delegates to it. Every setting has one owner. Commands that change settings write each one to the file that owns it. A relative path in an included file is relative to that file. See Splitting Settings Across Files. - New
Added the
lockfile.integrityTargetsetting. WithintegrityTarget: tar,pnpm-lock.yamlpins the hash of every package's uncompressed tar, so the lockfile no longer changes when a registry recompresses its tarballs or serves them as tars. pnpm learns a version's tar hash from the store or by downloading it once.pnpm audit signaturesties the tar hash to the signed.tgzintegrity.
- Security
27 other lines we could not sort, mostly version bumps
- 11.29.0
pnpmignores local.pnpmfile.cjshooks and project.npmrcproxy or TLS settings in the working directory. - 11.29.0
Running with
--ignore-scriptsorignoreScripts: trueuses a separatedlxcache key, keeping cached installs that skipped build scripts separate from normal runs. - 11.29.0
Relative local directory and tarball specifiers such as
./my-cliand./my-cli.tgzresolve against the caller's working directory. - 11.29.0
Explicitly requested tarball URL,
file:, and git URL packages run their build scripts by default unless--ignore-scriptsor a negated--allow-buildselector disables them. - 11.28.3
pnpm add,pnpm install, andpnpm import, for dependencies, peer dependencies, andfile:dependencies that point to a directory namedconstructor. - 11.28.3
Catalog entries and catalog names. Pruning unused entries crashed, and a new catalog named
toStringwas not written. - 11.28.3
Workspace projects, project directories, and files inside injected packages.
- 11.28.3
Registry prefixes and override version references such as
$toString. - 11.28.3
Hoisting,
pnpm list, andpnpm why. - 11.28.3
Command names.
pnpm constructorruns theconstructorscript like any other unknown command, andpnpm help constructorno longer crashes.
8 internal lines (docs, tests, tooling) left out.
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.