Django security releases issued: 6.1.2, 6.0.9, and 5.2.18
Posted by Sarah Boyce on Oct. 6, 2026
Published By From Django News · 1 min read
Security6.1.2, 6.0.9, and 5.2.18
In accordance with our security release policy , the Django team is issuing releases for Django 6.1.2 , Django 6.0.9 , and Django 5.2.18 . These releases address the security issues detailed below. We encourage all users of Django to upgrade as soon as possible.
django.utils.translation.get_supported_language_variant() was subject to a potential denial-of-service attack when processing many distinct, very long language codes. Language codes were used as keys in an in-memory cache before their length was limited, potentially consuming excessive process memory.
To mitigate this vulnerability, language codes longer than 500 characters are now rejected or truncated before the cached lookup.
This issue has severity "low" according to the Django security policy .
Thanks to Gleb Lizunov for the report.
This is an excerpt. The full article is published by Django News.
Answers to common questions regarding this article's topic, architecture, and practical applications.
Django main Django 6.1 Django 6.0 Django 5.2 Resol
General
Spatial lookups accepted raster values provided as bytes without requiring
them to be explicitly wrapped in django.contrib.gis.gdal.GDALRaster.
Although these values were opened through GDAL's in-memory virtual filesystem,
they could contain a VRT document referencing an external raster source. This
could cause GDAL to issue network requests as the Django process user while
preparing the lookup. This issue could be exploited by applications that
General
django.utils.translation.get_supported_language_variant() was subject to
a potential denial-of-service attack when processing many distinct, very long
language codes. Language codes were used as keys in an in-memory cache before
their length was limited, potentially consuming excessive process memory. To mitigate this vulnerability, language codes longer than 500 characters are
now rejected or truncated before the cached lookup. This issue has se
General
django.utils.http.parse_header_parameters() was subject to a potential denial-of-service attack due to quadratic time complexity when parsing a value with many separators inside a quoted parameter. An unauthenticated request could reach this parsing through headers such as Accept or Content-Type, for instance via the content negotiation performed by HttpRequest.accepts(). The per-call length limit does not bound the combined size of repeated head
General
In accordance with our security release policy, the Django team is issuing releases for Django 6.1.2, Django 6.0.9, and Django 5.2.18. These releases address the security issues detailed below. We encourage all users of Django to upgrade as soon as possible.