Skip to content

Commit 1e57049

Browse files
committed
PYSEC-2026-161 is fixed in starlette>=1.0.1. fastapi==0.120.1 caps starlette<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>
1 parent 1bb2e14 commit 1e57049

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,8 @@ snowflake = [
134134
starrocks = ["pymysql"]
135135
trino = ["trino"]
136136
web = [
137-
# fastapi>=0.136.3 brings in starlette>=1.0.1, which fixes PYSEC-2026-161.
138-
# Both require Python >= 3.10, so 3.9 stays on the previous pin.
139137
"fastapi>=0.136.3; python_version >= '3.10'",
138+
"starlette>=1.0.1; python_version >= '3.10'",
140139
"fastapi==0.120.1; python_version < '3.10'",
141140
"watchfiles>=0.19.0",
142141
"uvicorn[standard]==0.22.0",
@@ -146,6 +145,7 @@ web = [
146145
lsp = [
147146
# Duplicate of web
148147
"fastapi>=0.136.3; python_version >= '3.10'",
148+
"starlette>=1.0.1; python_version >= '3.10'",
149149
"fastapi==0.120.1; python_version < '3.10'",
150150
"watchfiles>=0.19.0",
151151
# "uvicorn[standard]==0.22.0",

0 commit comments

Comments
 (0)