PQ Python

Django

Signing, sessions and CSRF use HMAC and password hashing uses PBKDF2 or Argon2; nothing needs to change for the advisory.

PyPI
Django
Version cited
6.1.4(2 Dec 2026), a security release unrelated to the advisory
Downloads
52.6M/mo

Key exchange and encryption

Not affected

No key exchange

Signatures and identity

Not affected

HMAC-SHA256 signing, not affected

What to do

Leave signing, sessions and password hashes alone. Put a PQ-capable proxy in front, keep high-entropy secrets with ordinary rotation, and check asymmetric auth add-ons such as django-oauth-toolkit and django-allauth.

Since 1 Dec 2026 6.1.4 security release on 2 Dec 2026 is unrelated to the advisory; nothing else found as of 3 Dec 2026.

Details

  • Signing. Django’s Signer is HMAC-SHA256 by default. base64_hmac()’s default changes from sha1 to sha256 in “Django 2028” (django signing.py). The AGY report says Signer, sessions and CSRF all use HMAC-SHA256. The Claude report’s CSRF assessment is based on design knowledge, not re-verified.
  • ASTRA’s reading. Django signing uses a keyed MAC; password hashing and AEAD are separate from public-key signatures and key exchange. Keep independent, high-entropy secrets and ordinary rotation and patching. Investigate the channels carrying cookies, passwords and keys rather than resetting every user password.
  • Password hashing. The default hasher is PBKDF2, with Argon2, bcrypt and scrypt also available. No rehash is needed (password hashing).
  • TLS. Django contains no TLS of its own. The AGY report puts a PQ-capable reverse proxy in front of every FastAPI, Django or Flask app (TLS).
  • Auth add-ons. djangorestframework-simplejwt, django-oauth-toolkit and django-allauth have their own algorithm handling, including hardcoded RS256 in two of them (auth frameworks).
  • 52,601,408 downloads in 30 days.
Sources cited on this page 2
  1. django signing.py github.com
  2. Django signing github.com

All sources across the guide