{"title":"Django 5.1.8 release notes","version":"dev","locale":"en","docname":"releases/5.1.8","url":"/en/dev/releases/5.1.8/","canonical":"https://djangodocs.dev/en/dev/releases/5.1.8/","summary":"Django 5.1.8 fixes a security issue with severity “moderate” and several bugs in 5.1.7.","html":"<h1>Django 5.1.8 release notes<a class=\"heading-anchor\" href=\"#django-5-1-8-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>April 2, 2025</em></p>\n<p>Django 5.1.8 fixes a security issue with severity “moderate” and several bugs\nin 5.1.7.</p>\n<section id=\"cve-2025-27556-potential-denial-of-service-vulnerability-in-loginview-logoutview-and-set-language-on-windows\">\n<h2>CVE-2025-27556: Potential denial-of-service vulnerability in <code class=\"docutils literal notranslate\">LoginView</code>, <code class=\"docutils literal notranslate\">LogoutView</code>, and <code class=\"docutils literal notranslate\">set_language()</code> on Windows<a class=\"heading-anchor\" href=\"#cve-2025-27556-potential-denial-of-service-vulnerability-in-loginview-logoutview-and-set-language-on-windows\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Python’s <a class=\"reference external\" href=\"https://docs.python.org/3/library/unicodedata.html#unicodedata.normalize\" title=\"(in Python v3.14)\"><code class=\"xref py py-func docutils literal notranslate\">NFKC normalization</code></a> is slow on\nWindows. As a consequence, <a class=\"reference internal\" href=\"/en/dev/topics/auth/default/#django.contrib.auth.views.LoginView\" title=\"django.contrib.auth.views.LoginView\"><code class=\"xref py py-class docutils literal notranslate\">LoginView</code></a>,\n<a class=\"reference internal\" href=\"/en/dev/topics/auth/default/#django.contrib.auth.views.LogoutView\" title=\"django.contrib.auth.views.LogoutView\"><code class=\"xref py py-class docutils literal notranslate\">LogoutView</code></a>, and\n<a class=\"reference internal\" href=\"/en/dev/topics/i18n/translation/#django.views.i18n.set_language\" title=\"django.views.i18n.set_language\"><code class=\"xref py py-func docutils literal notranslate\">set_language()</code></a> were subject to a potential\ndenial-of-service 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 5.1.7 where the removal of the <code class=\"docutils literal notranslate\">single_object</code>\nparameter unintentionally altered the signature and return type of\n<code class=\"docutils literal notranslate\">LogEntryManager.log_actions()</code> (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/36234\">#36234</a>).</p></li>\n</ul>\n</section>","rootId":"django-5-1-8-release-notes","toc":[{"title":"CVE-2025-27556: Potential denial-of-service vulnerability in LoginView, LogoutView, and set_language() on Windows","anchor":"cve-2025-27556-potential-denial-of-service-vulnerability-in-loginview-logoutview-and-set-language-on-windows","children":[]},{"title":"Bugfixes","anchor":"bugfixes","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/5.1.9","title":"Django 5.1.9 release notes","url":"/en/dev/releases/5.1.9/"},"next":{"docname":"releases/5.1.7","title":"Django 5.1.7 release notes","url":"/en/dev/releases/5.1.7/"},"formats":{"html":"/en/dev/releases/5.1.8/","markdown":"/en/dev/releases/5.1.8.md","json":"/en/dev/releases/5.1.8.json"},"source":"https://github.com/django/django/blob/main/docs/releases/5.1.8.txt","official":"https://docs.djangoproject.com/en/dev/releases/5.1.8/","inVersions":["dev","6.1","6.0","5.2","5.1"],"inLocales":["en"]}