pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 10.33.4 to 10.34.0
1 release in betweenevery note read
- 0
- changes to make
- 5
- advisories fixed
- 1
- new
- 6
- fixes
Security
12 advisories still affect 10.34.0
- 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: Manifest identity spoof satisfies allowBuilds and runs attacker lifecyclehigh · GHSA-5wx6-mg75-v57r
Upgrading to 10.34.5 clears them.
Fixes 5 advisories affecting 10.33.4
- pnpm: Unsafe default behavior breaks integrity checkmoderate · GHSA-54hh-g5mx-jqcp
- pnpm binds unscoped user-level npm auth credentials to a repository-selected registrymoderate · GHSA-cjhr-43r9-cfmw
- 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 Vulnerable to Arbitrary File Write/Delete via Malicious Patch File (Path Traversal)high · GHSA-rxhj-4m44-96r4
Release by release
- New
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. - Fixed
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
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. - Fixed
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. - Fixed
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
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. - Fixed
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.
- 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.