CVE-2024-45231: Django allows enumeration of user e-mail addresses
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).
Published Oct 8, 2024 · Updated Oct 30, 2024
Affected packages
Django
- Ecosystem
- PyPI
- Affected
- >= 5.1, < 5.1.1
- Fixed in
- 5.1.1
- Check
pip show Django
Django
- Ecosystem
- PyPI
- Affected
- >= 5.0, < 5.0.9
- Fixed in
- 5.0.9
- Check
pip show Django
Django
- Ecosystem
- PyPI
- Affected
- < 4.2.16
- Fixed in
- 4.2.16
- Check
pip show Django
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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).
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45231
- 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
- https://github.com/django/django/commit/3c733c78d6f8e50296d6e248968b6516c92a53ca
- https://github.com/django/django/commit/96d84047715ea1715b4bd1594e46122b8a77b9e2
- https://github.com/django/django/commit/bf4888d317ba4506d091eeac6e8b4f1fcc731199
- https://github.com/advisories/GHSA-rrqc-c2jx-6jgv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-15307
Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing
high8.8Aug 4, 2026CVE-2026-35192
Django Uses Persistent Cookies Containing Sensitive Information
low2.3May 5, 2026CVE-2026-5766
Django has an Improper Handling of Length Parameter Inconsistency
medium5.3May 5, 2026CVE-2026-6907
Django Uses Cache Containing Sensitive Information
low4.3May 5, 2026CVE-2026-33033
Django has potential DoS via MultiPartParser through crafted multipart uploads
medium6.5Apr 7, 2026CVE-2026-33034
Django: SGI requests with a missing or understated `Content-Length` header could bypass the `DATA_UPLOAD_MAX_MEMORY_SIZE` limit
high7.5Apr 7, 2026
