PQ Python

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

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, with django-concat key derivation (itsdangerous signer.py). HMAC-SHA1 remains a secure MAC.
  • Starlette SessionMiddleware calls itsdangerous.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, Starlette SessionMiddleware, Flask sessions, Django Signer/CSRF) among the things not to touch during emergency triage.
Sources cited on this page 1
  1. itsdangerous signer.py github.com

All sources across the guide