Starlette
Its only crypto is SessionMiddleware, which signs (does not encrypt) cookies with itsdangerous HMAC-SHA1; the advisory does not touch it.
- PyPI
starlette- Version cited
- 1.10.024 Oct 2026
- Downloads
- 739M/mo
- Group
- Web frameworks
Key exchange and encryption
Not affected
No key exchange
Signatures and identity
Not affected
HMAC-SHA1 sessions, not affected
What to do
No change. Keep secret_key high-entropy and plan rotation yourself (no built-in key fallback). Use SessionMiddleware-style opaque sessions for browsers rather than ML-DSA JWTs in cookies.
Since 1 Dec 2026 Nothing found as of 3 Dec 2026.
Details
Starlette 1.10.0 (24 Oct 2026) has one cryptographic use, SessionMiddleware. The AGY report verified this by inspecting the fastapi 0.165.0 and starlette 1.10.0 wheels.
- It does
itsdangerous.TimestampSigner(str(secret_key)). - It signs, but does not encrypt, base64-encoded JSON.
- itsdangerous defaults to HMAC via
_lazy_sha1, withdjango-concatkey derivation.
HMAC-SHA1 remains a secure MAC and is outside the advisory’s scope. These sessions never promised confidentiality, so there is nothing for PQC to break (sessions.py). Starlette has no built-in key fallback for rotation.
- Not TLS evidence. Starlette’s HTTPS redirect does not change any handshake; change TLS at the edge (hops).
- Browser sessions in the PQ era. ML-DSA-65/87 JWTs exceed the 4,096-byte cookie limit. The AGY report’s Backend-for-Frontend pattern uses an opaque session cookie (
SessionMiddlewareplus a Redis or Postgres session ID) and keeps ML-DSA JWTs inAuthorization: Bearerheaders (token sizes). - 738,533,032 downloads in 30 days. No release or statement since 1 Dec 2026.
Full discussion: FastAPI and auth