CVE-2024-41990: Django Denial-of-Service Vulnerability

django Updated 02 Oct 2025

Summary

07/08/2024
Yes i
Moderate
5.3

CVE-2024-41990: Django vulnerable to a denial-of-service attack. Affects django across 2 version ranges.

>= 4.2, < 4.2.15 >= 5.0, < 5.0.8

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

Also tracked for

The same CVE-2024-41990 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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Django is a popular Python web framework that provides a set of tools and libraries for building web applications. It is widely used due to its simplicity, scalability, and security features. However, Django versions 5.0 before 5.0.8 and 4.2 before 4.2.15 are vulnerable to a denial-of-service attack. This vulnerability affects the 'urlize()' and 'urlizetrunc()' template filters when processing very large inputs with a specific sequence of characters.

Vulnerability Detail

The vulnerability in Django allows an attacker to launch a denial-of-service attack by exploiting the 'urlize()' and 'urlizetrunc()' template filters. By providing very large inputs with a specific sequence of characters, an attacker can cause the application to consume excessive resources, leading to a denial of service. This can impact the availability and performance of the affected Django application.

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.

  • >= 4.2, < 4.2.15 4.2.15
    pip install --upgrade "django==4.2.15"
  • >= 5.0, < 5.0.8 5.0.8
    pip install --upgrade "django==5.0.8"

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

Workaround

There is no known workaround for this vulnerability. It is essential to apply the recommended fix by upgrading Django to the patched versions.

Conclusion

Django versions 5.0 before 5.0.8 and 4.2 before 4.2.15 are vulnerable to a denial-of-service attack. Upgrading to the patched versions is crucial to mitigate this vulnerability and ensure the proper functioning of the 'urlize()' and 'urlizetrunc()' template filters.

See every vulnerability recorded for django →

Share this vulnerability

FAQ

This vulnerability can lead to a denial-of-service attack, causing the affected Django application to consume excessive resources and potentially impacting its availability and performance.

Django versions 5.0 before 5.0.8 and 4.2 before 4.2.15 are affected by this vulnerability.

You can check the version of Django in your application by running the command 'python -m django --version' in your terminal.

At the time of this advisory, there are no known public exploits specifically targeting this vulnerability.

Yes, the CVSS score for this vulnerability is 5.3 (Moderate).

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.

  • >= 4.2, < 4.2.15 4.2.15
    pip install --upgrade "django==4.2.15"
  • >= 5.0, < 5.0.8 5.0.8
    pip install --upgrade "django==5.0.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