Skip to content

Commit bcd8d1f

Browse files
committed
fix: resolver alertas CodeQL y actualizar deps para DoS fix CVE-2025-62727
- Eliminar imports no usados en config.py, dependencies.py, operator.py, router_clean.py - Eliminar redundant assignment en api/index.py - Actualizar fastapi 0.116.1 -> 0.124.4 (permite starlette parcheado) - Actualizar starlette 0.47.2 -> 0.49.1 (fix DoS CVE-2025-62727) - Actualizar pydantic 2.7.0 -> 2.9.2, pydantic-settings 2.2.1 -> 2.6.1 - Tests passing: 7/7
1 parent d5bb54b commit bcd8d1f

File tree

7 files changed

+8
-15
lines changed

7 files changed

+8
-15
lines changed

api/index.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
from app.main import app
1717

1818
# Vercel expects the app to be named 'app'
19-
# If your FastAPI app is named differently, change this
20-
app = app
2119

2220

2321
# Optional: Add Vercel-specific middleware or configuration

api/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
fastapi==0.116.1
2-
starlette==0.47.2
1+
fastapi==0.124.4
2+
starlette==0.49.1
33
uvicorn[standard]==0.38.0
44
uvloop==0.21.0
55

6-
pydantic==2.7.0
7-
pydantic-settings==2.2.1
6+
pydantic==2.9.2
7+
pydantic-settings==2.6.1
88

99
python-dotenv==1.0.1
1010
python-multipart==0.0.20

app/auth/dependencies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from typing import Optional
32

43
from fastapi import Depends, HTTPException, Request

app/backoffice/router_clean.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from fastapi import APIRouter, HTTPException, Request
1414
from fastapi.responses import HTMLResponse, JSONResponse
15-
from fastapi.staticfiles import StaticFiles
1615
from fastapi.templating import Jinja2Templates
1716
from pydantic import BaseModel, Field
1817

app/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
It MUST NOT import FastAPI, routers, or app.main to avoid circular dependencies.
66
"""
77

8-
import os
98
from functools import lru_cache
109
from typing import List
1110

app/routers/operator.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from typing import List
2-
31
from fastapi import APIRouter, Depends, HTTPException, Path, status
42
from pydantic import BaseModel, Field
53

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
fastapi==0.116.1
2-
starlette==0.47.2
1+
fastapi==0.124.4
2+
starlette==0.49.1
33
uvicorn[standard]==0.38.0
44
uvloop==0.21.0
55

6-
pydantic==2.7.0
7-
pydantic-settings==2.2.1
6+
pydantic==2.9.2
7+
pydantic-settings==2.6.1
88

99
python-dotenv==1.0.1
1010
python-multipart==0.0.20

0 commit comments

Comments
 (0)