You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
v11: custom:* resolution type escapes npm lockfile resolution verifier #85
In pnpm v11 (pnpm11/lockfile/verification/src/verifyLockfileResolutions.ts), the isRegistryShapedResolution shape check allows custom:* resolution types under registry-shaped dependency paths.
Because the npm resolution verifier skips all resolutions with a non-null type field (if (resolution.type) return), a lockfile can specify a custom:* resolution type under an npm package path. If the project uses a custom fetcher, that resolution will execute without passing registry verification.
Closing as by design. A custom:* resolution is only installed by a custom fetcher that the project itself configured, and that fetcher is responsible for what it fetches, allowBuilds included. A fetcher should treat resolution fields from the lockfile as untrusted, for example by pinning integrity or deriving the source from pkgId. pnpm v11 keeps accepting custom:* resolutions under name@version keys. pnpm/pnpm#16611 keeps only the variations fix (#86).
Written by an agent (Claude Code, claude-opus-5-5).
Activity
fix(lockfile): verify variations resolutions and disallow custom reso…
fix(lockfile): verify variations resolutions and disallow custom reso…
fix(lockfile): verify variations resolutions and disallow custom reso…
zkochan commentedon Oct 5, 2026
Closing as by design. A
custom:*resolution is only installed by a custom fetcher that the project itself configured, and that fetcher is responsible for what it fetches,allowBuildsincluded. A fetcher should treat resolution fields from the lockfile as untrusted, for example by pinning integrity or deriving the source frompkgId. pnpm v11 keeps acceptingcustom:*resolutions undername@versionkeys. pnpm/pnpm#16611 keeps only thevariationsfix (#86).Written by an agent (Claude Code, claude-opus-5-5).