Skip to content

Raise the python-engineio and python-socketio floors past their advisories - #8038

Open
shu-chen-dot-ca wants to merge 1 commit into
reflex-dev:mainfrom
shu-chen-dot-ca:fix-8026-socketio-floors
Open

shu-chen-dot-ca wants to merge 1 commit into
reflex-dev:mainfrom
shu-chen-dot-ca:fix-8026-socketio-floors

Conversation

@shu-chen-dot-ca

@shu-chen-dot-ca shu-chen-dot-ca commented Nov 27, 2026 •

Copy link
Copy Markdown

All Submissions:

  • Have you followed the guidelines stated in CONTRIBUTING.md file?
  • Have you checked to ensure there aren't any other open Pull Requests for the desired changed?

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Closes #8026.

What

reflex declares python-engineio >=4.12.0 and python-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:

Package Affected range Advisories First clean release
python-engineio 4.12.0 to 4.13.1 GHSA-cgwc-pv48-fhj5, GHSA-m9gh-vj53-gvh9, PYSEC-2026-3032, PYSEC-2026-3033 4.13.2
python-socketio 5.12.0 to 5.13.x GHSA-g8c6-8fjj-2r4m, PYSEC-2026-1854 (plus the two below) 5.14.0
python-socketio 5.14.0 to 5.16.1 GHSA-5w7q-77mv-v69f, PYSEC-2026-3042 5.16.2

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

  • Floors raised to python-engineio >=4.13.2,<5.0 and python-socketio >=5.16.2,<6.0. The upper bounds are unchanged.
  • uv.lock already locks 4.14.0 and 5.17.0, so the resolved versions don't change. Only the two specifiers recorded under reflex's requires-dist change: without them uv lock --check fails against the new pyproject.toml. I edited those two lines rather than re-running uv lock, because re-locking with uv 0.13.6 also rewrites unrelated marker entries (e.g. httpcore2).
  • A misc news fragment for the root package.

Testing

  • uv lock --check (uv 0.13.6, as in CI, and 0.11.8, the minimum in CONTRIBUTING) and uv sync --locked: pass.
  • scripts/check_min_deps.py --python 3.11 reflex and --python 3.14 reflex: PASS. This resolves the new minimums from PyPI and type-checks reflex against 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-check and reflex-release sync --check: pass.

Screenshots

Lowest versions a fresh install can resolve from the declared ranges, with their OSV advisory counts:

Before After
before after

View guided diff

…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
@shu-chen-dot-ca
shu-chen-dot-ca requested a review from a team as a code owner November 27, 2026 04:51
@FarhanAliRaza FarhanAliRaza added the bug Something isn't working label Nov 27, 2026 — with ChatGPT Codex Connector

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · This PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Raises the minimum python-engineio version to 4.13.2 and python-socketio to 5.16.2.

  • Reflex installs now require newer Engine.IO and Socket.IO versions.

Reviews (1) · Last reviewed commit: "Raise the python-engineio and python-soc..." · Reviewed by Greptile

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dependency advisories at the declared floor versions of python-engineio / python-socketio (with a verified fix)

2 participants