{"title":"Django 2.0.8 release notes","version":"dev","locale":"en","docname":"releases/2.0.8","url":"/en/dev/releases/2.0.8/","canonical":"https://djangodocs.dev/en/dev/releases/2.0.8/","summary":"Django 2.0.8 fixes a security issue and several bugs in 2.0.7. If the CommonMiddleware and the APPEND_SLASH setting are both enabled, and if the project has…","html":"<h1>Django 2.0.8 release notes<a class=\"heading-anchor\" href=\"#django-2-0-8-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>August 1, 2018</em></p>\n<p>Django 2.0.8 fixes a security issue and several bugs in 2.0.7.</p>\n<section id=\"cve-2018-14574-open-redirect-possibility-in-commonmiddleware\">\n<h2>CVE-2018-14574: Open redirect possibility in <code class=\"docutils literal notranslate\">CommonMiddleware</code><a class=\"heading-anchor\" href=\"#cve-2018-14574-open-redirect-possibility-in-commonmiddleware\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>If the <a class=\"reference internal\" href=\"/en/dev/ref/middleware/#django.middleware.common.CommonMiddleware\" title=\"django.middleware.common.CommonMiddleware\"><code class=\"xref py py-class docutils literal notranslate\">CommonMiddleware</code></a> and the\n<a class=\"reference internal\" href=\"/en/dev/ref/settings/#std-setting-APPEND_SLASH\"><code class=\"xref std std-setting docutils literal notranslate\">APPEND_SLASH</code></a> setting are both enabled, and if the project has a\nURL pattern that accepts any path ending in a slash (many content management\nsystems have such a pattern), then a request to a maliciously crafted URL of\nthat site could lead to a redirect to another site, enabling phishing and other\nattacks.</p>\n<p><code class=\"docutils literal notranslate\">CommonMiddleware</code> now escapes leading slashes to prevent redirects to other\ndomains.</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 2.0.7 that broke the <code class=\"docutils literal notranslate\">regex</code> lookup on MariaDB\n(even though MariaDB isn’t officially supported) (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/29544\">#29544</a>).</p></li>\n<li><p>Fixed a regression where <code class=\"docutils literal notranslate\">django.template.Template</code> crashed if the\n<code class=\"docutils literal notranslate\">template_string</code> argument is lazy (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/29617\">#29617</a>).</p></li>\n</ul>\n</section>","rootId":"django-2-0-8-release-notes","toc":[{"title":"CVE-2018-14574: Open redirect possibility in CommonMiddleware","anchor":"cve-2018-14574-open-redirect-possibility-in-commonmiddleware","children":[]},{"title":"Bugfixes","anchor":"bugfixes","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/2.0.9","title":"Django 2.0.9 release notes","url":"/en/dev/releases/2.0.9/"},"next":{"docname":"releases/2.0.7","title":"Django 2.0.7 release notes","url":"/en/dev/releases/2.0.7/"},"formats":{"html":"/en/dev/releases/2.0.8/","markdown":"/en/dev/releases/2.0.8.md","json":"/en/dev/releases/2.0.8.json"},"source":"https://github.com/django/django/blob/main/docs/releases/2.0.8.txt","official":"https://docs.djangoproject.com/en/dev/releases/2.0.8/","inVersions":["dev","6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0"],"inLocales":["en"]}