pnpm 12.23 stops reading otp from config files after a repository could leak a token
pnpm 12.23 was released on 22 November with two security fixes at the top of its notes. pnpm no longer reads the otp setting from any configuration file; a one-time password must be passed with --otp or the PNPM_CONFIG_OTP environment variable, and an otp entry in pnpm-workspace.yaml or a global config.yaml is ignored with a warning. The notes explain the hole this closes: a repository could write otp set to an environment variable such as NPM_TOKEN next to its own registry setting, and pnpm publish would send that variable to the registry the same file named, in the npm-otp header of its first request.
The second fix concerns transport. pnpm now sends registry credentials only over HTTPS or loopback HTTP, for tarball downloads and for requests to pnprServer, respects registry credential paths on redirects, and no longer lets a failed tarball request pin its redirect target in the lockfile. A bundled copy of picomatch is also patched for an advisory in which certain repeated wildcards could hang on long paths.
The release removes platform variants: a package version has one archive again, and packages that shipped per-platform builds as variants must publish them as separate packages listed in optionalDependencies. A frozen install of a lockfile that records variants fails until pnpm install resolves it again. New commands include pnpm edit, which opens an installed package directory in an editor, pnpm catalog migrate, which moves identical dependency specifiers into the default catalog, and a --hard option for pnpm link.

Why it matters
The otp fix treats a repository's own configuration as untrusted input that must not decide where a secret goes. Teams that set otp in a config file will see publishing stop working until they move it to the command line or the environment.