{"title":"Django 4.0.7 release notes","version":"dev","locale":"en","docname":"releases/4.0.7","url":"/en/dev/releases/4.0.7/","canonical":"https://djangodocs.dev/en/dev/releases/4.0.7/","summary":"Django 4.0.7 fixes a security issue with severity “high” in 4.0.6. An application may have been vulnerable to a reflected file download (RFD) attack that…","html":"<h1>Django 4.0.7 release notes<a class=\"heading-anchor\" href=\"#django-4-0-7-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>August 3, 2022</em></p>\n<p>Django 4.0.7 fixes a security issue with severity “high” in 4.0.6.</p>\n<section id=\"cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse\">\n<h2>CVE-2022-36359: Potential reflected file download vulnerability in <code class=\"docutils literal notranslate\">FileResponse</code><a class=\"heading-anchor\" href=\"#cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>An application may have been vulnerable to a reflected file download (RFD)\nattack that sets the Content-Disposition header of a\n<a class=\"reference internal\" href=\"/en/dev/ref/request-response/#django.http.FileResponse\" title=\"django.http.FileResponse\"><code class=\"xref py py-class docutils literal notranslate\">FileResponse</code></a> when the <code class=\"docutils literal notranslate\">filename</code> was derived from\nuser-supplied input. The <code class=\"docutils literal notranslate\">filename</code> is now escaped to avoid this possibility.</p>\n</section>","rootId":"django-4-0-7-release-notes","toc":[{"title":"CVE-2022-36359: Potential reflected file download vulnerability in FileResponse","anchor":"cve-2022-36359-potential-reflected-file-download-vulnerability-in-fileresponse","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/4.0.8","title":"Django 4.0.8 release notes","url":"/en/dev/releases/4.0.8/"},"next":{"docname":"releases/4.0.6","title":"Django 4.0.6 release notes","url":"/en/dev/releases/4.0.6/"},"formats":{"html":"/en/dev/releases/4.0.7/","markdown":"/en/dev/releases/4.0.7.md","json":"/en/dev/releases/4.0.7.json"},"source":"https://github.com/django/django/blob/main/docs/releases/4.0.7.txt","official":"https://docs.djangoproject.com/en/dev/releases/4.0.7/","inVersions":["dev","6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0"],"inLocales":["en"]}