CVE-2025-65431: Django allauth Django-allauth's Okta And NetIQ Implementations Vulnerability
MODERATECVE-2025-65431 is a MODERATE (CVSS 5.4) django-allauth's okta and netiq implementations vulnerability (CWE-287: Improper Authentication) affecting Django allauth libraries in the PyPI ecosystem. The issue involves django-allauth's okta and netiq implementations used a mutable identifier for authorization decisions. Remediation is available by upgrading affected packages to version 65.13.0.
CVE-2025-65431 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2025-65431
To remediate this vulnerability, upgrade all affected Django allauth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install django-allauth>=65.13.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show django-allauth
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-65431, inspect your installed packages using pip:
pip show django-allauth
Analyze the terminal output to locate any version of Django allauth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 65.13.0), your application is affected.
Note: The pip show django-allauth command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Django allauth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-65431 Affected Django allauth Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
django-allauth
|
PyPI |
< 65.13.0
|
65.13.0
|
References
Frequently Asked Questions
What is CVE-2025-65431?
Which Django allauth versions are affected?
What version fixes CVE-2025-65431?
Is django-allauth affected?
What is the CVSS score of CVE-2025-65431?
What CWE is associated with CVE-2025-65431?
How can I check PyPI dependencies for CVE-2025-65431?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8m3c-c723-h4p4",
"modified" : "2026-06-05T14:34:55Z",
"published" : "2025-12-15T15:30:31Z",
"aliases" : [ "CVE-2025-65431" ],
"summary" : "django-allauth's Okta and NetIQ implementations used a mutable identifier for authorization decisions",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "django-allauth"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "65.13.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-65431"
}, {
"type" : "WEB",
"url" : "https://github.com/pennersr/django-allauth/commit/8feef46e0e07b25fc5594c8f268afa247ebc3412"
}, {
"type" : "WEB",
"url" : "https://allauth.org/news/2025/10/django-allauth-65.13.0-released"
}, {
"type" : "PACKAGE",
"url" : "https://codeberg.org/allauth/django-allauth"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/django-allauth/PYSEC-2025-111.yaml"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-287" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-12-16T19:35:08Z",
"nvd_published_at" : "2025-12-15T14:15:57Z"
}
}