CVE-2026-77050 Potential denial-of-service vulnerability in get_supported_language_variant()

Medium 6.9 Published Updated

Attackers can cause denial of service in Django applications by submitting many long language codes that exhaust memory in the translation cache.

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

What is CVE-2026-77050?

CVE-2026-77050 is a medium-severity denial of service vulnerability in djangoproject Django, published on 6 Oct 2026. 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 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18. `django.utils.translation.get_supported_language_variant()` is subject to a potential denial-of-service attack when processing many distinct, very long language codes, which are retained as keys in an in-memory cache and consume process memory. Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected. Django would like to thank Gleb Lizunov for reporting this issue.

Weakness: CWE-789

Which versions are affected by CVE-2026-77050?

How do I fix CVE-2026-77050?

Upgrade to a fixed version.

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-2026-77050 being exploited?

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

Sources

Also known as DEBIAN-CVE-2026-77050, GHSA-mxcg-2f2x-4q92, UBUNTU-CVE-2026-77050.

Is CVE-2026-77050 in your software?

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

Check your SBOMs for free