CVE-2026-137993 in django-allauthinfo

Summary

by MITRE • 11/27/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/27/2026

The django-allauth library version 65.17.0 prior to 65.23.0 contains a critical denial of service vulnerability within the truncate_ip() function that fundamentally compromises the integrity of IP-based rate limiting mechanisms in dual-stack network environments. This flaw arises from an incorrect implementation of IPv4-mapped IPv6 address handling, where distinct client addresses are erroneously normalized into a single shared identifier for rate-limiting purposes. Specifically, when a server operates on both IPv4 and IPv6 protocols, the vulnerability causes all incoming requests originating from clients using IPv4-mapped IPv6 addresses to be grouped under one common key rather than being treated as unique individual sources. This architectural oversight effectively neutralizes the protective boundary that per-IP rate limiting is designed to establish, creating a significant security gap in authentication and account management workflows.

From an operational perspective, this vulnerability allows unauthenticated attackers to bypass standard brute-force protections by exhausting the allowed request limits for legitimate users sharing the same mapped address space or simply targeting the single collapsed key. An attacker can flood the login, signup, or password reset endpoints with requests that are all counted against a single rate-limit bucket. Once this shared limit is exceeded, subsequent valid requests from any other user relying on similar network configurations will be rejected by the application's security middleware. This results in a denial of service for legitimate users who may not even be involved in the attack but suffer collateral damage due to the flawed aggregation logic. The impact is particularly severe because it targets core authentication flows that are frequently targeted by automated attacks, thereby rendering these essential services unavailable during active exploitation attempts.

This vulnerability aligns with Common Weakness Enumeration (CWE) category CWE-780: Use of RSA Algorithm without OAEP, although more accurately it maps to CWE-693: Protection Mechanism Failure and specifically relates to improper input validation leading to resource exhaustion. In the context of the MITRE ATT&CK framework, this flaw facilitates Denial of Service (T1499) by enabling attackers to disrupt service availability through rate limit bypass techniques. It also touches upon Improper Restriction of Excessive Authentication Attempts (TA0006), as it undermines the mechanism designed to mitigate credential stuffing and brute force attacks. The failure lies not in the absence of a protection mechanism but in its incorrect implementation, which creates a false sense of security while actually amplifying the impact of volumetric attacks against authentication endpoints.

To mitigate this vulnerability, organizations must immediately upgrade django-allauth to version 65.23.0 or later where the truncate_ip() function has been corrected to properly distinguish between distinct IPv4 and IPv6 addresses without erroneously collapsing mapped addresses into a single key. Until an upgrade is feasible, administrators should consider implementing additional rate limiting layers at the network perimeter using reverse proxies such as Nginx or Apache that can handle dual-stack address normalization more robustly than the application layer alone. Furthermore, deploying Web Application Firewalls with advanced behavioral analysis capabilities can help detect and block anomalous traffic patterns associated with this specific type of exhaustion attack. Regular security audits focusing on authentication flow configurations are recommended to ensure that no other similar logic errors exist within custom rate limiting implementations or third-party integrations.

Responsible

VulnCheck

Reservation

11/27/2026

Disclosure

11/27/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!