# CVE-2026-6357: pip self-update functionality can import newly installed modules after wheel installation

- Severity: Medium 5.3 (CVSS:4.0, scored by PSF) `CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-04-27T14:19:47.657Z
- Modified: 2026-09-10T03:50:44.656Z
- Also known as: GHSA-jp4c-xjxw-mgf9, PYSEC-2026-2876
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## Description

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.

(As written by CVE List.)

## Affected

- pip: before 26.1
- pip (PyPI): before 26.1

## Every score

- PSF: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/pypa/pip/pull/13923> (patch, web)
- <https://ichard26.github.io/blog/2026/04/whats-new-in-pip-26.1/#security-fixes> (vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2026/04/27/7> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6357> (advisory)
- <https://github.com/pypa/pip/commit/b369bfc96cc524e00c267e1693290e6599c36bad> (web)
- <https://github.com/pypa/pip> (package)
- <https://pypi.org/project/pip> (package)
- <https://github.com/advisories/GHSA-jp4c-xjxw-mgf9> (advisory)

## Sources

- CVE List: [CVE-2026-6357](https://www.cve.org/CVERecord?id=CVE-2026-6357), CVE Terms of Use, modified 2026-04-27
- GitHub Advisory Database: [GHSA-jp4c-xjxw-mgf9](https://github.com/advisories/GHSA-jp4c-xjxw-mgf9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-6357](https://nvd.nist.gov/vuln/detail/CVE-2026-6357), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2876](https://osv.dev/vulnerability/PYSEC-2026-2876), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-6357 · Whole record: https://cve.day/CVE-2026-6357.json · Rebuilt by cve.day 2026-11-25T22:59:19.664Z
