GitHub advisory · PyPI
virtualenv: Pip seeding with download omits wheel digest verification
Description
The pip seeder acquires bundled wheels with download=False and lets pip access the index when --download is selected. Index candidates on that path do not pass through virtualenv's wheel digest verification.
Anthropic's OSS Scanner reported this as ANT-2026-74ALJBUF in virtualenv-20261015-005, received on 15 October 2026.
Wheel selection by the pip seeder when downloads are enabled.
The pip seeder and download option must be selected. The finding concerns the default-index digest-verification policy. Explicit custom-index settings already opt out of comparison against PyPI metadata; this patch retains that policy.
The relevant 21.14.8 source is in pip seeder.
With --seeder pip --download, PipInvoke.get_pip_install_cmd() first calls get_wheel(download=False), so
virtualenv's download_wheel() and verify_wheel_digest() are skipped. It then lets pip install consult the
configured index. An index wheel with the same package and version as the bundled wheel can be selected without
virtualenv comparing its SHA-256 with PyPI metadata. The default app-data seeder takes the verification path for the
same option.
The scanner built a local index named in pip.conf that served a modified copy of the bundled pip wheel under the same
filename. In the control run, virtualenv --download env-default rejected the wheel with a digest mismatch. In the
second run, adding --seeder pip produced an environment whose installed pip/__init__.py matched the index wheel;
env-pip/bin/pip --version ran the added line. The reproducer checked the installed bytes and marker before reporting
BUG.
Both --seeder pip and --download are needed. The report used a non-PyPI index from pip.conf and left
PIP_INDEX_URL,…
Manual fix · PyPI
pip install --upgrade "virtualenv>=21.14.9"Sources