{"title":"Django 4.2.5 release notes","version":"dev","locale":"en","docname":"releases/4.2.5","url":"/en/dev/releases/4.2.5/","canonical":"https://djangodocs.dev/en/dev/releases/4.2.5/","summary":"Django 4.2.5 fixes a security issue with severity “moderate” and several bugs in 4.2.4.","html":"<h1>Django 4.2.5 release notes<a class=\"heading-anchor\" href=\"#django-4-2-5-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>September 4, 2023</em></p>\n<p>Django 4.2.5 fixes a security issue with severity “moderate” and several bugs\nin 4.2.4.</p>\n<section id=\"cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri\">\n<h2>CVE-2023-41164: Potential denial of service vulnerability in <code class=\"docutils literal notranslate\">django.utils.encoding.uri_to_iri()</code><a class=\"heading-anchor\" href=\"#cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p><code class=\"docutils literal notranslate\">django.utils.encoding.uri_to_iri()</code> was subject to potential denial of\nservice attack via certain inputs with a very large number of Unicode\ncharacters.</p>\n</section>\n<section id=\"bugfixes\">\n<h2>Bugfixes<a class=\"heading-anchor\" href=\"#bugfixes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<ul class=\"simple\">\n<li><p>Fixed a regression in Django 4.2 that caused an incorrect validation of\n<code class=\"docutils literal notranslate\">CheckConstraints</code> on <code class=\"docutils literal notranslate\">__isnull</code> lookups against <code class=\"docutils literal notranslate\">JSONField</code>\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/34754\">#34754</a>).</p></li>\n<li><p>Fixed a bug in Django 4.2 where the deprecated <code class=\"docutils literal notranslate\">DEFAULT_FILE_STORAGE</code> and\n<code class=\"docutils literal notranslate\">STATICFILES_STORAGE</code> settings were not synced with <code class=\"docutils literal notranslate\">STORAGES</code>\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/34773\">#34773</a>).</p></li>\n<li><p>Fixed a regression in Django 4.2.2 that caused an unnecessary selection of a\nnon-nullable <code class=\"docutils literal notranslate\">ManyToManyField</code> without a natural key during serialization\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/34779\">#34779</a>).</p></li>\n<li><p>Fixed a regression in Django 4.2 that caused a crash of a queryset when\nfiltering against deeply nested <code class=\"docutils literal notranslate\">OuterRef()</code> annotations (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/34803\">#34803</a>).</p></li>\n</ul>\n</section>","rootId":"django-4-2-5-release-notes","toc":[{"title":"CVE-2023-41164: Potential denial of service vulnerability in django.utils.encoding.uri_to_iri()","anchor":"cve-2023-41164-potential-denial-of-service-vulnerability-in-django-utils-encoding-uri-to-iri","children":[]},{"title":"Bugfixes","anchor":"bugfixes","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/4.2.6","title":"Django 4.2.6 release notes","url":"/en/dev/releases/4.2.6/"},"next":{"docname":"releases/4.2.4","title":"Django 4.2.4 release notes","url":"/en/dev/releases/4.2.4/"},"formats":{"html":"/en/dev/releases/4.2.5/","markdown":"/en/dev/releases/4.2.5.md","json":"/en/dev/releases/4.2.5.json"},"source":"https://github.com/django/django/blob/main/docs/releases/4.2.5.txt","official":"https://docs.djangoproject.com/en/dev/releases/4.2.5/","inVersions":["dev","6.1","6.0","5.2","5.1","5.0","4.2"],"inLocales":["en"]}