pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
10.34.9 is the newest release of 10.x.
In short
1 new6 fixed
Security
Fixes 5 advisories that affected 10.33.4
- 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
- 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: Unsafe default behavior breaks integrity checkGHSA-54hh-g5mx-jqcp · 26 Jun 2026Fixed in 10.34.0
12 advisories affect 10.34.0; 10.34.5 fixes them
- 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: Environment secrets exfiltrated via env-placeholder expansion in proxy settings read from an untrusted pnpm-workspace.yamlGHSA-vx52-2968-3vc6 · 1 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
7 more
- Highpnpm: Hoisted install imports lockfile alias outside node_modulesGHSA-fr4h-3cph-29xv · 27 Jun 2026Fixed in 10.34.4
- 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
- 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 Has an Integrity Check Bypass via Missing Lockfile Integrity FieldGHSA-q6j5-fjx5-2mc3 · 26 Jun 2026Fixed in 10.34.1
Release note
Minor Changes
Treat tarball-integrity mismatches against the lockfile as a hard failure by default. Previously,
pnpm install(non-frozen) would logERR_PNPM_TARBALL_INTEGRITY, silently re-resolve from the registry, and overwrite the locked integrity — which meant a compromised registry, proxy, or republished version could substitute attacker-controlled content on a clean machine even though the project shipped a committed lockfile.pnpm installnow exits withERR_PNPM_TARBALL_INTEGRITYand a hint pointing at the new opt-in flag.The only opt-in is
pnpm install --update-checksums— narrowly scoped to refreshing the locked integrity values from what the registry currently serves. Mirrors yarn's flag of the same name. A warning still prints when the bypass takes effect so the operation is auditable.--forceandpnpm updatedeliberately do not bypass the integrity check. They are routine refresh operations; silently overwriting a locked integrity in those flows would erase the protection a committed lockfile is supposed to provide.--frozen-lockfilebehavior is unchanged.--fix-lockfilekeeps its documented purpose (filling in missing lockfile entries) and is also not a bypass.
Patch Changes
Pin unscoped per-registry settings (
_authToken,_auth,username/_password,tokenHelper, inlinecert/key) to the registry declared in the same config source at load time, so a later layer overridingregistry=(workspace.npmrc,pnpm-workspace.yaml, CLI--registry) cannot redirect a credential or client certificate authored for a different host. A deprecation warning is emitted whenever an unscoped per-registry setting is encountered, naming the source and the URL it was pinned to. Reported by JUNYI LIU.Fixed
minimumReleaseAgehandling when cached metadata is abbreviated. The npm registry returns abbreviated package metadata (without the per-versiontimefield) by default, which made the maturity check throwERR_PNPM_MISSING_TIMEwhenever cached abbreviated metadata was reused. pnpm now upgrades cached abbreviated metadata to the full document via a follow-up fetch whenminimumReleaseAgeis active, persists the upgrade to the on-disk cache so subsequent installs skip the extra fetch, and letsERR_PNPM_MISSING_TIMEfrom the cache fast-path fall through to the network fetch even under strict mode.Reject git resolutions whose
commitfield is not a 40-character hexadecimal SHA before invokinggit. A malicious lockfile could otherwise smuggle a value such as--upload-pack=<command>throughgit fetch/git checkout, which on SSH or local-file transports executes the supplied command.Reject patch files whose
diff --githeaders reference paths outside the patched package directory. Previously a malicious.patchfile added via a pull request could write, delete, or rename arbitrary files reachable by the user runningpnpm install.Fixed
--prefix=<dir>not being honored when locating the workspace root. The--prefix → dirrename was applied after workspace detection, so workspace settings declared in<dir>/pnpm-workspace.yamlwere not loaded when pnpm was invoked from outside<dir>#11535.Reject dependency aliases that contain path-traversal segments (such as
@x/../../../../../.git/hooks) when reading them from a package manifest or symlinking them intonode_modules. A malicious registry package could otherwise use a transitive dependency key to makepnpm installcreate symlinks at attacker-chosen paths outside the intendednode_modulesdirectory.
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.