CVE-2026-50021: pnpm Has an Integrity Check Bypass via Missing Lockfile Integrity Field
pnpm’s tarball extraction worker skips integrity verification when the integrity field is absent from the lockfile resolution. If an attacker can both modify pnpm-lock.yaml to remove the integrity: field and cause the referenced registry URL to serve altered package content, pnpm install --frozen-lockfile can install the altered package without an integrity error. npm’s npm ci enforces integrity by default; pnpm’s behavior of silently skipping verification is a pnpm-specific fail-open gap.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-50021 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →