T16.1: D21 session decode fails closed; PyJWT 2.15.1
decode_token treats any decode failure, and any cookie over 4096 chars, as not signed in, and requires exp and sub. PyJWT 2.13.0 -> 2.15.1 (pip-audit: 13 advisories -> none). Security review SEC-07: a crafted 1.6 KB cookie with no account gave 500 + stack trace; now 401. New tests/security_check.py (no browser): D21 section 6/6. Againstda1325cwith PyJWT 2.13.0 it fails 3 checks (crafted cookie 500, token with no exp accepted, old pin) - the findings. The over-long cookie and the two still-works checks pass on both. Smoke test 27/27. (cherry picked from commit01ce7e941c)
This commit is contained in:
@@ -17,7 +17,9 @@ pymssql==2.3.13 # read-only lookups against the Micron asset DB (SQL
|
||||
# MICRON_DB_URL to mssql+pyodbc://…?driver=ODBC+Driver+18+for+SQL+Server
|
||||
pydantic==2.13.4
|
||||
python-dotenv==1.2.2
|
||||
PyJWT==2.13.0 # signed session tokens
|
||||
PyJWT==2.15.1 # signed session tokens. D21 (2026-10-02): was 2.13.0, which
|
||||
# pip-audit lists 13 advisories for (GHSA-8wjv-2p76-3863 let a
|
||||
# crafted cookie raise past decode_token). 2.15.1: none known.
|
||||
starlette==1.3.1 # pinned transitive (cookie / CORS handling — security-relevant)
|
||||
Authlib==1.7.2 # Okta OIDC authorization-code flow (T10.1, wave 10 / D15)
|
||||
httpx==0.28.1 # Authlib's OIDC client needs an HTTP client; explicit, not transitive
|
||||
|
||||
Reference in New Issue
Block a user