Announce: https://www.djangoproject.com/weblog/2026/dec/02/security-releases/
CVE JSON Record for CVE-2026-115868: https://www.cve.org/CVERecord?id=CVE-2026-115868
CVE JSON Record for CVE-2026-119642: https://www.cve.org/CVERecord?id=CVE-2026-119642
CVE JSON Record for CVE-2026-124827: https://www.cve.org/CVERecord?id=CVE-2026-124827
CVE JSON Record for CVE-2026-125673: https://www.cve.org/CVERecord?id=CVE-2026-125673
CVE JSON Record for CVE-2026-127929: https://www.cve.org/CVERecord?id=CVE-2026-127929
CVE JSON Record for CVE-2026-132092: https://www.cve.org/CVERecord?id=CVE-2026-132092
CVE JSON Record for CVE-2026-132809: https://www.cve.org/CVERecord?id=CVE-2026-132809
In accordance with our security release policy, the Django team is issuing releases for Django 6.1.4, Django 6.0.11, and Django 5.2.20. These releases address the security issues detailed below. We encourage all users of Django to upgrade as soon as possible.
CVE-2026-124827: Server-side file-write via RasterField assignment
Assigning a raster data definition to django.contrib.gis.db.models.RasterField with a user-controlled name parameter and a non-default driver could cause GDAL to write a file to an attacker-controlled location. Depending on the raster driver, this could enable remote code execution. Because RasterField falls back to the CharField form field, the flaw was reachable by default on models with RasterField registered in the admin or using ModelForms or writable model serializers.
RasterField now defaults editable to False, excluding it from a ModelForm unless explicitly included. RasterField also now raises GDALException when assigning a dict or JSON string specifying a non-default driver. To use other drivers, wrap the definition in GDALRaster to signify the value is trusted. This exception only limits server-side file writes. Server-side request forgery is still possible if untrusted input is assigned to RasterField. See raster security considerations and implement validation before accepting untrusted input.
Geometry fields were not affected. RasterField is only implemented on PostGIS.
This issue has severity "high" according to the Django security policy.
Thanks to Mohammed Fathy for the report.
CVE-2026-115868: Potential cross-site scripting vulnerability in truncatecharshtml
The truncatecharshtml template filter and the django.utils.text.Truncator.chars() method (with html=True) were subject to a potential cross-site scripting (XSS) attack when certain inputs whose text length matched the truncation length were processed and rendered in an HTML attribute.
This issue has severity "moderate" according to the Django security policy.
Thanks to JoeCyberTech for the report.
CVE-2026-125673: Potential cache poisoning via dot segments in request paths
django.middleware.cache.UpdateCacheMiddleware and django.views.decorators.cache.cachepage() were affected by a bug in django.http.HttpRequest.buildabsoluteuri(), which incorrectly normalized request paths containing . or .. segments. Under certain deployment and URL configurations, this could allow an unauthenticated attacker to cause cached responses to be served for unintended URLs.
django.http.HttpRequest.buildabsoluteuri() now preserves dot segments in the request path when called without a location. Existing cached responses are not invalidated, so users should clear any potentially affected caches after upgrading.
This issue has severity "low" according to the Django security policy.
Thanks to 4drez for the report.
CVE-2026-119642: Information leakage in admin changelist via "pk" alias for OneToOneField
The admin changelist allowed staff users with view permissions on a registered model with a custom django.db.models.OneToOneField primary key to enumerate data from those models by including the pk alias in the querystring and performing repeated lookup searches. This requires sufficient knowledge of the fields on the related model. It is a special case of CVE-2010-4534.
Models using multi-table inheritance were affected by default, as the implicit primary key field created by Django is a OneToOneField.
This issue has severity "low" according to the Django security policy.
Thanks to JoeCyberTech for the report.
CVE-2026-127929: Information leakage in admin changelist via reverse relations
The admin changelist allowed staff users with view permissions on a registered model to enumerate values on those models via manipulating the querystring to perform repeated lookup searches. This requires knowledge of the related model names or django.db.models.ForeignKey.relatedqueryname overrides. It is a special case of CVE-2010-4534 that regressed in Django 5.0.3.
This issue has severity "low" according to the Django security policy.
Thanks to OpenAI for the report.
CVE-2026-132809: Heap buffer overflow in OGRGeometry.wkb
The django.contrib.gis.gdal.OGRGeometry.wkb property allocated an undersized buffer for geometries larger than 4GB on 64-bit platforms. This could result in segmentation faults or undefined behavior. The hex and geos properties of OGRGeometry and its pickling were also affected.
This issue has severity "low" according to the Django security policy.
Thanks to Zhixi "Jace" Sun for the report.
CVE-2026-132092: Potential SQL injection in range and in lookups
The range and in lookups were subject to SQL injection in queries involving aliases or key transforms containing percent signs. The range flaw required incorrectly using more than two right-hand side values. The in flaw required a bilateral transform.
The range lookup now requires exactly two right-hand side values.
Note that using percent signs in column aliases and key transforms was deprecated in Django 6.0 and is scheduled for removal in Django 2028.
This issue has severity "high" according to the Django security policy.
Thanks to Cristian Panaro for the report.
Affected supported versions
Django main Django 6.1 Django 6.0 Django 5.2
Resolution
Patches to resolve the issue have been applied to Django's main, 6.1, 6.0, and 5.2 branches. The patches may be obtained from the following changesets.
CVE-2026-124827: Server-side file-write via RasterField assignment
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-115868: Potential cross-site scripting vulnerability in truncatecharshtml
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-125673: Potential cache poisoning via dot segments in request paths
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-119642: Information leakage in admin changelist via "pk" alias for OneToOneField
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-127929: Information leakage in admin changelist via reverse relations
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-132809: Heap buffer overflow in OGRGeometry.wkb
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-132092: Potential SQL injection in range and in lookups
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
The following releases have been issued
Django 6.1.4 (tarball | checksums) Django 6.0.11 (tarball | checksums) Django 5.2.20 (tarball | checksums)
The PGP key ID used for this release is Jacob Walls: 131403F4D16D8DC7
General notes regarding security reporting
As always, we ask that potential security issues be reported via private email to security () djangoproject com, and not via Django's Trac instance, nor via the Django Forum. Please see our security policies for further information.
An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. django.middleware.cache.UpdateCacheMiddleware and django.views.decorators.cache.cachepage() are affected by a bug in django.http.HttpRequest.buildabsoluteuri(), which incorrectly normalizes request paths containing . or .. segments. Under certain deployment and URL configurations, this allows an unauthenticated attacker to poison the cache, causing cached responses to be served for unintended URLs. 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 4drez for reporting this issue.
An issue was discovered in Django 6.1 before 6.1.4, 6.0 before 6.0.11, and 5.2 before 5.2.20. The admin changelist allows staff users with view permission on a registered model with a custom OneToOneField primary key to enumerate related model data via repeated lookup searches using the "pk" alias in the query string. 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 JoeCyberTech for reporting this issue.
Announce: https://www.djangoproject.com/weblog/2026/oct/06/security-releases/
CVE JSON Record for CVE-2026-77050: https://www.cve.org/CVERecord?id=CVE-2026-77050
CVE JSON Record for CVE-2026-84429: https://www.cve.org/CVERecord?id=CVE-2026-84429
CVE JSON Record for CVE-2026-87890: https://www.cve.org/CVERecord?id=CVE-2026-87890
CVE JSON Record for CVE-2026-87975: https://www.cve.org/CVERecord?id=CVE-2026-87975
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.
CVE-2026-77050: Potential denial-of-service vulnerability in getsupportedlanguagevariant()
django.utils.translation.getsupportedlanguagevariant() 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.
CVE-2026-84429: Potential denial-of-service vulnerability in HTTP header parsing
django.utils.http.parseheaderparameters() 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 headers.
The undocumented django.utils.http.parseheaderparameters() function now uses Python's email.message.Message for parsing. As a result, parsing of some malformed or unusual header values may differ, for example, RFC 2231 values with a missing encoding are now decoded.
This issue has severity "moderate" according to the Django security policy.
Thanks to Jisung Chae for the report.
CVE-2026-87890: Potential request forgery via spatial lookup byte values
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 passed attacker-controlled bytes directly to a spatial lookup. It was overlooked in the fix for CVE-2026-15307.
To mitigate this issue, raster values provided as bytes must now be wrapped in GDALRaster before being used in spatial lookups. Byte values representing valid hexadecimal geometries remain accepted.
This is a backward incompatible change. As a reminder, all untrusted user input should be validated before use.
This issue has severity "moderate" according to the Django security policy.
Thanks to sicksec for the report.
CVE-2026-87975: Privilege abuse in model formsets with editable primary keys
Model formsets incorrectly allowed forged POST data to either delete instances outside the limiting queryset or create instances via edit-only formsets when the model's primary key could be set through the form, such as with: a OneToOneField (or parent link used as the primary key of an inline formset's model), or a natural or UUID primary key included in the form's fields. Models using the default BigAutoField primary key were not affected.
This issue has severity "moderate" according to the Django security policy.
Thanks to Seonggwon Yoon for the report.
Affected supported versions
Django main Django 6.1 Django 6.0 Django 5.2
Resolution
Patches to resolve the issue have been applied to Django's main, 6.1, 6.0, and 5.2 branches. The patches may be obtained from the following changesets.
CVE-2026-77050: Potential denial-of-service vulnerability in getsupportedlanguagevariant()
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-84429: Potential denial-of-service vulnerability in HTTP header parsing
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-87890: Potential request forgery via spatial lookup byte values
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-87975: Privilege abuse in model formsets with editable primary keys
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
The following releases have been issued
Django 6.1.2 (tarball | checksums) Django 6.0.9 (tarball | checksums) Django 5.2.18 (tarball | checksums)
The PGP key ID used for this release is Sarah Boyce: 3955B19851EA96EF
General notes regarding security reporting
As always, we ask that potential security issues be reported via private email to security () djangoproject com, and not via Django's Trac instance, nor via the Django Forum. Please see our security policies for further information.
Announce: https://www.djangoproject.com/weblog/2026/jun/03/security-releases/
CVE JSON Record for CVE-2026-6873: https://www.cve.org/CVERecord?id=CVE-2026-6873
CVE JSON Record for CVE-2026-7666: https://www.cve.org/CVERecord?id=CVE-2026-7666
CVE JSON Record for CVE-2026-8404: https://www.cve.org/CVERecord?id=CVE-2026-8404
CVE JSON Record for CVE-2026-35193: https://www.cve.org/CVERecord?id=CVE-2026-35193
CVE JSON Record for CVE-2026-48587: https://www.cve.org/CVERecord?id=CVE-2026-48587
In accordance with our security release policy, the Django team is issuing releases for Django 6.0.6 and Django 5.2.15. These releases address the security issues detailed below. We encourage all users of Django to upgrade as soon as possible.
CVE-2026-6873: Signed cookie salt namespace collision in django.http.HttpRequest.getsignedcookie
getsignedcookie() derived the signing salt by concatenating the cookie name (key) and salt arguments. When distinct name and salt pairs produced the same concatenation, cookies could be accepted in a context different from the one where they were signed.
Cookies are now signed with an unambiguous salt derivation. For backwards compatibility, cookies signed by older Django versions are accepted until Django 7.0.
This issue has severity "low" according to the Django security policy.
Thanks to Peng Zhou for the report.
CVE-2026-7666: Potential unencrypted email transmission via STARTTLS in the SMTP backend
When using EMAILUSETLS, a failed STARTTLS handshake could leave a partially-initialized connection that would subsequently be reused for sending email without encryption. This can occur with failsilently=True, as used by sendmail() and BrokenLinkEmailsMiddleware, among others. Connections configured with EMAILUSESSL are not affected.
This issue has severity "low" according to the Django security policy.
Thanks to Kasper Dupont for the report.
CVE-2026-8404: Potential exposure of private data via case-sensitive Cache-Control directives in UpdateCacheMiddleware
django.middleware.cache.UpdateCacheMiddleware and django.views.decorators.cache.cachepage decorator incorrectly cached responses marked with private Cache-Control directives when using mixed or uppercase values (e.g. Private).
The django.views.decorators.cache.cachecontrol decorator and django.utils.cache.patchcachecontrol() function were not affected, since they normalize directives to lowercase. This issue only affects responses where Cache-Control is set manually.
This issue has severity "low" according to the Django security policy.
Thanks to Ahmed Badawe for the report.
CVE-2026-35193: Potential exposure of private data via missing Vary: Authorization in UpdateCacheMiddleware
django.middleware.cache.UpdateCacheMiddleware and django.views.decorators.cache.cachepage decorator allowed responses to requests bearing an Authorization header (and without Cache-Control: public) to be cached. To conform with the existing mechanism for constructing cache keys, responses to these requests will now vary on Authorization.
This issue has severity "low" according to the Django security policy.
Thanks to Shai Berger for the report.
CVE-2026-48587: Potential exposure of private data via whitespace padding in Vary header
django.middleware.cache.UpdateCacheMiddleware incorrectly cached responses whose Vary header values contained leading or trailing whitespace. Because hasvaryheader() failed to strip that whitespace, a response with a Vary: header (note the trailing space) was not recognized as containing the wildcard, causing it to be stored and potentially served from the cache when it should not have been.
This issue has severity "low" according to the Django security policy.
Thanks to Navid Rezazadeh for the report.
Affected supported versions
Django main Django 6.1 (currently at alpha status) Django 6.0 Django 5.2
Resolution
Patches to resolve the issue have been applied to Django's main, 6.1 (currently at alpha status), 6.0, and 5.2 branches. The patches may be obtained from the following changesets.
CVE-2026-6873: Signed cookie salt namespace collision in django.http.HttpRequest.getsignedcookie
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-7666: Potential unencrypted email transmission via STARTTLS in the SMTP backend
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-8404: Potential exposure of private data via case-sensitive Cache-Control directives in UpdateCacheMiddleware
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-35193: Potential exposure of private data via missing Vary: Authorization in UpdateCacheMiddleware
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
CVE-2026-48587: Potential exposure of private data via whitespace padding in Vary header
On the main branch On the 6.1 branch On the 6.0 branch On the 5.2 branch
The following releases have been issued
Django 6.0.6 (tarball | checksums) Django 5.2.15 (tarball | checksums)
The PGP key ID used for this release is Natalia Bidart: 2EE82A8D9470983E
General notes regarding security reporting
As always, we ask that potential security issues be reported via private email to security () djangoproject com, and not via Django's Trac instance, nor via the Django Forum. Please see our security policies for further information.
An issue was discovered in Django 6.0 before 6.0.6 and 5.2 before 5.2.15. django.http.HttpRequest.getsignedcookie in Django uses a non-injective salt derivation (concatenating the cookie name and salt argument), which allows a remote attacker to use a cookie in a context different from the one where it was signed, via distinct (name, salt) pairs that produce the same concatenation. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Peng Zhou for reporting this issue.
Announce: https://www.djangoproject.com/weblog/2026/mar/03/security-releases/
CVE JSON Record for CVE-2026-25673: https://www.cve.org/CVERecord?id=CVE-2026-25673
CVE JSON Record for CVE-2026-25674: https://www.cve.org/CVERecord?id=CVE-2026-25674
In accordance with our security release policy <https://docs.djangoproject.com/en/stable/internals/security/>, the Django team is issuing releases for Django 6.0.3 <https://docs.djangoproject.com/en/stable/releases/6.0.3/>, Django 5.2.12 <https://docs.djangoproject.com/en/stable/releases/5.2.12/>, and Django 4.2.29 <https://docs.djangoproject.com/en/stable/releases/4.2.29/ . These releases address the security issues detailed below. We encourage all users of Django to upgrade as soon as possible.
CVE-2026-25673: Potential denial-of-service vulnerability in URLField via Unicode normalization on Windows ==============================================================================================================
The django.forms.URLField form field's topython() method used urllib.parse.urlsplit() to determine whether to prepend a URL scheme to the submitted value. On Windows, urlsplit() performs NFKC normalization (unicodedata.normalize), which can be disproportionately slow for large inputs containing certain characters.
URLField.topython() now uses a simplified scheme detection, avoiding Unicode normalization entirely and deferring URL validation to the appropriate layers. As a result, while leading and trailing whitespace is still stripped by default, characters such as newlines, tabs, and other control characters within the value are no longer handled by URLField.topython(). When using the default URLValidator, these values will continue to raise ValidationError during validation, but if you rely on custom validators, ensure they do not depend on the previous behavior of URLField.topython().
This issue has severity "moderate" according to the Django Security Policy.
Thanks to Seokchan Yoon for the report.
CVE-2026-25674: Potential incorrect permissions on newly created file system objects ====================================================================================
Django's file-system storage and file-based cache backends used the process umask to control permissions when creating directories. In multi-threaded environments, one thread's temporary umask change can affect other threads' file and directory creation, resulting in file system objects being created with unintended permissions.
Django now applies the requested permissions via os.chmod() after os.mkdir(), removing the dependency on the process-wide umask.
This issue has severity "low" according to the Django Security Policy.
Thanks to Tarek Nakkouch for the report.
Affected supported versions ===========================
Django main Django 6.0 Django 5.2 Django 4.2
Resolution ==========
Patches to resolve the issue have been applied to Django's main, 6.0, 5.2, and 4.2 branches. The patches may be obtained from the following changesets.
CVE-2026-25673: Potential denial-of-service vulnerability in URLField via Unicode normalization on Windows --------------------------------------------------------------------------------------------------------------
On the main branch < https://github.com/django/django/commit/951ffb3832cd83ba672c1e3deae2bda128eb9cca On the 6.0 branch < https://github.com/django/django/commit/b1444d9acf43db9de96e0da2b4737ad56af0eb76 On the 5.2 branch < https://github.com/django/django/commit/4d3c184686626d224d9a87451410ecf802b41f7c On the 4.2 branch < https://github.com/django/django/commit/b3e8ec8cc310489fe80174b14b11edb970d682ea CVE-2026-25674: Potential incorrect permissions on newly created file system objects ------------------------------------------------------------------------------------
On the main branch < https://github.com/django/django/commit/019e44f67a8dace67b786e2818938c8691132988 On the 6.0 branch < https://github.com/django/django/commit/264d5c70ef3281a8869cb2ad45a3a52d5adbe790 On the 5.2 branch < https://github.com/django/django/commit/b07ed2a1e445efde54fc64cb8c37e0f4f7fe53e5 On the 4.2 branch < https://github.com/django/django/commit/54b50bf7d6dcbf02d4c01f853627cc9299d4934d The following releases have been issued =======================================
Django 6.0.3 (download Django 6.0.3 <https://www.djangoproject.com/download/6.0.3/tarball/> | 6.0.3 checksums <https://www.djangoproject.com/download/6.0.3/checksum/>) Django 5.2.12 (download Django 5.2.12 <https://www.djangoproject.com/download/5.2.12/tarball/> | 5.2.12 checksums <https://www.djangoproject.com/download/5.2.12/checksum/>) Django 4.2.29 (download Django 4.2.29 <https://www.djangoproject.com/download/4.2.29/tarball/> | 4.2.29 checksums <https://www.djangoproject.com/download/4.2.29/checksum/>)
The PGP key ID used for this release is Natalia Bidart: 2EE82A8D9470983E < https://github.com/nessita.gpg>
General notes regarding security reporting ==========================================
As always, we ask that potential security issues be reported via private email to security () djangoproject com, and not via Django's Trac instance, nor via the Django Forum. Please see our security policies <https://www.djangoproject.com/security/> for further information.
An issue was discovered in 6.0 before 6.0.3, 5.2 before 5.2.12, and 4.2 before 4.2.29. URLField.topython() in Django calls urllib.parse.urlsplit(), which performs NFKC normalization on Windows that is disproportionately slow for certain Unicode characters, allowing a remote attacker to cause denial of service via large URL inputs containing these characters. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.
An issue was discovered in 6.0 before 6.0.3, 5.2 before 5.2.12, and 4.2 before 4.2.29. Race condition in file-system storage and file-based cache backends in Django allows an attacker to cause file system objects to be created with incorrect permissions via concurrent requests, where one thread's temporary umask change affects other threads in multi-threaded environments. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Tarek Nakkouch for reporting this issue.
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28. FilteredRelation is subject to SQL injection in column aliases via control characters, using a suitably crafted dictionary, with dictionary expansion, as the kwargs passed to QuerySet methods annotate(), aggregate(), extra(), values(), valueslist(), and alias(). Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Solomon Kebede for reporting this issue.
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28.
FilteredRelation is subject to SQL injection in column aliases via control characters, using a suitably crafted dictionary, with dictionary expansion, as the kwargs passed to QuerySet methods annotate(), aggregate(), extra(), values(), valueslist(), and alias(). Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.
Django would like to thank Solomon Kebede for reporting this issue.
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28.
.QuerySet.orderby() is subject to SQL injection in column aliases containing periods when the same alias is, using a suitably crafted dictionary, with dictionary expansion, used in FilteredRelation. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.
Django would like to thank Solomon Kebede for reporting this issue.
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28.
Raster lookups on RasterField (only implemented on PostGIS) allows remote attackers to inject SQL via the band index parameter. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.
Django would like to thank Tarek Nakkouch for reporting this issue.
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28.
django.utils.text.Truncator.chars() and Truncator.words() methods (with html=True) and the truncatecharshtml and truncatewordshtml template filters allow a remote attacker to cause a potential denial-of-service via crafted inputs containing a large number of unmatched HTML end tags. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.
Django would like to thank Seokchan Yoon for reporting this issue.
An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. Algorithmic complexity in django.core.serializers.xmlserializer.getInnerText() allows a remote attacker to cause a potential denial-of-service attack triggering CPU and memory exhaustion via specially crafted XML input processed by the XML Deserializer. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.
An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. Algorithmic complexity in django.core.serializers.xmlserializer.getInnerText() allows a remote attacker to cause a potential denial-of-service attack triggering CPU and memory exhaustion via specially crafted XML input processed by the XML Deserializer. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.
An issue was discovered in 5.2 before 5.2.9, 5.1 before 5.1.15, and 4.2 before 4.2.27. FilteredRelation is subject to SQL injection in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the kwargs passed to QuerySet.annotate() or QuerySet.alias() on PostgreSQL. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Stackered for reporting this issue.
An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. NFKC normalization in Python is slow on Windows. As a consequence, django.http.HttpResponseRedirect, django.http.HttpResponsePermanentRedirect, and the shortcut django.shortcuts.redirect were subject to a potential denial-of-service attack via certain inputs with a very large number of Unicode characters. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.
An issue was discovered in 5.1 before 5.1.14, 4.2 before 4.2.26, and 5.2 before 5.2.8. NFKC normalization in Python is slow on Windows. As a consequence, django.http.HttpResponseRedirect, django.http.HttpResponsePermanentRedirect, and the shortcut django.shortcuts.redirect were subject to a potential denial-of-service attack via certain inputs with a very large number of Unicode characters. Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected. Django would like to thank Seokchan Yoon for reporting this issue.
An issue was discovered in Django 4.2 before 4.2.21, 5.1 before 5.1.9, and 5.2 before 5.2.1. The django.utils.html.striptags() function is vulnerable to a potential denial-of-service (slow performance) when processing inputs containing large sequences of incomplete HTML tags. The template filter striptags is also vulnerable, because it is built on top of striptags().
An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. Direct usage of the django.db.models.fields.json.HasKey lookup, when an Oracle database is used, is subject to SQL injection if untrusted data is used as an lhs value. (Applications that use the jsonfield.haskey lookup via are unaffected.)
An issue was discovered in Django v5.1.1, v5.0.9, and v4.2.16. The django.contrib.auth.forms.PasswordResetForm class, when used in a view implementing password reset flows, allows remote attackers to enumerate user e-mail addresses by sending password reset requests and observing the outcome (only when e-mail sending is consistently failing).
An issue was discovered in Django 5.1 before 5.1.1, 5.0 before 5.0.9, and 4.2 before 4.2.16. The urlize() and urlizetrunc() template filters are subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.
An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. The urlize() and urlizetrunc() template filters are subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.
An issue was discovered in Django 5.0 before 5.0.7 and 4.2 before 4.2.14. Derived classes of the django.core.files.storage.Storage base class, when they override generatefilename() without replicating the file-path validations from the parent class, potentially allow directory traversal via certain inputs during a save() call. (Built-in Storage sub-classes are unaffected.)
In Django 3.2 before 3.2.25, 4.2 before 4.2.11, and 5.0 before 5.0.3, the django.utils.text.Truncator.words() method (with html=True) and the truncatewordshtml template filter are subject to a potential regular expression denial-of-service attack via a crafted string. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232 and CVE-2023-43665.
In Django 3.2 before 3.2.22, 4.1 before 4.1.12, and 4.2 before 4.2.6, the django.utils.text.Truncator chars() and words() methods (when used with html=True) are subject to a potential DoS (denial of service) attack via certain inputs with very long, potentially malformed HTML text. The chars() and words() methods are used to implement the truncatecharshtml and truncatewordshtml template filters, which are thus also vulnerable. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232.
In Django 3.2 before 3.2.21, 4.1 before 4.1.11, and 4.2 before 4.2.5, django.utils.encoding.uritoiri() is subject to a potential DoS (denial of service) attack via certain inputs with a very large number of Unicode characters.
In Django 3.2 before 3.2.21, 4.1 before 4.1.11, and 4.2 before 4.2.5, django.utils.encoding.uritoiri() is subject to a potential DoS (denial of service) attack via certain inputs with a very large number of Unicode characters.