PQ Python

fastapi-users, djangorestframework-simplejwt, Flask-JWT-Extended, django-oauth-toolkit, django-allauth

Defaults are HS256 and unaffected; asymmetric setups hit single-algorithm verifiers, hardcoded RS256 and cookie size limits.

PyPI
fastapi-users, djangorestframework-simplejwt, Flask-JWT-Extended, django-oauth-toolkit, django-allauth
Version cited
variousfastapi-users 15.0.5 (27 Mar 2026), djangorestframework-simplejwt 5.5.1, Flask-JWT-Extended 4.7.4, django-oauth-toolkit 3.4.1, django-allauth 65.23.0
Downloads
1.4M (fastapi-users)/mo

Key exchange and encryption

Not affected

No key exchange

Signatures and identity

Stopgap only

HS256 default; classical asymmetric stopgaps only

What to do

Keep HS256 where one service issues and verifies. For asymmetric keys, move to ES384 or RSA-3072+, make verifiers accept an algorithm list during rotation, and keep ML-DSA tokens out of cookies.

Since 1 Dec 2026 Nothing found as of 3 Dec 2026.

Details

All findings below come from the AGY report unless noted AGY.

Package Default Asymmetric options Catch during migration
fastapi-users 15.0.5 (27 Mar 2026) HS256 via PyJWT (Claude and AGY) Asymmetric if a public key is passed; same as PyJWT JWTStrategy.read_token passes a single-element algorithms=[self.algorithm]; subclass it to accept a list during rotation. ML-DSA-65/87 tokens cannot go in CookieTransport
djangorestframework-simplejwt 5.5.1 HS256 ES384, RS384, PS384 None reported
Flask-JWT-Extended 4.7.4 HS256 ES384, RS384, PS384 Already has a JWT_DECODE_ALGORITHMS list for zero-downtime rollover
django-oauth-toolkit 3.4.1 Not reported RS256 only, though it depends on jwcrypto>=1.5.0, which has ML-DSA Hardcodes Application.ALGORITHM_TYPES to RS256 and HS256 (models.py:L185-192). Interim fix: rotate OIDC_RSA_PRIVATE_KEY to RSA-3072
django-allauth 65.23.0 OIDC IdP mode hardcodes RS256 Socialaccount OIDC client reads jwt.algorithms.get_default_algorithms() Use RSA-3072 keys in IdP mode; the client adapts on its own to ES384/RS384 and future PyJWT ML-DSA
  • HS256 defaults are unaffected (Claude report, for fastapi-users; AGY report, for simplejwt and Flask-JWT-Extended), provided the secret has at least 256 bits of entropy.
  • fastapi-users has 1,413,839 downloads in 30 days; the other packages’ downloads were not reported.
  • Cookie and header limits for ML-DSA tokens: token sizes. Rotation procedure: JWKS migration.
  • django-allauth is not in the guide’s original package registry and was added to this family record.