Django Software Foundation · Django · CVE-2015-0220
**Name of the Vulnerable Software and Affected Versions**
Django versions 1.4.0 through 1.4.17
Django versions 1.6.0 through 1.6.9
Django versions 1.7.0 through 1.7.2
**Description**
The issue allows remote attackers to conduct cross-site scripting (XSS) attacks via a crafted URL, related to redirect URLs. This is demonstrated by a `
javascript:` URL, which takes advantage of the improper handling of leading whitespaces by the `django.util.http.is safe url` function.
**Recommendations**
For Django versions 1.4.0 through 1.4.17, update to version 1.4.18 or later.
For Django versions 1.6.0 through 1.6.9, update to version 1.6.10 or later.
For Django versions 1.7.0 through 1.7.2, update to version 1.7.3 or later.