CVE-2015-0220Published Jan 16, 2015 · Jan 16Updated Jun 17
Django Cross-site Scripting Vulnerability
Medium6.1Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| django PyPI |
|
|
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.
From the CVE record · redhat
Django’s django.util.http.is_safe_url function does not properly handle leading whitespace in redirect URLs. A remote attacker can use a crafted URL to conduct a cross-site scripting attack; the input does not specify authentication requirements or user interaction.
Check installations of the PyPI django package before 1.4.18, in the 1.6.x series before 1.6.10, or in the 1.7.x series before 1.7.3.