# CVE-2026-137993: django-allauth 65.17.0 before 65.23.0 Denial of Service via truncate_ip() Rate-Limit Key

> Unauthenticated attackers on dual-stack django-allauth deployments can exhaust login rate limits, blocking legitimate users.

- **Severity:** Medium 6.3 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** No
- **Published:** 27 Nov 2026
- **Updated:** 27 Nov 2026
- **Also known as:** DEBIAN-CVE-2026-137993, GHSA-ccp6-5xj7-3xjg

## What is CVE-2026-137993?

CVE-2026-137993 is a medium-severity denial of service vulnerability in django-allauth, published on 27 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

Weakness: CWE-645 (Overly Restrictive Account Lockout Mechanism)

## Which versions are affected by CVE-2026-137993?

1 open source package ship an affected version, including django-allauth.

Only installations with a non-default setting turned on are exposed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `django-allauth` | PyPI | `pkg:pypi/django-allauth` | From 65.17.0 | 65.23.0 |

## How do I fix CVE-2026-137993?

Upgrade django-allauth to 65.23.0 or later.

## Is CVE-2026-137993 being exploited?

There is no known exploitation of CVE-2026-137993 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-137993 and fix it if it is affected.

What it is: CVE-2026-137993 is a medium-severity denial of service vulnerability in django-allauth, published on 27 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-137993 in the wild and no public exploit code.
Exposure: Only installations with a non-default setting turned on are exposed.

Affected packages and fixed versions:
- django-allauth (PyPI): affected from 65.17.0; fixed in 65.23.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-137993/ (Markdown: https://insights.sbomify.com/CVE-2026-137993/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-137993
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-137993
- OSV: https://osv.dev/vulnerability/CVE-2026-137993

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-137993/
Summaries are generated and may contain mistakes; the official description above is the record.
