CWE
79
Advisory Published
Advisory Published
Updated

CVE-2015-0220: XSS

First published: Fri Jan 16 2015(Updated: )

The `django.util.http.is_safe_url` 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.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
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
Ubuntu Linux=10.04
Ubuntu Linux=12.04
Ubuntu Linux=14.04
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
Ubuntu=10.04
Ubuntu=12.04
Ubuntu=14.04
Ubuntu=14.10

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

  • 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.

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203