django-allauth 65.23.0 released

Posted by Raymond Penners on 2026-11-25

Note worthy changes

  • usersessions: Added a management command (clear_usersessions) for removing expired user sessions.
  • usersessions: Tracking session activity now requires fewer database queries.
  • socialaccount: The OpenID Connect provider now supports back-channel and RP-initiated logout.
  • IdP: Server metadata now advertises CIMD support when enabled.
  • IdP: Supported scopes, authorization defaults, CIMD defaults, and DCR defaults can now be configured using IDP_OIDC_SCOPE_CHOICES, IDP_OIDC_DEFAULT_SCOPES, IDP_OIDC_CIMD_DEFAULT_SCOPES, and IDP_OIDC_DCR_DEFAULT_SCOPES.
  • IdP: A private key's PEM is now parsed once per process instead of for every token signed and every JWKS request. Parsing validates the RSA key, which is computationally expensive.

Fixes

  • Headless: Sending a JSON payload nested more deeply than Python's recursion limit to the headless endpoints resulted in a server error.

Security notice

  • Fixed rate limiting for IPv4-mapped IPv6 addresses, which could allow denial of service in affected dual-stack deployments. Thanks to Nathan Cross for reporting.
  • IdP: To mitigate SSRF risks, CIMD client metadata URLs are now restricted to hostnames listed in IDP_OIDC_CIMD_ALLOWED_HOSTS. The allowlist is empty by default. Thanks to @b23r0 for reporting.

Backwards incompatible changes

  • IdP: Previously, omitting the scope parameter during authorization for clients without configured default scopes could result in tokens without any scopes. This non-standard behavior has been fixed: IDP_OIDC_DEFAULT_SCOPES is now used.
  • IdP: DCR and CIMD now assign all server supported scopes when the scope metadata field is omitted, rather than assigning only openid (see IDP_OIDC_DCR_DEFAULT_SCOPES and IDP_OIDC_CIMD_DEFAULT_SCOPES).
  • IdP: See the security notice with respect to IDP_OIDC_CIMD_ALLOWED_HOSTS above.

Previous: django-allauth 65.22.1 released
Archives
RSS Feed
Latest news