PT-2026-52518 · Pnpm · Pnpm

·

CVE-2026-50573

·

Published

2026-06-25

·

Updated

2026-07-30

CVSS v3.1

8.1

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions pnpm versions prior to 10.34.0 pnpm versions prior to 11.4.0
Description In non-frozen mode, pnpm install may accept new remote package content even after detecting that the downloaded tarball does not match the integrity recorded in pnpm-lock.yaml. If a registry serves different metadata and tarball content for a package name and version already locked with an integrity value, pnpm reports an integrity mismatch but then performs a resolution repair. This process accepts the new integrity from the registry, updates the lockfile, installs the new content, and exits successfully, meaning the lockfile integrity check does not act as a hard stop by default.
This behavior can be exploited if a registry is compromised or if a registry mirror/proxy serves mutated package content. In such cases, a new environment (such as a new machine or a new team member onboarding) may install a malicious replacement package despite the presence of a lockfile with the original integrity.
Recommendations Update pnpm to version 10.34.0 or later. Update pnpm to version 11.4.0 or later. As a temporary mitigation, use the --frozen-lockfile flag during installation to ensure the process fails if an integrity mismatch is detected.

Exploit

Fix

Insufficient Verification of Data Authenticity

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-50573
GHSA-54HH-G5MX-JQCP

Affected Products

Pnpm