Intel

AIKIDO-2026-915271

django is vulnerable to Denial of Service (DoS)

CVE-2026-77050Published Oct 16, 2026
October 16, 2026

35

CVE Score

Low

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The entry point is django.utils.translation.trans_real.get_supported_language_variant(), which is reached whenever Django resolves a client-supplied language code (e.g., from the Accept-Language header, a locale-prefixed URL, or the language cookie) during request processing. Before the fix, every distinct lang_code value, including arbitrarily long attacker-controlled strings, was cached by an lru_cache(maxsize=1000) wrapping the full function, and no truncation occurred before caching, so many unique long codes could consume significant process memory via cache retention and large repeated string keys. The fix moves caching to _get_supported_language_variant() and rejects or truncates codes longer than LANGUAGE_CODE_MAX_LENGTH before that 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 you resolve a client-supplied language code through LocaleMiddleware, a locale-prefixed URL, or the language cookie.

Package

Versions

5.2 - 5.2.17

Fixed in 5.2.18

6.0 - 6.0.8

Fixed in 6.0.9

6.1 - 6.1.1

Fixed in 6.1.2

Background info

django is vulnerable to Denial of Service (DoS) in versions 6.1 - 6.1.1, 6.0 - 6.0.8 and 5.2 - 5.2.17.

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