Dependabot cannot update soupsieve to a non-vulnerable version: the real reason
If you use uv and Dependabot, you may have seen this on a security alert: Dependabot cannot update soupsieve to a non-vulnerable version The GitHub docs say this happens when the fix would break other dependencies. I
If you use uv and Dependabot, you may have seen this on a security alert:
Dependabot cannot update soupsieve to a non-vulnerable version
The GitHub docs say this happens when the fix would break other dependencies. In the Python projects I looked at, the reason was often something else, and the alert never says it.
The real reason: your Python floor
Every soupsieve release that fixes the recent advisories (3.0.2 and later) says requires-python >=3.11.5.
Now look at your pyproject.toml. If it says requires-python = ">=3.10" or ">=3.11", uv has to make a lock that works on every Python you claim, including 3.11.0 to 3.11.4. No fixed soupsieve installs there. So uv keeps an old one, or locks two copies: a fixed one for newer Pythons and a vulnerable one for older ones.
Dependabot sees that, gives up, and shows the message above. The reason only shows up in the job log, as "Filtered out" lines. I opened an issue asking for the alert to say it: dependabot-core#16987.
How to check if this is your case
Look in uv.lock for two copies of the package:
name = "soupsieve"
version = "2.10"
...
name = "soupsieve"
version = "4.1.3"
with markers like python_full_version < '3.11.5'. If you see that, the alert is not about broken dependencies. It's about Python.
Three ways out
1. Raise requires-python. Set it to >=3.11.5 and relock. Fine for an application you deploy. For a library, be careful: I did this in a PR to wagtail, it got merged, and it broke the nightly install of wagtail in a downstream project that said >=3.11. My mistake.
2. For a library, change only the lock. This is how the wagtail maintainer fixed it in a few hours:
[tool.uv]
environments = ["python_full_version >= '3.11.5'"]
uv then locks only for Python 3.11.5 and newer. Your CI and development get the fix. Your users can still install your package on any 3.11.
3. Accept the split. uv lock --upgrade-package soupsieve (no version) gives newer Pythons the fix and older ones the best release they can install. The FinanceDatabase maintainer asked for exactly this in review and merged it. The alerts on the older copy stay open, but nobody on a newer Python is exposed.
The tool I built for this
I hit this enough times that I built depquiet, an open source tool that reads your lock, checks each fix with uv's own resolver on a copy of your project, and tells you which of these three options works, with the exact command. It also checks with pip-audit that the version it suggests for older Pythons doesn't bring new advisories. That check came from a mistake too: my first numbers counted only the alerts a fix closes, not the ones it adds.
So far, five projects merged PRs that came from it: beets, FinanceDatabase, Horizon, wagtail and banana-slides. The README lists all five, including the one that broke something.
github.com/samuelrojas-dev/depquiet
If you've seen this Dependabot message and the cause was different, I'd like to hear it.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.