CVE-2026-15337 Potential denial-of-service vulnerability in check_for_language()

Medium 6.9 Published Updated

Attackers can cause denial of service in Django by sending many long language codes to the set_language view, which is not routed by default.

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-15337?

CVE-2026-15337 is a medium-severity denial of service vulnerability in Djangoproject Django, published on 4 Aug 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 5.2 before 5.2.17 and 6.0 before 6.0.8. `django.utils.translation.check_for_language()` is subject to a potential denial-of-service attack when given many distinct, very long language codes, which are retained as keys in an in-memory cache and consume process memory. Such codes reach the function through the `django.views.i18n.set_language()` view, which is not routed by default. The consumed memory is bounded, since request data is limited by the `DATA_UPLOAD_MAX_MEMORY_SIZE` setting (default 2.5 MB) and the cache holds a fixed maximum number of entries. 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 Jaeyoung Jang for reporting this issue.

Weakness: CWE-789

Which versions are affected by CVE-2026-15337?

1 open source package ship an affected version, including django. It affects 1 product.

PackageAffectedFixed in
django BitnamiAll versions5.2.17, 6.0.8

Products include Djangoproject Django.

How do I fix CVE-2026-15337?

Upgrade django to a fixed version for your release line: 5.2.17 or 6.0.8.

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-15337 being exploited?

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

All Djangoproject Django vulnerabilities

Sources

Also known as BIT-django-2026-15337, DEBIAN-CVE-2026-15337, GHSA-2f9m-qhxg-w5v5, MINI-9p5g-wh9h-2v9w, UBUNTU-CVE-2026-15337.

Is CVE-2026-15337 in your software?

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

Check your SBOMs for free