Vulnerability scanners decide "affected or not" from the version range in an advisory. If the range is wrong, the scanner is wrong too, and nobody notices.
The transformers case
GHSA-x9r9-c232-4q39 (high) says transformers is affected up to 5.8.1, with no patched release. The fix (commit cbc1651) shipped in 5.17.0. Releases 5.9.0 to 5.16.1 still have every line that commit removes. pip-audit and Dependabot report all of them as clean.
How I checked
For every PyPI advisory that links its fix commit on GitHub, I compared the fix with the code of each release: the lines it removes should be gone, and the lines it adds should be there. Git tags alone were wrong most of the time (many releases got the fix as a backport), so only the code counts.
Five recent cases held up:
- transformers 5.9.0 to 5.16.1 (fixed in 5.17.0)
- nltk 3.9.4 to 3.10.2 (the advisory says fixed in 3.9.4, the fix is in 3.10.3)
- LightRAG 1.3.8 and 1.3.9 (says 1.3.8, the fix is in 1.4.0)
- streamlit 1.53.1 to 1.58.0 (one of the two fixes came later)
- Django 5.0.x (a branch the advisory doesn't list)
How many projects
I searched GitHub for lockfiles that pin those releases and opened each one to confirm it. At least 6,049 public repos (no forks), 2,138 of them on transformers. That's a floor: I only read the first 100 results per search.
Being on one of these releases doesn't always mean you're exposed. The transformers bug needs text generation with a model from a Hub repo you don't control. But today no scanner even lets you ask.
Pydantic fixed theirs: pydantic-ai moved its lock to 5.17.0 (PR #16123).
Try it
uvx --with pip-audit depquiet --range-check
It reads your installed packages and reports a release only when its files still have the code the fix removes. I tested it on Windows: 5.12.0 gets flagged, 5.17.0 comes back clean.
What didn't work
I ran the same check on npm and got almost nothing. Most npm packages ship built code, so the lines don't compare. That's in the study too.
Study, scripts and limits: benchmarks/range_check
Built with help from Claude Code.
Top comments (0)