Repository navigation
Raise the python-engineio and python-socketio floors past their advisories - #8038
Open
shu-chen-dot-ca wants to merge 1 commit into
Open
shu-chen-dot-ca wants to merge 1 commit into
shu-chen-dot-ca wants to merge 1 commit into
Conversation
…ories python-engineio 4.12.0 through 4.13.1 and python-socketio 5.12.0 through 5.16.1 have published OSV advisories; 4.13.2 and 5.16.2 are the first releases with none. The lockfile already resolves past both, so only its recorded specifiers change. Closes reflex-dev#8026
Contributor
There was a problem hiding this comment.
1 issue found across 3 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="news/+socketio-engineio-security-floors.misc.md">
<violation number="1" location="news/+socketio-engineio-security-floors.misc.md:1">
P3: This fragment describes a security bug fix, but the `.misc.md` category places it under Miscellaneous instead of Bug Fixes. Rename it to `news/+socketio-engineio-security-floors.bugfix.md` so the advisory remediation appears with other fixes.</violation>
</file>
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
| @@ -0,0 +1 @@ | |||
| Raise the minimum `python-engineio` to 4.13.2 and `python-socketio` to 5.16.2, the first releases without known security advisories, so installs that resolve the lowest allowed versions no longer pick up vulnerable ones. | |||
Contributor
There was a problem hiding this comment.
P3: This fragment describes a security bug fix, but the .misc.md category places it under Miscellaneous instead of Bug Fixes. Rename it to news/+socketio-engineio-security-floors.bugfix.md so the advisory remediation appears with other fixes.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At news/+socketio-engineio-security-floors.misc.md, line 1:
<comment>This fragment describes a security bug fix, but the `.misc.md` category places it under Miscellaneous instead of Bug Fixes. Rename it to `news/+socketio-engineio-security-floors.bugfix.md` so the advisory remediation appears with other fixes.</comment>
<file context>
@@ -0,0 +1 @@
+Raise the minimum `python-engineio` to 4.13.2 and `python-socketio` to 5.16.2, the first releases without known security advisories, so installs that resolve the lowest allowed versions no longer pick up vulnerable ones.
</file context>
Contributor
[Medium impact] This PR appears safe to merge. SummaryRaises the minimum
Reviews (1) · Last reviewed commit: "Raise the python-engineio and python-soc..." · Reviewed by Greptile |
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.
All Submissions:
Type of change
Closes #8026.
What
reflexdeclarespython-engineio >=4.12.0andpython-socketio >=5.12.0. An install that resolves the lowest allowed versions (--resolution lowest-direct, or an environment that already has older copies installed) gets releases with published OSV advisories:I checked each of those versions against the OSV API: 4.12.0, 4.13.0 and 4.13.1 report 4 advisories, 4.13.2 and 4.14.0 report none; 5.12.0 reports 4, 5.14.0, 5.16.0 and 5.16.1 report 2, 5.16.2 and 5.17.0 report none.
How
python-engineio >=4.13.2,<5.0andpython-socketio >=5.16.2,<6.0. The upper bounds are unchanged.uv.lockalready locks 4.14.0 and 5.17.0, so the resolved versions don't change. Only the two specifiers recorded underreflex'srequires-distchange: without themuv lock --checkfails against the newpyproject.toml. I edited those two lines rather than re-runninguv lock, because re-locking with uv 0.13.6 also rewrites unrelated marker entries (e.g.httpcore2).miscnews fragment for the root package.Testing
uv lock --check(uv 0.13.6, as in CI, and 0.11.8, the minimum in CONTRIBUTING) anduv sync --locked: pass.scripts/check_min_deps.py --python 3.11 reflexand--python 3.14 reflex: PASS. This resolves the new minimums from PyPI and type-checksreflexagainst them.uv run pytest tests/units --cov --no-cov-on-fail --cov-report=: 16840 passed, 74 skipped, coverage 82.85%.uv run pre-commit run --all-files(ruff, codespell, pyright, ty, both pyright type_checking hooks, biome): all passed.scripts/make_pyi.py --check,reflex-release changelog-checkandreflex-release sync --check: pass.Screenshots
Lowest versions a fresh install can resolve from the declared ranges, with their OSV advisory counts: