CVE-2026-50021
Undergoing Analysis Undergoing Analysis - In Progress
Integrity Check Bypass in pnpm Package Manager

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: GitHub, Inc.

Description
pnpm is a package manager. Prior to 10.34.0 and 11.4.0, 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. This vulnerability is fixed in 10.34.0 and 11.4.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-06-26
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
pnpm pnpm to 11.4.0 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-354 The product does not validate or incorrectly validates the integrity check values or "checksums" of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The CVE-2026-50021 vulnerability in pnpm occurs because the tarball extraction worker skips integrity verification if the integrity field is missing from the lockfile resolution. This means that if an attacker can modify the pnpm-lock.yaml file to remove the integrity field and also cause the registry URL to serve altered package content, pnpm can install the tampered package without detecting any integrity error, even when using the --frozen-lockfile flag.

This issue arises from a flaw in the addTarballToStore function, which only performs integrity checks if the integrity field exists, leading to a fail-open scenario specific to pnpm.

Impact Analysis

This vulnerability can lead to a supply chain compromise where an attacker is able to install altered or malicious packages without detection. This can result in unauthorized code execution or data compromise because the integrity verification step is bypassed.

The severity is rated as Moderate with a CVSS score of 6.8, indicating high potential impacts on confidentiality and integrity of the affected systems.

Detection Guidance

Detection of this vulnerability involves checking if the pnpm-lock.yaml file has missing integrity fields in its lockfile resolutions. Specifically, look for entries where the integrity field is absent, which indicates the system might be vulnerable to integrity check bypass.

Additionally, monitoring for unexpected modifications to the pnpm-lock.yaml file or unusual package content served from the registry can help detect exploitation attempts.

While no explicit commands are provided in the resources, a practical approach includes using text search commands to find missing integrity fields, for example:

  • grep -L 'integrity:' pnpm-lock.yaml
  • grep -B 3 -A 3 'resolution' pnpm-lock.yaml | grep -v 'integrity:'

Also, verifying the pnpm version installed can help identify if the system is running a vulnerable version (prior to 10.34.0 or 11.4.0):

  • pnpm --version
Mitigation Strategies

To mitigate this vulnerability, immediately upgrade pnpm to version 10.34.0 or later, or 11.4.0 or later, where the integrity verification logic has been fixed to require integrity fields and fail when they are absent.

Ensure that your pnpm-lock.yaml files include the integrity field for all package resolutions to prevent silent skipping of integrity checks.

Avoid using the --frozen-lockfile flag with vulnerable versions, as it does not enforce integrity verification in this context.

Additionally, monitor and restrict access to your package registry and lockfiles to prevent unauthorized modifications that could exploit this vulnerability.

Compliance Impact

The vulnerability in pnpm allows an attacker to bypass integrity verification and install tampered packages, potentially leading to supply chain compromise. This can result in unauthorized modification of software components, which may impact the confidentiality and integrity of systems relying on pnpm.

Such impacts on confidentiality and integrity could affect compliance with standards and regulations like GDPR and HIPAA, which require protection of data integrity and confidentiality. However, the provided information does not explicitly state the direct effects on compliance with these regulations.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-50021. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart