Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pip
  4. ›
  5. CVE-2026-6357

CVE-2026-6357: pip Vulnerable to Inclusion of Functionality from Untrusted Control Sphere

April 27, 2026 (updated May 5, 2026)

pip prior to version 26.1 would run self-update check functionality after installing wheel files which required importing well-known Python modules names. These module imports were intentionally deferred to increase startup time of the pip CLI. The patch changes self-update functionality to run before wheels are installed to prevent newly-installed modules from being imported shortly after the installation of a wheel package. Users should still review package contents prior to installation.

References

  • github.com/advisories/GHSA-jp4c-xjxw-mgf9
  • github.com/pypa/pip
  • github.com/pypa/pip/commit/b369bfc96cc524e00c267e1693290e6599c36bad
  • github.com/pypa/pip/pull/13923
  • ichard26.github.io/blog/2026/04/whats-new-in-pip-26.1/
  • nvd.nist.gov/vuln/detail/CVE-2026-6357

Code Behaviors & Features

Detect and mitigate CVE-2026-6357 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 →

Affected versions

All versions before 26.1

Fixed versions

  • 26.1

Solution

Upgrade to version 26.1 or above.

Impact 5.8 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-829: Inclusion of Functionality from Untrusted Control Sphere

Source file

pypi/pip/CVE-2026-6357.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:44 +0000.