VDB
Sign up
HIGH7.5

PYSEC-2026-4373

Quick fix

PYSEC-2026-4373 — virtualenv: upgrade to the fixed version with the command below.

pip install --upgrade 'virtualenv>=21.14.9'

Details

virtualenv is a tool for creating isolated virtual python environments. Prior to 21.14.9, download_wheel() writes package-index downloads directly into the reusable wheel/house cache before selecting a verification target from pip's textual Saved output. With default-index digest comparison enabled, a controlled package index can inject a misleading Saved line through a discarded link's data-requires-python attribute; this forged-line variant also requires knowledge of an absolute path to the genuine bundled wheel. The wrong path can then be hashed, while a digest mismatch leaves the rejected archive in the cache for later selection without verification. A separate rejected-cache-file variant requires control over downloaded data or archive selection but not the forged-line prerequisites. Explicit custom-index exceptions are outside the promised PyPI comparison, and the issue does not independently bypass TLS or establish control of default PyPI. This issue is fixed in version 21.14.9.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/virtualenv
Introduced in: 21.7.12Fixed in: 21.14.9
Fixpip install --upgrade 'virtualenv>=21.14.9'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/virtualenv"]}'