Repository navigation
Conversation
Propagated from zostera/django-marina#704. soupsieve 4, which carries the fixes for four denial-of-service advisories, requires Python 3.11.5. `requires-python` was ">=3.11", so uv could not pick one soupsieve for the whole supported range and forked: 4.x from 3.11.5 up, a vulnerable 2.x below it. The advisories name the 2.x, so they could not close. Raising the floor to 3.11.5 removes the fork. soupsieve is now 4.1.4 and beautifulsoup4 4.15.0 on every supported interpreter. The alternative the resolver reaches for, and what Dependabot's own pull requests do, is to drop beautifulsoup4 back to 4.6.3 on the old patches instead. That quiets the alerts while pinning a parser from 2018, which is worse than the problem. 3.11.0 through 3.11.4 are from 2022 and 2023; 3.11.18 is current. CI has only ever run the newest 3.11, so those four were never tested here. A floor we do not test is a promise we cannot keep. Recorded as breaking, and MAINTAINING.md now says a floor may be a patch version and why. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Propagated from zostera/django-marina#704, which carries the full reasoning.
The problem
soupsieve 4 requires Python >= 3.11.5. With
requires-python = ">=3.11", uv cannot pick one soupsieve for the whole supported range, so it forks the resolution — soupsieve 4.x from 3.11.5 up, a vulnerable 2.x below it. The advisories name the 2.x, so they cannot close no matter how the lock is regenerated.The fix
Raise the floor to 3.11.5. The fork disappears:
Why not the alternative
The other way out is the one the resolver prefers when the floor stays at 3.11, and the one Dependabot's own PR takes here: keep soupsieve 4 and drop beautifulsoup4 back to 4.6.3 instead — a release from 2018, predating soupsieve entirely. Verified by installing that lock on Python 3.11.4.
That silences the alerts while pinning an eight-year-old HTML parser. Quieter dashboard, worse software. This PR supersedes the Dependabot lock PR in this repository, and does strictly more than it.
Why the cost is acceptable
uv python install 3.11resolves to the latest patch. Those four releases were never tested here. A floor we do not test is a promise we cannot keep.Python :: 3.11classifier stays correct: the cycle is still supported, from .5 up.tox.ini'spy311and theci.ymlmatrix entry are unchanged and still resolve to the newest patch.Recorded as breaking in the changelog — under
YY.Nthe version number carries no such signal, so the note is the only warning anyone pinned below 3.11.5 gets.MAINTAINING.md gains the general rule, verbatim from marina, since the next dependency to do this will not be soupsieve.
Verification
just lint,just test-cov(100%) andjust docsall pass locally.🤖 Generated with Claude Code