CVE-2025-27556: Django Denial of Service Vulnerability on Windows Systems

django Updated 02 Oct 2025

Summary

02/04/2025
Yes i
Moderate
5.8

CVE-2025-27556: Django Potential Denial of Service (DoS) on Windows. Affects django across 2 version ranges.

>= 5.0, < 5.0.14 >= 5.1, < 5.1.8

Fixed in 5.0.14 or 5.1.8, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2025-27556 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It is widely used for building web applications and provides a robust set of features, including an authentication system, URL routing, and an ORM for database interactions. However, certain versions of Django are vulnerable to a Denial of Service (DoS) attack on Windows due to slow NFKC normalization, which can be exploited through specific inputs containing a large number of Unicode characters.

Vulnerability Detail

The vulnerability arises from the NFKC normalization process in Django versions 5.1 before 5.1.8 and 5.0 before 5.0.14, which is notably slow on Windows systems. This slowness can be exploited by attackers to create inputs that cause the LoginView, LogoutView, and set_language functions to hang or crash, leading to a potential denial-of-service condition. The impact of this vulnerability is moderate, as it can disrupt service availability for users.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 5.0, < 5.0.14 5.0.14
    pip install --upgrade "django==5.0.14"
  • >= 5.1, < 5.1.8 5.1.8
    pip install --upgrade "django==5.1.8"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, you can limit the input size for the affected views to prevent the processing of excessively large Unicode character inputs. This can be implemented by adding validation checks in your view functions to restrict the length of input data.

Conclusion

In summary, the Django vulnerability CVE-2025-27556 poses a moderate risk of denial-of-service attacks on Windows systems. It is crucial for developers using affected versions to update to the latest patched versions to mitigate this risk. Additionally, implementing input validation can serve as a temporary workaround while updates are applied.

See every vulnerability recorded for django →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 5.8, indicating a moderate severity level.

Django versions 5.1 before 5.1.8 and 5.0 before 5.0.14 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The potential consequences include service disruption and denial of access for users due to the slow processing of certain inputs.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just the Pipfile.lock.

Related vulnerabilities

Recent vulnerabilities recorded for django.

How To Fix

Latest published version: 6.1.2 as of 22 Oct 2026

pip install --upgrade "django==6.1.2"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • >= 5.0, < 5.0.14 5.0.14
    pip install --upgrade "django==5.0.14"
  • >= 5.1, < 5.1.8 5.1.8
    pip install --upgrade "django==5.1.8"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback