CVE-2025-27556 Django Potential Denial of Service (DoS) on Windows

Medium 5.8 Published Updated

Attackers can cause denial of service in Django applications on Windows by sending inputs with many Unicode characters, exploiting slow NFKC normalization.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-27556?

CVE-2025-27556 is a medium-severity denial of service vulnerability in Djangoproject Django, published on 2 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-770

Which versions are affected by CVE-2025-27556?

6 open source packages ship an affected version, including django and Django. It affects 1 product.

PackageAffectedFixed in
django BitnamiFrom 5.0.05.0.14, 5.1.8
django PyPIFrom 5.05.0.14
django PyPIFrom 5.15.1.8, 5.0.14
django PyPIFrom 5.15.1.8
Django PyPIFrom 5.05.0.14
Django PyPIFrom 5.15.1.8
Linux distribution packages (1)
python-Django openSUSE:TumbleweedAll versions5.1.8-1.1

Products include Djangoproject Django.

How do I fix CVE-2025-27556?

Upgrade django to a fixed version for your release line: 5.0.14 or 5.1.8.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-27556 being exploited?

There is no known exploitation of CVE-2025-27556 in the wild and no public exploit code.

All Djangoproject Django vulnerabilities

Sources

Also known as BIT-django-2025-27556, GHSA-wqfg-m96j-85vm, PYSEC-2025-14, openSUSE-SU-2025:14986-1.

Is CVE-2025-27556 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free