Skip to content

Commit 7bd09ef

Browse files
hongha912mday-io
andauthored
Bump fastapi to >=0.136.3 and starlette to >=1.01 for Python >= 3.10 to fix PYSEC-2026-161 (#5958)
Signed-off-by: Ha Vu <ha@newmantle.tech> Co-authored-by: mday-io <mdaytn@gmail.com>
1 parent 839c5b2 commit 7bd09ef

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,19 @@ snowflake = [
134134
starrocks = ["pymysql"]
135135
trino = ["trino"]
136136
web = [
137-
"fastapi==0.120.1",
137+
"fastapi>=0.136.3; python_version >= '3.10'",
138+
"starlette>=1.0.1; python_version >= '3.10'",
139+
"fastapi==0.120.1; python_version < '3.10'",
138140
"watchfiles>=0.19.0",
139141
"uvicorn[standard]==0.22.0",
140142
"sse-starlette>=0.2.2",
141143
"pyarrow",
142144
]
143145
lsp = [
144146
# Duplicate of web
145-
"fastapi==0.120.1",
147+
"fastapi>=0.136.3; python_version >= '3.10'",
148+
"starlette>=1.0.1; python_version >= '3.10'",
149+
"fastapi==0.120.1; python_version < '3.10'",
146150
"watchfiles>=0.19.0",
147151
# "uvicorn[standard]==0.22.0",
148152
"sse-starlette>=0.2.2",

web/server/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get_path_to_model_mapping(
9696

9797
def get_loaded_context(
9898
settings: Settings = Depends(get_settings),
99-
) -> t.Generator[Context, None]:
99+
) -> t.Generator[Context, None, None]:
100100
try:
101101
with get_loaded_context_lock:
102102
yield _get_loaded_context(settings.project_path, settings.config, settings.gateway)

0 commit comments

Comments
 (0)