LOW3.7
PYSEC-2026-1297
Django allows enumeration of user e-mail addresses
Quick fix
PYSEC-2026-1297 — django: upgrade to the fixed version with the command below.
pip install --upgrade 'django>=4.2.16'Details
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).
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45231[ADVISORY]
- https://github.com/django/django/commit/3c733c78d6f8e50296d6e248968b6516c92a53ca[FIX]
- https://github.com/django/django/commit/96d84047715ea1715b4bd1594e46122b8a77b9e2[FIX]
- https://github.com/django/django/commit/bf4888d317ba4506d091eeac6e8b4f1fcc731199[FIX]
- https://docs.djangoproject.com/en/dev/releases/security[WEB]
- https://github.com/django/django[PACKAGE]
- https://groups.google.com/forum/#%21forum/django-announce[WEB]
- https://www.djangoproject.com/weblog/2024/sep/03/security-releases[WEB]
- https://pypi.org/project/django[PACKAGE]
- https://github.com/advisories/GHSA-rrqc-c2jx-6jgv[ADVISORY]