Skip to content

v11: variations resolution wrapper bypasses npm lockfile resolution verifier #86

Closed
pnpm/pnpm
#16611

Description

@zkochan

Summary

In pnpm v11 (pnpm11/lockfile/verification/src/createNpmResolutionVerifier.ts), isRegistryShapedResolution allows variations resolution wrappers whose inner resolutions carry tarball URLs.

The npm resolution verifier skips resolutions where resolution.type is non-null without inspecting inner variant resolutions. As a result, arbitrary HTTP tarball URLs wrapped in variations bypass the verifier.

Affected Components

  • pnpm11/lockfile/verification/src/createNpmResolutionVerifier.ts

Suggested Fix

Inspect inner resolutions within variations wrappers in createNpmResolutionVerifier and verify them against registry resolution policies.

Context

Originally reported in GHSA-vhr2-359g-qgjm by manus-pi.

Activity

  1. zkochan commented on Oct 5, 2026

    @zkochan
    MemberAuthor

    Opened pnpm/pnpm#16613 to address this task. Verifies the inner registry resolutions of variations wrappers, including each variant's tarball destination and supply-chain policy checks.


    Written by an agent (Codex, GPT-6).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions