itsdangerous
HMAC-only signing (SHA-1 by default) for Starlette and Flask sessions; symmetric and outside the advisory.
- PyPI
itsdangerous- Version cited
- 2.2.0April 2024
- Downloads
- 219M/mo
- Group
- Web frameworks
Key exchange and encryption
Not affected
No key exchange
Signatures and identity
Not affected
HMAC-SHA1 only, not affected
What to do
No change. Keep secret keys high-entropy and rotate them through your framework’s own mechanism.
Since 1 Dec 2026 Nothing found as of 3 Dec 2026.
Details
- itsdangerous’s signer defaults to HMAC via
_lazy_sha1, withdjango-concatkey derivation (itsdangerous signer.py). HMAC-SHA1 remains a secure MAC. - Starlette
SessionMiddlewarecallsitsdangerous.TimestampSigner(str(secret_key)); Flask sessions use it too. Both sign, but do not encrypt. - Latest release 2.2.0 (April 2024); the AGY report describes Starlette
SessionMiddleware(itsdangerous 2.2.0) as HMAC-SHA1 and unaffected. 219,055,236 downloads in 30 days. - The AGY report lists cookie, CSRF and session signing (
itsdangerous, StarletteSessionMiddleware, Flask sessions, DjangoSigner/CSRF) among the things not to touch during emergency triage.
Full discussion: FastAPI and auth