CVE-2026-102930: virtualenv: Downloaded seed wheels (pip/setuptools) are not integrity-checked before use

Published Sep 29, 2026
·
Updated

downloadwheel() runs pip download and hands the result straight to the seeder, with nothing checking the bytes it gets back. The embedded pip and setuptools wheels carry a BUNDLESHA256 that virtualenv checks on every load, but a wheel fetched over the network for the periodic-update feature or the --download flag had no equivalent verification.

A compromised index, a stale mirror, or a MITM'd download (when TLS is intercepted, e.g. via a misconfigured or malicious CA) could substitute a different wheel under the same distribution/version/filename, and virtualenv would cache and seed it into every environment created afterward with no warning.

Fixed by computing the downloaded wheel's sha256 and comparing it against the digest PyPI's public JSON API reports for that exact release, independent of which index actually served the file. The check is skipped, not treated as failure, when a custom index (PIPINDEXURL, PIPEXTRAINDEXURL, PIPINDEX) is configured, since a private index can legitimately serve a different, intentionally rebuilt wheel. Fix: https://github.com/pypa/virtualenv/pull/3251

Other sources

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.7.12, downloadwheel() accepts pip and setuptools seed wheels fetched for periodic updates or the --download option without checking their bytes against an authoritative digest equivalent to the embedded wheels' BUNDLESHA256 verification. A compromised index, stale mirror, or intercepted TLS connection can substitute a different wheel under the requested distribution, version, and filename, after which virtualenv caches and seeds the attacker-controlled wheel into subsequently created environments. The verification applies to the default PyPI path and is intentionally skipped when PIPINDEXURL, PIPEXTRAINDEXURL, or PIPINDEX configures a custom index that may legitimately publish rebuilt wheels. This issue is fixed in version 21.7.12.

— NVD

virtualenv: Downloaded seed wheels (pip/setuptools) are not integrity-checked before use

— Microsoft

Affected Software

3 affected componentsFixes available
pypi/virtualenv<21.7.12
pip/virtualenv<=21.7.11
21.7.12
Microsoft azl3 python-virtualenv 20.36.1-6<20.36.1-7
20.36.1-7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 21.7.12
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 20.36.1-7
  3. Upgrade

    Upgrade virtualenv to a version that resolves this vulnerability.

    Fixed in 21.7.12

Event History

Sep 29, 2026
CVE Published
via MITRE·08:53 PM
Data Sourced
via MITRE·08:53 PM
DescriptionWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness
Sep 30, 2026
Advisory Published
via GitHub·11:54 PM
Data Sourced
via GitHub·11:54 PM
DescriptionWeaknessAffected Software
Oct 3, 2026
Data Sourced
via Microsoft·08:40 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to the unverified download path?

Deployments using virtualenv versions earlier than 21.7.12 are exposed when they obtain pip or setuptools seed wheels through periodic updates or the --download option. A substituted wheel can be cached and then used to seed later virtual environments.

2

What would an attacker need to exploit this issue?

An attacker would need the ability to substitute a wheel obtained from the package source, such as through a compromised index, a stale mirror, or an intercepted TLS connection. The replacement must be served under the requested distribution, version, and filename.

3

Are custom package indexes protected by the new digest verification?

No. Digest verification is intentionally skipped when PIP_INDEX_URL, PIP_EXTRA_INDEX_URL, or PIP_INDEX is configured, because custom indexes may publish rebuilt wheels.

4

What is the remediation?

Upgrade virtualenv to version 21.7.12 or later. If immediate upgrading is not possible, avoid fetching seed wheels through periodic updates or the --download option and review cached seed wheels, since cached substituted wheels may be used for subsequently created environments.

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