Advisory

PYSEC-2026-1297

Also known as: BIT-django-2024-45231, CVE-2024-45231, GHSA-rrqc-c2jx-6jgv

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

Low Basis: CVSS v3 score 3.7, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:57 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 0, fixed 4.2.16, introduced 5.0, fixed 5.0.9, introduced 5.1, fixed 5.1.1 (ecosystem)

Fixed versions

4.2.16, 5.0.9, 5.1.1

Fix

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

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: PyPA Advisory Database · CC BY 4.0

Sources & licences