Skip to main content

django-allauth CVE-2026-137993

| EUVDEUVD-2026-137355 MEDIUM
Overly Restrictive Account Lockout Mechanism (CWE-645)
2026-11-27 VulnCheck GHSA-ccp6-5xj7-3xjg
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach auth endpoint via IPv4-mapped IPv6
  2. Exploit
    Flood login/signup/reset requests
  3. Execution
    Exhaust shared per-IP rate-limit key
  4. Impact
    Block legitimate IPv4 users from authenticating

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V6 - Authentication Overly restrictive account lockout
Exploitation Conditions

Requires a dual-stack (IPv4+IPv6) django-allauth deployment where IPv4 clients reach the application as IPv4-mapped IPv6 addresses; under that condition truncate_ip() derives one shared rate-limit key for all such clients, so an attacker can exhaust the collective per-IP limit for login, signup, or password reset. No authentication is required (PR:N). Exploitation is LIMITED to the affected version range (65.17.0 up to but not including 65.23.0) and to deployments actually running in dual-stack mode with IPv4-mapped IPv6 handling - single-stack or non-mapped configurations are not affected - and the only impact is temporary denial of authentication for IPv4 users, with no data exposure or code execution.

Impact

This is a moderate, availability-only issue rather than a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) scores 6.3 and tells a consistent story: network-reachable and unauthenticated (PR:N), but gated by a specific attack requirement (AT:P) and higher complexity (AC:H) because it only manifests on dual-stack deployments where IPv4 clients arrive as IPv4-mapped IPv6 addresses. Impact is confined to limited availability (VA:L) - the only consequence is corruption of per-IP rate-limiting for login/signup/password-reset, with no confidentiality or integrity impact (VC:N/VI:N). The vuln.today decision label is 'this_month', not act_now or emergency, which aligns with the limited impact. No EPSS score, no CISA KEV listing, and no public exploit code are present in the input (only a vendor patch, changelog, source lines, and a VulnCheck advisory), so there is no signal of active or widespread exploitation. CWE-645 (overly restrictive lockout mechanism) fits: the flaw lets an attacker weaponize the rate-limiter against legitimate users. Net: a real but bounded DoS worth patching on a normal cycle, not a drop-everything event; prioritize it if you run django-allauth 65.17.0-65.22.x on a dual-stack IPv4/IPv6 front end.

Exploit ScenarioDerived

On a dual-stack django-allauth deployment, an unauthenticated attacker repeatedly hits the login, signup, or password-reset endpoints; because truncate_ip() collapses all IPv4-mapped IPv6 clients into one shared rate-limit key, their requests consume the single bucket that all IPv4 users share. Once the shared limit is exhausted, legitimate IPv4 users are blocked from authenticating. No public exploit code is identified in the sources, though the trigger is straightforward given the described keying flaw.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

django-allauth 65.17.0 through 65.22.x collapses every IPv4 client into a single shared rate-limit key when those clients arrive as IPv4-mapped IPv6 addresses, letting unauthenticated remote attackers exhaust the collective per-IP budget for login, signup and password reset and lock legitimate IPv4 users out of authentication on dual-stack deployments. The flaw lives in truncate_ip() in allauth/core/internal/ratelimit.py, is availability-only (no data exposure or code execution), and requires a dual-stack configuration where IPv4 traffic reaches the application as ::ffff:a.b.c.d addresses - single-stack or non-mapped setups are outside the affected condition. This is a moderate, availability-only issue rather than a top-tier emergency; no public exploit code has been identified at time of analysis, and the vendor has released a fix in 65.23.0.

RemediationAI

Vendor-released patch: upgrade django-allauth to 65.23.0 or later, which contains the truncate_ip() correction from commit https://codeberg.org/allauth/django-allauth/commit/2fbbaecfabf7a34af96edea399e2e4e800a68810 and is documented in https://codeberg.org/allauth/django-allauth/src/tag/65.23.0/ChangeLog.rst. Because the vulnerable branch is visible in the 65.22.1 tag of allauth/core/internal/ratelimit.py, teams that cannot move to 65.23.0 immediately can backport that specific commit, but this is an unverified partial fix until the release is adopted. Where an upgrade is deferred, the deployment condition itself is the lever: the assessed conditions state that single-stack or non-mapped configurations are not affected, so ensuring IPv4 clients are not presented as IPv4-mapped IPv6 addresses removes the shared-key collapse - at the trade-off of reduced IPv6 reachability or a proxy/front-end change in how client addresses are surfaced to the application. Given the availability-only impact and the this_month priority, schedule the upgrade in the current maintenance window rather than as an emergency change, and monitor authentication and password-reset error rates for signs of a shared rate-limit bucket being exhausted while the upgrade is pending.

Affected VersionsENISA

django-allauth 65.17.0 <65.23.0

Affected Packages

euvd django_allauth fix: 65.23.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

django-allauth ships an internal rate-limiting helper in allauth/core/internal/ratelimit.py whose truncate_ip() function normalises client addresses into the key used for per-IP throttling. On dual-stack servers, IPv4 clients frequently appear to the WSGI/ASGI stack as IPv4-mapped IPv6 addresses in the ::ffff:0:0/96 range. Because truncate_ip() treats such addresses as ordinary IPv6 and truncates them to a shared prefix, all mapped IPv4 clients derive the same rate-limit key, so the throttle degenerates from per-client accounting into one global bucket. The weakness class is CWE-645 (Overly Restrictive Account Lockout Mechanism): the protection mechanism itself becomes the denial-of-service vector, because one attacker can consume the shared bucket and cause authentication, registration and password-reset flows to be refused for every other IPv4 user. The affected CPE is cpe:2.3:a:allauth:django-allauth, bounded to versions 65.17.0 up to but not including 65.23.0; the vulnerable logic is visible in the 65.22.1 tag at ratelimit.py lines 135-147, and the corrective change is the upstream commit 2fbbaecfabf7a34af96edea399e2e4e800a68810 referenced from the CVE record. Impact is limited to temporary denial of authentication for IPv4 users, which is consistent with the assessed CVSS:3.1 vector AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L - high attack complexity reflects the dual-stack/IPv4-mapped precondition rather than any timing or memory-grooming requirement, which the available sources do not describe.

Know when Allauth gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 3.7 LOW

Network-reachable and unauthenticated (AV:N/PR:N), but only triggerable on dual-stack IPv4-mapped-IPv6 deployments (AC:H), with limited availability-only impact on auth rate-limiting (C:N/I:N/A:L).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

django-allauth 65.17.0 before 65.23.0 contains a denial of service vulnerability in truncate_ip() that collapses all IPv4-mapped IPv6 clients into one shared rate-limit key. Unauthenticated attackers on dual-stack deployments can exhaust per-IP limits for login, signup or password reset, blocking legitimate IPv4 users.

Threat Intelligence Overview

EPSS Score
0.5%
Top 67% exploitable
Prevalence
Medium
popular Django authentication library, but framework-specific and config-dependent footprint
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy