CVE-2025-65431: Django allauth Django-allauth's Okta And NetIQ Implementations Vulnerability

MODERATE
Advisory Identifier: GHSA-8m3c-c723-h4p4
CVSS 5.4
CWE-287
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-65431
GHSA Identifier GHSA-8m3c-c723-h4p4
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-287: Improper Authentication
Affected Product Django allauth
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

django-allauth fixed: 65.13.0
pip install django-allauth>=65.13.0
Verify Direct and Transitive Dependencies

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

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.

CVE-2025-65431 Affected Django allauth Versions

1 component(s)
Fixed Versions:
65.13.0
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?
CVE-2025-65431 is a security vulnerability in Django allauth involving django-allauth's Okta and NetIQ implementations used a mutable identifier for authorization decisions under CWE-287: Improper Authentication.
Which Django allauth versions are affected?
Affected versions include releases prior to 65.13.0 across affected packages: django-allauth.
What version fixes CVE-2025-65431?
Upgrading to 65.13.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is django-allauth affected?
Yes, django-allauth is affected in releases prior to 65.13.0. Upgrade your dependency to 65.13.0 or later.
What is the CVSS score of CVE-2025-65431?
CVE-2025-65431 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2025-65431?
CVE-2025-65431 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check PyPI dependencies for CVE-2025-65431?
Run the dependency tree command: 'pip show django-allauth'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}