pnpm
12.21.0 · 13 Nov 2026MIT358.4M / weekRepositoryHomepagenpmAtom feed
Upgrading pnpm From 12.21.0 to 12.23.0
2 releases in betweenevery note read
Security
- 12.23.0
It also carries security fixes: pnpm no longer reads
otpfrom config files, and it sends registry credentials only over HTTPS. - 12.23.0
otpis no longer read from any config file. Pass--otpon the command line, or setPNPM_CONFIG_OTP. Apnpm-workspace.yamlor a globalconfig.yamlthat carriesotpis ignored, with a warning naming those two channels.pnpm config set otpfails withERR_PNPM_CONFIG_SET_NOT_A_FILE_SETTING. - 12.23.0
Pnpm now sends registry credentials only over HTTPS or loopback HTTP, both for tarball downloads and for requests to
pnprServer. 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. - 12.23.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. - 12.23.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. - 12.23.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. - 12.23.0
pnpm dlx,pnx, andpnpm createnow ignore local configuration in the working directory. This covers.pnpmfile.cjshooks, proxy and TLS settings in the project.npmrc, and execution, layout, and resolution settings in a localpnpm-workspace.yaml, includingpnpmfile,globalPnpmfile,configDependencies,scriptShell,cacheDir,storeDir, andignoreScripts. Settings from the user's globalconfig.yaml, such asblockExoticSubdeps,cacheDir, andstoreDir, remain active. - 12.23.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. - 12.23.0
pnpm config getrefuses to print protected auth settings.pnpm config listhides TLS private keys and inline proxy credentials.pnpm config set --global tokenHelperwrites toauth.ini, and setting a project-leveltokenHelperfails. - 12.23.0
Matching a glob that repeats a wildcard, such as
+(*)zin the workspacepackagespatterns, no longer hangs on long paths. The bundled picomatch is patched for a security advisory.
Release by release
- Security
It also carries security fixes: pnpm no longer reads
otpfrom config files, and it sends registry credentials only over HTTPS. - Security
otpis no longer read from any config file. Pass--otpon the command line, or setPNPM_CONFIG_OTP. Apnpm-workspace.yamlor a globalconfig.yamlthat carriesotpis ignored, with a warning naming those two channels.pnpm config set otpfails withERR_PNPM_CONFIG_SET_NOT_A_FILE_SETTING. - Security
Pnpm now sends registry credentials only over HTTPS or loopback HTTP, both for tarball downloads and for requests to
pnprServer. 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
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
- Security
It also 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 dlxno longer reuses a cached install made under looseroverrides,packageExtensions,minimumReleaseAge,trustPolicy,trustLockfile, orblockExoticSubdepssettings. It also no longer appliesoverrides,packageExtensions, orblockExoticSubdepsfrom a localpnpm-workspace.yaml#18075. - Security
pnpm auditnow reports advisories whoseidis a string. Such advisories were dropped, andpnpm auditreported no known vulnerabilities #18184.
- Security
10 other lines we could not sort, mostly version bumps
- 12.23.0
Credentials configured for a registry path, such as
//registry.example.com/org-a/npm/:_authToken, are sent only to that path. They were sent to any path on the same host. - 12.23.0
It reads the registry and credentials from the global
auth.ini, wherepnpm loginwrites them, and from the_authsetting of the globalconfig.yaml. - 12.23.0
A
${NPM_TOKEN?}placeholder in.npmrcexpands to the variable. It expanded to an empty value, so the download was sent without credentials. - 12.23.0
It applies
injectWorkspacePackages,dedupeInjectedDeps,ignoredOptionalDependencies, anddependenciesMeta. Projects that use them no longer fail withERR_PNPM_OUTDATED_LOCKFILEorERR_PNPM_LOCKFILE_CONFIG_MISMATCH. - 12.23.0
pnpm install --update-checksumsrefreshes the integrity checksums in the lockfile. - 12.23.0
It enforces
minimumReleaseAgeStrictand adds fallback versions tominimumReleaseAgeExcludewhen strict mode is off. - 12.23.0
It resolves locally when the project declares
file:,link:, or local path dependencies, or whenblockExoticSubdepsisfalse.pnpralso rejects local filesystem dependency specifiers on/-/pnpr/v0/resolve. - 12.23.0
Running with
--ignore-scriptsorignoreScripts: trueuses a separatedlxcache key, keeping cached installs that skipped build scripts separate from normal runs. - 12.23.0
Relative local directory and tarball specifiers such as
./my-cliand./my-cli.tgzresolve against the caller's working directory. - 12.23.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.
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.