Skip to content

Bump fastapi to >=0.136.3 and starlette to >=1.01 for Python >= 3.10 to fix PYSEC-2026-161 - #5958

Merged
nicksspirit merged 3 commits into
SQLMesh:mainfrom
hongha912:upgrade-fastapi
Aug 18, 2026
Merged

Bump fastapi to >=0.136.3 and starlette to >=1.01 for Python >= 3.10 to fix PYSEC-2026-161#5958
nicksspirit merged 3 commits into
SQLMesh:mainfrom
hongha912:upgrade-fastapi

Conversation

@hongha912

@hongha912 hongha912 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Description

Closes #5812

This is a redo of #5838 hopefully with CI issues fixed.

Starlette 1.01 doesn't support Python <3.10 so we can only upgrade for certain python versions.

Checklist

  • I have run make style and fixed any issues
  • I have added tests for my changes (if applicable)
  • All existing tests pass (make fast-test)
  • My commits are signed off (git commit -s) per the DCO

@hongha912 hongha912 changed the title Bump fastapi to >=0.136.3 for Python >= 3.10 to fix PYSEC-2026-161 Bump fastapi to >=0.136.3 and starlette to >=1.01 for Python >= 3.10 to fix PYSEC-2026-161 Aug 18, 2026
@hongha912
hongha912 marked this pull request as ready for review August 18, 2026 14:21
…tarlette<0.50.0, so it has to be bumped to lift that cap, but fastapi>=0.136.3 only requires starlette>=0.46.0 and would still resolve to a vulnerable version -- hence the explicit starlette floor below. Both requirements need Python >= 3.10, so 3.9 stays on the previous pin.

Signed-off-by: Ha Vu <ha@newmantle.tech>
@nicksspirit
nicksspirit merged commit 7bd09ef into SQLMesh:main Aug 18, 2026
27 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump FastAPI/Starlette for PYSEC-2026-161

3 participants