pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
9.15.9 is the newest release of 9.x.
In short
5 breaking9 new5 fixed7 changed
- Breaking
Node.js v16 and 17 support discontinued
- Breaking
Corepack compatiblity:
- Breaking
pnpm licenses listprints license information of all versions of the same package in case different versions use different licenses. The format of thepnpm licenses list --jsonoutput has been changed #7528. - Breaking
A new command added for printing completion code to the console:
pnpm completion [shell]. The old command that modified the user's shell dotfiles has been removed #3083. - Breaking
When installing git-hosted dependencies, only pick the files that would be packed with the package #7638.
Security
26 advisories affect 9.0.0; 10.34.5 fixes the others
- Highpnpm: Virtual store linker path traversal via unvalidated depPath name in lockfileToDepGraphGHSA-c59q-g84q-2gj5 · 2 Sep 2026Fixed in 10.34.5
- Highpnpm: A tarball dependency's manifest `name` escapes node_modules → arbitrary file write/overwrite on installGHSA-vq4v-j7r6-jq4m · 2 Sep 2026Fixed in 10.34.5
- Highpnpm: Path traversal in configDependencies env lockfile allows symlink creation outside node_modules/.pnpm-configGHSA-qrv3-253h-g69c · 27 Jun 2026Fixed in 10.34.4
- Highpnpm: `patch-remove` could delete project-selected files outside the patches directoryGHSA-72r4-9c5j-mj57 · 27 Jun 2026Fixed in 10.34.4
- Highpnpm: Hoisted install imports lockfile alias outside node_modulesGHSA-fr4h-3cph-29xv · 27 Jun 2026Fixed in 10.34.4
21 more
- Highpnpm: Project env lockfile can short-circuit package-manager resolution and execute lockfile-selected pnpm bytesGHSA-w466-c33r-3gjp · 26 Jun 2026Fixed in 10.34.2
- Highpnpm: Repository-controlled configDependencies can select a pacquet native install engineGHSA-gj8w-mvpf-x27x · 26 Jun 2026Fixed in 10.34.2
- Highpnpm: Manifest identity spoof satisfies allowBuilds and runs attacker lifecycleGHSA-5wx6-mg75-v57r · 26 Jun 2026Fixed in 10.34.2
- Highpnpm Vulnerable to Arbitrary File Write/Delete via Malicious Patch File (Path Traversal)GHSA-rxhj-4m44-96r4 · 26 Jun 2026Fixed in 10.34.0
- Highpnpm: Transitive dependency alias path traversal allows project path override via symlink replacementGHSA-hwx4-2j3j-g496 · 26 Jun 2026Fixed in 10.34.0
- Highpnpm Has Lockfile Integrity Bypass that Allows Remote Dynamic DependenciesGHSA-7vhp-vf5g-r2fw · 7 Jan 2026Fixed in 10.26.0
- Highpnpm vulnerable to Command Injection via environment variable substitutionGHSA-2phv-j68v-wwqx · 7 Jan 2026Fixed in 10.27.0
- Moderatepnpm: Reserved bin name deletes PNPM_HOME during global removeGHSA-4gxm-v5v7-fqc4 · 26 Jun 2026Fixed in 10.34.2
- Moderatepnpm: Repository config can expand victim environment secrets into registry requests before scripts runGHSA-3qhv-2rgh-x77r · 26 Jun 2026Fixed in 10.34.2
- Moderatepnpm binds unscoped user-level npm auth credentials to a repository-selected registryGHSA-cjhr-43r9-cfmw · 26 Jun 2026Fixed in 10.34.0
- Moderatepnpm: Git Fetch Argument Injection via Lockfile resolution.commitGHSA-p4xf-rf54-rj3x · 26 Jun 2026Fixed in 10.34.0
- Moderatepnpm Has an Integrity Check Bypass via Missing Lockfile Integrity FieldGHSA-q6j5-fjx5-2mc3 · 26 Jun 2026Fixed in 10.34.1
- Moderatepnpm: Unsafe default behavior breaks integrity checkGHSA-54hh-g5mx-jqcp · 26 Jun 2026Fixed in 10.34.0
- Moderatepnpm: Tarball hash of GitHub git dependencies is not stored in lockfileGHSA-hg3w-7f8c-63hp · 26 Jun 2026Fixed in 10.33.4
- Moderatepnpm has Path Traversal via arbitrary file permission modification GHSA-v253-rj99-jwpq · 26 Jan 2026Fixed in 10.28.2
- Moderatepnpm: Binary ZIP extraction allows arbitrary file write via path traversal (Zip Slip)GHSA-6pfh-p556-v868 · 26 Jan 2026Fixed in 10.28.1
- Moderatepnpm has Windows-specific tarball Path TraversalGHSA-6x96-7vc8-cm3p · 26 Jan 2026Fixed in 10.28.1
- Moderatepnpm scoped bin name Path Traversal allows arbitrary file creation outside node_modules/.binGHSA-xpqm-wm3m-f34h · 26 Jan 2026Fixed in 10.28.1
- Moderatepnpm has symlink traversal in file:/git dependenciesGHSA-m733-5w8f-5ggw · 26 Jan 2026Fixed in 10.28.2
- Moderatepnpm uses the md5 path shortening function causes packet paths to coincide, which causes indirect packet overwritingGHSA-8cc4-rfj6-fhg4 · 23 Apr 2025No fix yet
- Moderatepnpm no-script global cache poisoning via overrides / `ignore-scripts` evasionGHSA-vm32-9rqf-rh3r · 10 Dec 2024Fixed in 9.15.0
Release note
Major Changes
- Breaking
Node.js v16 and 17 support discontinued
If you still require Node.js 16 or 17, don't worry. We ship pnpm bundled with Node.js. This means that regardless of which Node.js version you've installed, pnpm will operate using the necessary Node.js runtime. For this to work you need to install pnpm either using the standalone script or install the
@pnpm/exepackage. - Breaking
Corepack compatiblity:
pnpm will now check the
package.jsonfile for apackageManagerfield. If this field is present and specifies a different package manager or a different version of pnpm than the one you're currently using, pnpm will not proceed. This ensures that you're always using the correct package manager and version that the project requires.NOTE: If you want to make this check less strict, set the
package-manager-strictsetting tofalseor theCOREPACK_ENABLE_STRICTenv variable to0. - Breaking
Configuration updates:
dedupe-injected-deps: enabled by default.link-workspace-packages: disabled by default. This means that by default, dependencies will be linked from workspace packages only when they are specified using the workspace protocol.hoist-workspace-packages: enabled by default.enable-pre-post-scripts: enabled by default.Use the same directory for state files on macOS as on Linux (
~/.local/state/pnpm).
- Breaking
Lockfile changes:
Lockfile v9 is adopted. This new format has changes for better readability, and better resistence to Git conflicts.
Support for lockfile v5 is dropped. Use pnpm v8 to convert lockfile v5 to lockfile v6 #7470.
- Breaking
Dependency resolution changes:
- Breaking
pnpm licenses listprints license information of all versions of the same package in case different versions use different licenses. The format of thepnpm licenses list --jsonoutput has been changed #7528. - Breaking
A new command added for printing completion code to the console:
pnpm completion [shell]. The old command that modified the user's shell dotfiles has been removed #3083. - Breaking
When installing git-hosted dependencies, only pick the files that would be packed with the package #7638.
Minor Changes
It is now possible to install only a subdirectory from a Git repository.
For example,
pnpm add github:user/repo#path:packages/foowill add a dependency from thepackages/foosubdirectory.This new parameter may be combined with other supported parameters separated by
&. For instance, the next command will install the same package from thedevbranch:pnpm add github:user/repo#dev&path:packages/bar.node-gypupdated to version 10.PowerShell completion support added #7597.
Support
node-optionsoption inside.npmrcfile when running scripts #7596.Added support for registry-scoped SSL configurations (cert, key, and ca). Three new settings supported:
<registryURL>:certfile,<registryURL>:keyfile, and<registryURL>:ca. For instance://registry.mycomp.com/:certfile=server-cert.pem //registry.mycomp.com/:keyfile=server-key.pem //registry.mycomp.com/:cafile=client-cert.pem
Add a field named
ignoredOptionalDependencies. This is an array of strings. If an optional dependency has its name included in this array, it will be skipped #7714.The checksum of the
.pnpmfile.cjsis saved into the lockfile. If the pnpmfile gets modified, the lockfile is reanalyzed to apply the changes #7662.Added cache for
pnpm dlx#5277.
Patch Changes
Package tarballs are not downloaded during
--lockfile-onlyinstallation #1328.Peer dependency rules should only affect reporting, not data in the lockfile #7758.
Link overrides should be able to use absolute path #7749.
pnpm dlxshould not read settings from the current working directory #7916.
Our Silver Sponsors
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.