What’s Vulnerable › Vulnerabilities
CVE-2024-45231: Django allows enumeration of user e-mail addresses
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-10-08 · updated 2026-06-17
- Weakness: CWE-203
Description
An issue was discovered in Django v5.1.1, v5.0.9, and v4.2.16. The django.contrib.auth.forms.PasswordResetForm class, when used in a view implementing password reset flows, allows remote attackers to enumerate user e-mail addresses by sending password reset requests and observing the outcome (only when e-mail sending is consistently failing).
Affected products
- Django: from 4.2.0 before 4.2.16; from 5.0 before 5.0.9; 5.1 — fixed in 4.2.16, 5.0.9
- Pypi Django: before 4.2.16; from 5.0 before 5.0.9; from 5.1 before 5.1.1; 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.1, 1.1.1 (+356) — fixed in 4.2.16, 5.0.9, 5.1.1
How to fix
Upgrade to a fixed version: Django 4.2.16, 5.0.9; Pypi Django 4.2.16, 5.0.9, 5.1.1. Check the vendor advisory for mitigations.
References
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- https://www.djangoproject.com/weblog/2024/sep/03/security-releases/
Get alerted when CVE-2024-45231 or the next vulnerability affects your stack