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).
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | django | < 4.2.16, >= 5.0, < 5.0.9, >= 5.1, < 5.1.1 | 4.2.16, 5.0.9, 5.1.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45231
- https://github.com/django/django/commit/3c733c78d6f8e50296d6e248968b6516c92a53ca
- https://github.com/django/django/commit/96d84047715ea1715b4bd1594e46122b8a77b9e2
- https://github.com/django/django/commit/bf4888d317ba4506d091eeac6e8b4f1fcc731199
- https://docs.djangoproject.com/en/dev/releases/security
- https://github.com/django/django
- https://groups.google.com/forum/#%21forum/django-announce
- https://www.djangoproject.com/weblog/2024/sep/03/security-releases
- https://pypi.org/project/django
- https://github.com/advisories/GHSA-rrqc-c2jx-6jgv
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N- Weakness (CWE)
CWE-203, CWE-204- Platform
- Python (PyPI)
- Package
django- Disclosed
- 08.10.2024
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - GHSA-rrqc-c2jx-6jgv - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-1297 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: django
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 162
- First → latest
- 10.2007 08.2026
- Without a fix
- 1
- Exploited in attacks
- 0
Severity breakdown
- Critical 16
- High 65
- Medium 63
- Low 18
Disclosures per year
- 2017: 3
- 2018: 5
- 2019: 11
- 2020: 6
- 2021: 8
- 2022: 14
- 2023: 7
- 2024: 14
- 2025: 12
- 2026: 26
earlier: 56
-
Django allows enumeration of user e-mail addresses this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.