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.
| Package (Ecosystem) | Introduced | Fixed | Limit |
|---|---|---|---|
| Django(PyPI) | 0 | 1.4.18 | N/A |
| Django(PyPI) | 1.6 | 1.6.10 | N/A |
| Django(PyPI) | 1.7 | 1.7.3 | N/A |
CVSS Metrics