HIGH7.5
PYSEC-2025-14
Quick fix
PYSEC-2025-14 — django: upgrade to the fixed version with the command below.
pip install --upgrade 'django>=5.0.14'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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://www.djangoproject.com/weblog/2025/apr/02/security-releases/[ARTICLE]
- https://docs.djangoproject.com/en/dev/releases/security/[WEB]
- https://groups.google.com/g/django-announce[WEB]
- http://www.openwall.com/lists/oss-security/2025/04/02/2[WEB]
- https://github.com/advisories/GHSA-wqfg-m96j-85vm[ADVISORY]