CWE
79
Advisory Published
Advisory Published
Updated

CVE-2015-2317: XSS

First published: Wed Mar 25 2015(Updated: )

The utils.http.is_safe_url function in Django before 1.4.20, 1.5.x, 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1 does not properly validate URLs, which allows remote attackers to conduct cross-site scripting (XSS) attacks via a control character in a URL, as demonstrated by a \x08javascript: URL.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
pip/Django>=1.8a1<1.8c1
1.8c1
pip/Django>=1.7<1.7.7
1.7.7
pip/Django>=1.5<1.6.11
1.6.11
pip/Django<1.4.20
1.4.20
Debian=7.0
Fedora=22
SUSE Linux=13.2
Django<=1.4.19
Django=1.5
Django=1.5-alpha
Django=1.5-beta
Django=1.5.1
Django=1.5.2
Django=1.5.3
Django=1.5.4
Django=1.5.5
Django=1.5.6
Django=1.5.7
Django=1.5.8
Django=1.5.9
Django=1.5.10
Django=1.5.11
Django=1.5.12
Django=1.6
Django=1.6-beta1
Django=1.6-beta2
Django=1.6-beta3
Django=1.6-beta4
Django=1.6.1
Django=1.6.2
Django=1.6.3
Django=1.6.4
Django=1.6.5
Django=1.6.6
Django=1.6.7
Django=1.6.8
Django=1.6.9
Django=1.6.10
Django=1.7-beta1
Django=1.7-beta2
Django=1.7-beta3
Django=1.7-beta4
Django=1.7-rc1
Django=1.7-rc2
Django=1.7-rc3
Django=1.7.1
Django=1.7.2
Django=1.7.3
Django=1.7.4
Django=1.7.5
Django=1.7.6
Django=1.8.0
Oracle Solaris and Zettabyte File System (ZFS)=11.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.

Frequently Asked Questions

  • What is the severity of CVE-2015-2317?

    CVE-2015-2317 has been rated as high severity due to its potential for cross-site scripting (XSS) attacks.

  • How do I fix CVE-2015-2317?

    To fix CVE-2015-2317, upgrade Django to version 1.4.20 or higher, 1.5.11 or higher, 1.6.11 or higher, 1.7.7 or higher, or 1.8c1.

  • Which versions of Django are affected by CVE-2015-2317?

    Django versions prior to 1.4.20, 1.5.x before 1.5.11, 1.6.x before 1.6.11, 1.7.x before 1.7.7, and 1.8.x before 1.8c1 are affected by CVE-2015-2317.

  • What is the impact of CVE-2015-2317?

    CVE-2015-2317 allows attackers to perform cross-site scripting (XSS) attacks by submitting a specially crafted URL.

  • Is there a workaround for CVE-2015-2317?

    While upgrading is the best solution for CVE-2015-2317, a temporary workaround includes validating user inputs to prevent special characters from being processed.

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