{"title":"Django 4.1.13 release notes","version":"dev","locale":"en","docname":"releases/4.1.13","url":"/en/dev/releases/4.1.13/","canonical":"https://djangodocs.dev/en/dev/releases/4.1.13/","summary":"Django 4.1.13 fixes a security issue with severity “moderate” in 4.1.12. The NFKC normalization is slow on Windows.","html":"<h1>Django 4.1.13 release notes<a class=\"heading-anchor\" href=\"#django-4-1-13-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>November 1, 2023</em></p>\n<p>Django 4.1.13 fixes a security issue with severity “moderate” in 4.1.12.</p>\n<section id=\"cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows\">\n<h2>CVE-2023-46695: Potential denial of service vulnerability in <code class=\"docutils literal notranslate\">UsernameField</code> on Windows<a class=\"heading-anchor\" href=\"#cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>The <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, <code class=\"docutils literal notranslate\">django.contrib.auth.forms.UsernameField</code> was\nsubject to a potential denial of service attack via certain inputs with a very\nlarge number of Unicode characters.</p>\n<p>In order to avoid the vulnerability, invalid values longer than\n<code class=\"docutils literal notranslate\">UsernameField.max_length</code> are no longer normalized, since they cannot pass\nvalidation anyway.</p>\n</section>","rootId":"django-4-1-13-release-notes","toc":[{"title":"CVE-2023-46695: Potential denial of service vulnerability in UsernameField on Windows","anchor":"cve-2023-46695-potential-denial-of-service-vulnerability-in-usernamefield-on-windows","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/4.2","title":"Django 4.2 release notes","url":"/en/dev/releases/4.2/"},"next":{"docname":"releases/4.1.12","title":"Django 4.1.12 release notes","url":"/en/dev/releases/4.1.12/"},"formats":{"html":"/en/dev/releases/4.1.13/","markdown":"/en/dev/releases/4.1.13.md","json":"/en/dev/releases/4.1.13.json"},"source":"https://github.com/django/django/blob/main/docs/releases/4.1.13.txt","official":"https://docs.djangoproject.com/en/dev/releases/4.1.13/","inVersions":["dev","6.1","6.0","5.2","5.1","5.0","4.2","4.1"],"inLocales":["en"]}