Integrity Verification Bypass in pnpm Package Manager
CVE-2026-50021
What is CVE-2026-50021?
pnpm is a popular package manager, but earlier versions (prior to 10.34.0 and 11.4.0) exhibit a serious flaw where the tarball extraction worker does not perform integrity verification if the integrity field is missing from the lockfile. This issue allows an attacker to manipulate the pnpm-lock.yaml file to remove the integrity field, potentially serving malicious package content from a compromised registry URL. As a result, executing pnpm install with the --frozen-lockfile option could result in the installation of altered packages without any integrity check, leading to potential security breaches. This vulnerability highlights a critical oversight in pnpm's verification mechanisms, differentiating it from npm, which enforces integrity checks by default.
Affected Version(s)
pnpm < 10.34.0 < 10.34.0
pnpm >= 11.0.0, < 11.4.0 < 11.0.0, 11.4.0
