Advisory

GHSA-rrqc-c2jx-6jgv

Also known as: BIT-django-2024-45231, CVE-2024-45231, PYSEC-2026-1297

Summary

Django allows enumeration of user e-mail addresses

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-10-08 18:33 UTC
Modified
2026-07-07 17:57 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 5.1, fixed 5.1.1 (ecosystem)

Fixed versions

5.1.1

Fix

  • Fixed version 5.1.1
    pip install --upgrade django==5.1.1

django

PyPI · All systems

Affected

  • introduced 5.0, fixed 5.0.9 (ecosystem)

Fixed versions

5.0.9

Fix

  • Fixed version 5.0.9
    pip install --upgrade django==5.0.9

django

PyPI · All systems

Affected

  • introduced 0, fixed 4.2.16 (ecosystem)

Fixed versions

4.2.16

Fix

  • Fixed version 4.2.16
    pip install --upgrade django==4.2.16

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences