Intel

AIKIDO-2026-793157

Django is vulnerable to Denial of Service (DoS)

CVE-2026-15337Published Aug 7, 2026
August 7, 2026

53

CVE Score

Medium

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

Django's check_for_language helper caches each checked language code as a key in an in-memory translation cache. When the set_language view is routed, externally supplied POST data can submit many distinct, very long language codes that are retained as cache keys and consume process memory. This enables a denial-of-service condition, though the impact is bounded by the request size limit and the cache's maximum entry count. The fix rejects language codes longer than 500 characters before the cached lookup.

How do I fix this?

Upgrade the Django library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application explicitly routes the django.views.i18n.set_language view.

Package

Versions

5.2.0 - 5.2.16

Fixed in 5.2.17

6.0.0 - 6.0.7

Fixed in 6.0.8

Background info

Django is vulnerable to Denial of Service (DoS) in versions 5.2.0 - 5.2.16 and 6.0.0 - 6.0.7.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea