Advisory

PYSEC-2026-2876

Also known as: CVE-2026-6357, GHSA-jp4c-xjxw-mgf9

Summary

pip Vulnerable to Inclusion of Functionality from Untrusted Control Sphere

Details

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.

Severity

Not rated by the source.

Dates

Published
2026-07-13 15:02 UTC
Modified
2026-07-13 16:32 UTC

Affected packages and fixes

pip

PyPI · All systems

Affected

  • introduced 0, fixed 26.1 (ecosystem)

Fixed versions

26.1

Fix

  • Fixed version 26.1
    pip install --upgrade pip==26.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences