| 1 |
========================== |
| 2 |
Django 2.0.8 release notes |
| 3 |
========================== |
| 4 |
|
| 5 |
*August 1, 2018* |
| 6 |
|
| 7 |
Django 2.0.8 fixes a security issue and several bugs in 2.0.7. |
| 8 |
|
| 9 |
CVE-2018-14574: Open redirect possibility in ``CommonMiddleware`` |
| 10 |
================================================================= |
| 11 |
|
| 12 |
If the :class:`~django.middleware.common.CommonMiddleware` and the |
| 13 |
:setting:`APPEND_SLASH` setting are both enabled, and if the project has a |
| 14 |
URL pattern that accepts any path ending in a slash (many content management |
| 15 |
systems have such a pattern), then a request to a maliciously crafted URL of |
| 16 |
that site could lead to a redirect to another site, enabling phishing and other |
| 17 |
attacks. |
| 18 |
|
| 19 |
``CommonMiddleware`` now escapes leading slashes to prevent redirects to other |
| 20 |
domains. |
| 21 |
|
| 22 |
Bugfixes |
| 23 |
======== |
| 24 |
|
| 25 |
* Fixed a regression in Django 2.0.7 that broke the ``regex`` lookup on MariaDB |
| 26 |
(even though MariaDB isn't officially supported) (:ticket:`29544`). |
| 27 |
|
| 28 |
* Fixed a regression where ``django.template.Template`` crashed if the |
| 29 |
``template_string`` argument is lazy (:ticket:`29617`). |