Advisory

PYSEC-2025-14

Also known as: BIT-django-2025-27556, CVE-2025-27556, GHSA-wqfg-m96j-85vm

Summary

The record has no summary.

Details

An issue was discovered in Django 5.1 before 5.1.8 and 5.0 before 5.0.14. The NFKC normalization is slow on Windows. As a consequence, django.contrib.auth.views.LoginView, django.contrib.auth.views.LogoutView, and django.views.i18n.set_language are subject to a potential denial-of-service attack via certain inputs with a very large number of Unicode characters.

Severity

Not rated by the source.

Dates

Published
2025-04-02 13:15 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 5.1, fixed 5.1.8, introduced 5.0, fixed 5.0.14 (ecosystem)

Fixed versions

5.1.8, 5.0.14

Fix

  • Fixed version 5.1.8
    pip install --upgrade django==5.1.8
  • Fixed version 5.0.14
    pip install --upgrade django==5.0.14

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