CVE-2015-0220: XSS

Published Jan 16, 2015
·
Updated

The django.util.http.issafeurl function in Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 does not properly handle leading whitespaces, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL, related to redirect URLs, as demonstrated by a \njavascript: URL.

Other sources

The django.util.http.issafeurl function in Django before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3 does not properly handle leading whitespaces, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL, related to redirect URLs, as demonstrated by a "\njavascript:" URL.

Affected Software

21 affected componentsFixes available
pip/Django>=1.7<1.7.3
1.7.3
pip/Django>=1.6<1.6.10
1.6.10
pip/django<1.4.18
1.4.18
Canonical Ubuntu Linux=10.04
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=14.10
djangoproject Django<=1.4.17
djangoproject Django=1.6
djangoproject Django=1.6.1
djangoproject Django=1.6.2
djangoproject Django=1.6.3
djangoproject Django=1.6.4
djangoproject Django=1.6.5
djangoproject Django=1.6.6
djangoproject Django=1.6.7
djangoproject Django=1.6.8
djangoproject Django=1.6.9
djangoproject Django=1.7
djangoproject Django=1.7.1
djangoproject Django=1.7.2

Event History

Jan 16, 2015
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description
Data Sourced
via NVD·04:59 PM
DescriptionSeverityWeaknessAffected Software
May 17, 2022
Advisory Published
03:20 AM

Frequently Asked Questions

1

What is the severity of CVE-2015-0220?

CVE-2015-0220 has been classified as a medium severity vulnerability due to the potential for cross-site scripting (XSS) attacks.

2

How do I fix CVE-2015-0220?

To fix CVE-2015-0220, update Django to version 1.7.3, 1.6.10, or 1.4.18 or later.

3

What versions of Django are affected by CVE-2015-0220?

CVE-2015-0220 affects Django versions before 1.4.18, 1.6.x before 1.6.10, and 1.7.x before 1.7.3.

4

What type of attack does CVE-2015-0220 allow?

CVE-2015-0220 allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL.

5

What function in Django is vulnerable in CVE-2015-0220?

The vulnerability in CVE-2015-0220 is found in the `django.util.http.is_safe_url` function.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203