CVE-2017-7233: XSS
Django 1.10 before 1.10.7, 1.9 before 1.9.13, and 1.8 before 1.8.18 relies on user input in some cases to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http.issafeurl()) considered some numeric URLs "safe" when they shouldn't be, aka an open redirect vulnerability. Also, if a developer relies on issafeurl() to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack.
Other sources
Django relies on user input in some cases (e.g. django.contrib.auth.views.login() and i18n to redirect the user to an "on success" URL. The security check for these redirects (namely django.utils.http.issafeurl()) considered some numeric URLs (e.g. http:999999999) "safe" when they shouldn't be.
Also, if a developer relies on issafeurl() to provide safe redirect targets and puts such a URL into a link, they could suffer from an XSS attack.
Affected versions: Django master development branch Django 1.11 (currently at release candidate status) Django 1.10 Django 1.9 Django 1.8
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 1.8.18 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 1.9.13 - Upgrade
Upgrade
pip/Djangoto a version that resolves this vulnerability.Fixed in 1.10.7 - Upgrade
Upgrade
redhat/python-djangoto a version that resolves this vulnerability.Fixed in 1.8.18 - Upgrade
Upgrade
redhat/python-djangoto a version that resolves this vulnerability.Fixed in 1.9.13 - Upgrade
Upgrade
redhat/python-djangoto a version that resolves this vulnerability.Fixed in 1.10.7 - Upgrade
Upgrade
redhat/python-djangoto a version that resolves this vulnerability.Fixed in 1.11 - Upgrade
Upgrade
alpine/py-djangoto a version that resolves this vulnerability.Fixed in 1.10.7-r0 - Upgrade
Upgrade
alpine/py-djangoto a version that resolves this vulnerability.Fixed in 1.8.18-r0 - Upgrade
Upgrade
alpine/py3-djangoto a version that resolves this vulnerability.Fixed in 1.10.7-r0 - Upgrade
Upgrade
django/djangoto a version that resolves this vulnerability.Fixed in 1.10.7 - Upgrade
Upgrade
django/djangoto a version that resolves this vulnerability.Fixed in 1.9.13 - Upgrade
Upgrade
django/djangoto a version that resolves this vulnerability.Fixed in 1.8.18
Event History
Frequently Asked Questions
What is the severity of CVE-2017-7233?
CVE-2017-7233 is classified as a medium severity vulnerability.
How do I fix CVE-2017-7233?
To fix CVE-2017-7233, upgrade Django to version 1.10.7, 1.9.13, or 1.8.18 or later.
What versions of Django are affected by CVE-2017-7233?
CVE-2017-7233 affects Django versions 1.10 before 1.10.7, 1.9 before 1.9.13, and 1.8 before 1.8.18.
What type of vulnerability is CVE-2017-7233?
CVE-2017-7233 is a security vulnerability related to improper URL validation.
Is user input involved in the exploitation of CVE-2017-7233?
Yes, CVE-2017-7233 relies on user input in some cases, leading to potential security risks.