pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 11.1.1 to 11.29.0
51 releases in betweenevery note read
Start here
Before you upgrade
Tick each one off as you go- Breaking11.28.12
- Breaking11.28.1
- Breaking11.22.0
- Breaking11.12.0
- Breaking11.7.0
- Deprecated11.23.0
- Deprecated11.23.0
- Deprecated11.23.0
Security
Fixes 17 advisories affecting 11.1.1
- 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: 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
- 11.29.0
This release carries several security fixes.
- 11.29.0
pnpm installnow rejects local filesystem dependencies (file:,link:, and path-basedworkspace:specifiers) declared by non-local packages withERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED. Relativefile:dependencies inside a package's own archive and local dependencies configured by the workspace throughoverrides,packageExtensions, or.pnpmfile.cjscontinue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots. - 11.29.0
pnpm installandpnpm install --frozen-lockfilenow enforceblockExoticSubdepsagainst entries inpnpm-lock.yaml. Before, pnpm accepted a lockfile with git or tarball URL subdependencies and installed those packages even withblockExoticSubdeps: true. - 11.29.0
Tarball downloads send registry credentials only over HTTPS or loopback HTTP. Tarball and package metadata requests respect registry credential paths on redirects. A failed tarball request can no longer pin its redirect destination in the lockfile.
- 11.29.0
Tarball URL preflight requests use the configured credentials and fetch retry settings.
- 11.29.0
TLS file paths in
.npmrcandauth.iniresolve relative to the file that declares them. Project.npmrcfiles skip TLS file paths containing environment variables. - 11.29.0
Global commands (
--global,-g) no longer load.pnpmfile.cjs,pnpm-workspace.yaml, or.npmrcfrom the current working directory.pnpm why -gnow inspects globally installed packages. - 11.29.0
pnpm approve-buildsnow requires the exact selector shown bypnpm ignored-buildsfor a dependency a bare package name cannot identify (afile:, git, or tarball artifact). A bare package name only approves a plain registry version #18237. - 11.29.0
pnpm packandpnpm publishnow rejectpublishConfig.directoryvalues that use an absolute path or..segments outside the package directory. - 11.29.0
pnpm installwithpnprServernow rejects registry-keyed lockfile entries whose resolution uses a non-registry source withERR_PNPM_RESOLUTION_SHAPE_MISMATCH. Thepnprlockfile verification and resolution endpoints enforce the same check before accepting or caching a lockfile.
Release by release
- Security
This release carries several security fixes.
- Security
pnpm installnow rejects local filesystem dependencies (file:,link:, and path-basedworkspace:specifiers) declared by non-local packages withERR_PNPM_LOCAL_SUBDEP_NOT_ALLOWED. Relativefile:dependencies inside a package's own archive and local dependencies configured by the workspace throughoverrides,packageExtensions, or.pnpmfile.cjscontinue to work. Lockfile verification also rejects unauthorized local directory, tarball, and link entries on non-importer snapshots. - Security
pnpm installandpnpm install --frozen-lockfilenow enforceblockExoticSubdepsagainst entries inpnpm-lock.yaml. Before, pnpm accepted a lockfile with git or tarball URL subdependencies and installed those packages even withblockExoticSubdeps: true. - Security
Tarball downloads send registry credentials only over HTTPS or loopback HTTP. Tarball and package metadata requests respect registry credential paths on redirects. A failed tarball request can no longer pin its redirect destination in the lockfile.
- Security
- Security
pnpm 11.28.13 includes a security fix.
- Security
pnpm installnow re-verifies lockfile resolutions when the default registry or a scoped registry changes. Before, it reused the result cached for the previous registry and skipped theminimumReleaseAgeandtrustPolicychecks against the new one #18070. - Security
pnpm dlxnow keys its cache on activeoverrides,packageExtensions,minimumReleaseAge,trustPolicy,trustLockfile, andblockExoticSubdepssettings. Cached installs created under looser settings are no longer reused when stricter policies apply #18075. - Security
pnpm auditnow reports advisories whoseidis a string. Such advisories were dropped, andpnpm auditreported no known vulnerabilities #18184.
- Security
- Security
It also includes a security fix.
- Security
A
${VAR}placeholder in a registry URL inpnpm-workspace.yamlor the project.npmrcnow fails the command. pnpm does not expand environment variables in these files. Before, pnpm ignored such a URL and resolved packages from another registry, such as npmjs.org. pnpm now warns when it ignores a placeholder in a proxy,pnprServer, oruserAgentsetting inpnpm-workspace.yaml#17762. - Security
Remote resolution and shared build caches 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. Upgrade the pnpr server before upgrading pnpm. - 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.
- Security
- Fixed
pnpm deploynow keeps a symlink in the project whose target is missing from the source, such as a link into anode_modulesdirectory that was removed after the build. Deploy used to fail withENOENTon such a link #17571. - Fixed
A package with
bundledDependenciesand a build script now keeps its bundled dependencies when it is restored from the side-effects cache #17523. - Fixed
pnpm installnow links the runtime that an earlierpnpm install --no-runtimeskipped #17542. - Fixed
Commands of a package whose
binpaths contain excess parent directory segments, such as../dist/cli.js, are no longer missing. Such paths now resolve inside the package #17586.
- Fixed
- Fixed
pnpm store prunepreserves other stores and global package data whencacheDirpoints to their parent directory. - Fixed
Commands installed with
pnpm add --globalnow find the dependencies that pnpm hoists for their package. A package that loads a dependency it does not declare, such as a native addon's platform-specific package, failed with "Cannot find module". Reinstall such a package withpnpm add --globalto update its existing command #17503. - Fixed
pnpm prune --prodno longer fails withERR_PNPM_EXDEVwhennode_moduleswas copied from an earlier Docker build stage #17424. - Fixed
pnpm installnow retries a Node.js runtime zip download when the connection drops partway through. A download that still fails names its URL. Before, a single dropped connection ended the install withterminated#17411.
- Fixed
- Security
This release fixes a crash on registry responses with too many content encodings (GHSA-xjj6-f33q-929c) and sizes the install worker pool by the container's CPU quota.
- Security
A registry response with too many content encodings can no longer crash pnpm. pnpm now uses undici 7.30.1, which fixes GHSA-xjj6-f33q-929c.
- Security
pnpm installnow sizes its worker pool by the CPU quota of the container it runs in, such as a Kubernetes CPU limit, when that quota is smaller than the number of CPUs the container may run on. The defaultworkspaceConcurrencyrespects the quota the same way. On a CI runner with a 4-CPU quota and hundreds of host CPUs, pnpm started hundreds of workers and ran out of memory #17382. - New
Added the
pnprvalue to theserverTyperegistry setting. pnpm leaves the tarball URLs of a pnpr registry out ofpnpm-lock.yaml.
- 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
Pnpm now applies
trustPolicyto the pnpm version a project pins inpackageManagerordevEngines.packageManager. A pinned version whose trust evidence was downgraded fails the command before pnpm switches to it or records it in the lockfile #16319. - Security
minimumReleaseAgeExcludePruneandtrustPolicyExcludePrunenow keep exclusions for resolved configuration dependencies and their transitive dependencies #17142. - Security
Added the
maxTarballUnpackedSizesetting.pnpm installfails withERR_PNPM_TARBALL_TOO_LARGEwhen the files of one package unpack to more than this many bytes, 4 GiB by default pnpm/tasks#81.
- 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.
6 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.