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

17 affected componentsFixes available
pypi/pip<26.1
IBM DataStage on Cloud Pak for Data<=5.4.0.0
pip/pip<26.1
26.1
debian/python-pip<=23.0.1+dfsg-1, <=25.1.1+dfsg-1
26.1.1+dfsg-1
ubuntu/python-pip*
ubuntu/python-pip*
ubuntu/python-pip*
ubuntu/python-pip*
ubuntu/python-pip*
ubuntu/python-pip*
ubuntu/python-pip*
ubuntu/python-pip*
ubuntu/python-pip*
All of the following
azurelinux/python-virtualenv<20.36.1-4
20.36.1-4
Microsoft Azure Linux=3.0
All of the following
azurelinux/python-pip<24.2-8
24.2-8
Microsoft Azure Linux=3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/pip to a version that resolves this vulnerability.

    Fixed in 26.1
  2. Upgrade

    Upgrade debian/python-pip to a version that resolves this vulnerability.

    Fixed in 26.1.1+dfsg-1
  3. Upgrade

    Upgrade azurelinux/python-virtualenv to a version that resolves this vulnerability.

    Fixed in 20.36.1-4
  4. Upgrade

    Upgrade azurelinux/python-pip to a version that resolves this vulnerability.

    Fixed in 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 OSV·02:19 PM
DescriptionSeverity
Data Sourced
via Red Hat·03:03 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
DescriptionSeverity
Advisory Published
via GitHub·03:30 PM
Data Sourced
via GitHub·03:30 PM
DescriptionWeaknessAffected Software
Data Sourced
via NVD·05:16 PM
Weakness
Apr 30, 2026
Data Sourced
via Microsoft·08:10 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:10 AM
Affected Software
Updated
via Microsoft·08:10 AM
Affected Software
Updated
via Microsoft·08:10 AM
WeaknessAffected Software
May 3, 2026
Event
via FIRST·12:00 AM
Sep 1, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Sep 25, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 24, 2026
Data Sourced
via OSV·02:56 PM
Affected Software
Nov 27, 2026
Updated
via Microsoft·09:10 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

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