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.