Security scanners don’t read code. They read the version range in each advisory: “affected from 4.49.0 to 5.8.1”. If your version is outside that range, you’re clean.
But sometimes the range is wrong, and a release outside it still has the vulnerable code.
Three real cases
transformers. GHSA-x9r9-c232-4q39 says versions 4.49.0 to 5.8.1 download custom generation code before you agree to run it. The fix came out in 5.17.0. The fifteen releases from 5.9.0 to 5.16.1 still have the vulnerable code, and the advisory calls them clean. At least 2,138 public repos lock one of them.
nltk. GHSA-9r6g-266r-89x4 says it’s fixed in 3.9.4. It isn’t: 3.9.4 still runs untrusted JAR files without checking them. The fix shipped in 3.10.3.
wasmtime. GHSA-243v-98vx-264h leaves out 41.0.0 to 41.0.3. RustSec’s record covers them, so cargo-audit warns you, but Dependabot reads GitHub’s record and stays quiet. The maintainer confirmed: “this matches what we ourselves listed upstream”.
How I check it
I built a --range-check mode into depquiet, my open source tool. For each advisory that leaves your version out, it:
- Takes the commit that fixed the bug.
- Reads the files of the exact version you have installed or locked.
- Reports it if your files still have most of the lines the fix removes and few of the lines it adds.
It doesn’t install anything. For Python it reads the wheels straight from PyPI, and for big ones like torch it downloads only the files it needs: 1.5 MB out of a 75 MB wheel. It also tells you the first stable release that has the fix. It works with Python, Rust, Go, PHP and Ruby lockfiles.
What I did with it
I sent 20 corrections to GitHub’s advisory database. Maintainers have confirmed 6 so far, including Wasmtime, Pebble (Canonical) and Ammonia. None are merged yet.
The limits
This is line matching, not proof. A big refactor can hide the old code, so I check every finding by hand before I send a correction. And a vulnerable release doesn’t always mean you’re exposed: your code may never call the broken function. depquiet tells you where to look, not that you were hacked.
Try it
uvx --with pip-audit depquiet --range-check
Or in GitHub Actions:
- uses: samuelrojas-dev/depquiet@v0
with:
range-check: "true"
Code and the full study: https://github.com/samuelrojas-dev/depquiet
Top comments (1)
Samuel, the transformers case is the one that sticks with me — 15 releases the advisory calls clean, and at least 2,138 public repos locking one of them. That is not a corner case; that is a whole population walking around thinking it is patched.
The wasmtime split is the part I would underline: RustSec covers 41.0.0–41.0.3, so cargo-audit warns you, while Dependabot reads GitHub's record and stays quiet. Same advisory, two different truths depending on which scanner you run. That makes your range-check less of a nice-to-have and more of a step worth running on every lockfile change, not just when an alert fires.
One thing I would love to see next: you flag in the limits that a vulnerable release does not always mean exposure, because the code may never call the broken function. Your earlier study checked 422 alerts across 5 projects for exactly that — whether the fix touches code the app even loads. Have you run that same reachability check across the transformers 2,138, or is that the next step? If even a quarter of them actually load the custom-generation-code path, that is the number that turns this from a database correction into an incident waiting for a trigger. And with 6 of your 20 corrections confirmed but none merged yet — what is blocking the merge, GitHub's review queue or the maintainers?