CVE-2018-14574: Open redirect possibility inCommonMiddleware
If thedjango.middleware.common.CommonMiddlewareand theAPPEND_SLASHsetting are both enabled, and if the project has a URL pattern that accepts any path ending in a slash (many content management systems have such a pattern), then a request to a maliciously crafted URL of that site could lead to a redirect to another site, enabling phishing and other attacks.
Thanks Andreas Hug for reporting this issue.
Affected supported versions
- Django master branch
- Django 2.1 (which will be released in a separate blog post later today)
- Django 2.0
- Django 1.11
Per our supported versions policy, Django 1.10 and older are no longer supported.
Patches to resolve the issue have been applied to Django's master branch and the 2.1, 2.0, and 1.11 release branches. The patches may be obtained from the following changesets:
The following releases have been issued:
The PGP key ID used for these releases is Tim Graham: 1E8ABDC773EDE252.
General notes regarding security reporting
As always, we ask that potential security issues be reported via private email email@example.com, and not via Django's Trac instance or the django-developers list. Please see our security policies for further information.