CVE-2025-65431: django-allauth's Okta and NetIQ implementations used a mutable identifier for authorization decisions
An issue was discovered in allauth-django before 65.13.0. Both Okta and NetIQ were using preferredusername as the identifier for third-party provider accounts. That value may be mutable and should therefore be avoided for authorization decisions. The providers are now using sub instead.
Published Dec 15, 2025 · Updated Jun 5, 2026
Affected packages
django-allauth
- Ecosystem
- PyPI
- Affected
- < 65.13.0
- Fixed in
- 65.13.0
- Check
pip show django-allauth
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An issue was discovered in allauth-django before 65.13.0. Both Okta and NetIQ were using preferred_username as the identifier for third-party provider accounts. That value may be mutable and should therefore be avoided for authorization decisions. The providers are now using sub instead.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-65431
- https://allauth.org/news/2025/10/django-allauth-65.13.0-released
- https://github.com/pennersr/django-allauth/commit/8feef46e0e07b25fc5594c8f268afa247ebc3412
- https://github.com/pypa/advisory-database/tree/main/vulns/django-allauth/PYSEC-2025-111.yaml
- https://github.com/advisories/GHSA-8m3c-c723-h4p4
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
