CVE-2015-0220
publishedDjango: Mitigated possible XSS attack via user-supplied redirect URLs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | redhat |
| Debian | squeeze | python-django | Advisory build | 1.2.3-3+squeeze12 | DLA-143-1 |
| Ubuntu | trusty | python-django | Advisory build | 1.6.1-2ubuntu0.6 | USN-2469-1 |
| Debian | wheezy | python-django | Advisory build | 1.4.5-1+deb7u9 | DSA-3151-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | redhat · cna |
Weaknesses
1- n/a
References
12- http://advisories.mageia.org/MGASA-2015-0026.html
- FEDORA-2015-0714 http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148485.html
- FEDORA-2015-0804 http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148608.html
- openSUSE-SU-2015:0643 http://lists.opensuse.org/opensuse-updates/2015-04/msg00001.html
- openSUSE-SU-2015:1598 http://lists.opensuse.org/opensuse-updates/2015-09/msg00035.html
- 62285 http://secunia.com/advisories/62285
- 62309 http://secunia.com/advisories/62309
- 62718 http://secunia.com/advisories/62718
- USN-2469-1 http://ubuntu.com/usn/usn-2469-1
- MDVSA-2015:036 http://www.mandriva.com/security/advisories?name=MDVSA-2015:036
- MDVSA-2015:109 http://www.mandriva.com/security/advisories?name=MDVSA-2015:109
- https://www.djangoproject.com/weblog/2015/jan/13/security/
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 9f87b0f493d601190a3791ebe945d841c3109c530b6fea5531590bfa280c4dac
- Ingested
- 23 Sep 2026, 07:40:23 UTC
- Source record
- Official CVE record