CVE-2024-45231Djangoproject Django
Medium 5.3 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 65
- Auth required
- No
- Published
- Oct 8, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-203
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
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).
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 5.1 < 5.1.1 |
5.1.1 |
pip install "django>=5.1.1" |
| PyPI | django |
≥ 5.0 < 5.0.9 |
5.0.9 |
pip install "django>=5.0.9" |
| PyPI | django |
< 4.2.16 |
4.2.16 |
pip install "django>=4.2.16" |
| PyPI | django |
< 4.2.16 |
4.2.16 |
pip install "django>=4.2.16" |
| PyPI | django |
≥ 5.0 < 5.0.9 |
5.0.9 |
pip install "django>=5.0.9" |
| PyPI | django |
≥ 5.1 < 5.1.1 |
5.1.1 |
pip install "django>=5.1.1" |
Per OSV / GitHub Advisories (GHSA-rrqc-c2jx-6jgv, PYSEC-2026-1297). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 4.2.0 < 4.2.16 |
| djangoproject | django | ≥ 5.0 < 5.0.9 |
| djangoproject | django | 5.1 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- docs.djangoproject.com Vendor Advisory
- groups.google.com Permissions Required
- www.djangoproject.com Vendor Advisory