Wheel downloads go directly into the reusable wheelhouse, while the verification target is selected from pip's textual output. A verification failure does not remove the downloaded file from that cache.
Anthropic's OSS Scanner reported this as ANT-2026-ST00DRO3 in virtualenv-20261015-005, received on 15 October 2026.
Download selection and promotion into the reusable wheel cache.
A download must fail verification, or the archive selected from pip output must differ from the file later reused. Default-index digest verification must be enabled. Existing custom-index exceptions are outside the promised PyPI comparison.
The relevant 21.14.8 source is in wheel download and digest check.
download_wheel() tells pip to write directly into the reusable wheel/house cache. It then selects a path to hash
from the first Saved line in pip's stdout, rather than from the file pip actually placed there. A package index can
inject such a line through a discarded link's data-requires-python attribute. A separate failure exists without the
forged line: a digest mismatch raises after the downloaded wheel has entered the cache, and the rejected bytes remain
there. Later wheel selection does not hash the cached file again.
The scanner used a local index configured in pip.conf, with PyPI digest comparison still enabled. In the control case
it served a modified pip wheel alone. virtualenv --upgrade-embed-wheels refused the mismatch, and a subsequent
environment used the bundled pip. In the attack case the index added a link whose data-requires-python contained a
forged Saved <path> line pointing at a genuine bundled wheel. The upgrade then exited without a digest error, recorded
the modified wheel in its update log, and a...
21.14.9Exploitability
AV:NAC:HAT:PPR:NUI:PVulnerable System
VC:LVI:LVA:LSubsequent System
SC:NSI:NSA:N2.3/CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NOther