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

Published Apr 27, 2026
·
Updated

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.

Other sources

pip self-update functionality can import newly installed modules after wheel installation

Microsoft

Affected Software

4 affected componentsFixes available
pypi/pip<26.1
Microsoft azl3 python-pip 24.2-6
Microsoft azl3 python-virtualenv 20.36.1-2
Microsoft azl3 python-pip 24.2-8

Event History

Apr 27, 2026
CVE Published
via MITRE·02:19 PM
Data Sourced
via MITRE·02:19 PM
Description
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Apr 30, 2026
Data Sourced
via Microsoft·08:10 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:10 AM
Affected Software
Updated
via Microsoft·08:10 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2026-6357?

CVE-2026-6357 is rated as a moderate severity vulnerability due to its potential risk of executing arbitrary code through unverified module imports after a wheel installation.

2

How do I fix CVE-2026-6357?

To fix CVE-2026-6357, upgrade pip to version 26.1 or later to ensure that self-update functionality no longer imports new modules during wheel installations.

3

What causes CVE-2026-6357?

CVE-2026-6357 is caused by pip's self-update feature which inadvertently imports potentially unverified modules after installing wheel files in versions prior to 26.1.

4

In which versions of pip does CVE-2026-6357 exist?

CVE-2026-6357 affects pip versions prior to 26.1.

5

What impact does CVE-2026-6357 have on users?

CVE-2026-6357 can lead to unauthorized module imports, potentially allowing attackers to execute arbitrary Python code on systems using affected pip versions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203