Vulnerability advisory
GHSA-gv98-g628-m9x5
Django Cross-site Scripting Vulnerability
Also known as CVE-2015-0220PYSEC-2015-5
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N - CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Affected versions
| Affected | Fixed in |
|---|---|
| All versions before 1.4.18 | 1.4.18Advisories → |
1.6 to before 1.6.10 | 1.6.10Advisories → |
1.7 to before 1.7.3 | 1.7.3Advisories → |
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.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2015-0220 ↗
- Webgithub.com/django/django/commit/4c241f1b710da6419d9dca160e80b23b82db7758 ↗
- Webgithub.com/django/django/commit/72e0b033662faa11bb7f516f18a132728aa0ae28 ↗
- Webgithub.com/django/django/commit/de67dedc771ad2edec15c1d00c083a1a084e1e89 ↗
- Packagegithub.com/django/django ↗
- Webgithub.com/django/django/blob/4555a823fd57e261e1b19c778429473256c8ea08/docs/releases/1.4.18.txt#L34-L46 ↗
- Webgithub.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-5.yaml ↗
- Webweb.archive.org/web/20150128111656/http://secunia.com/advisories/62285 ↗
- Webweb.archive.org/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA-2015:109 ↗
- Webweb.archive.org/web/20150523054953/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:036/?name=MDVSA-2015:036 ↗
- Webweb.archive.org/web/20151104201446/http://secunia.com/advisories/62718 ↗
- Webwww.djangoproject.com/weblog/2015/jan/13/security ↗
- Weblists.fedoraproject.org/pipermail/package-announce/2015-January/148485.html ↗
- Weblists.fedoraproject.org/pipermail/package-announce/2015-January/148608.html ↗
- Weblists.opensuse.org/opensuse-updates/2015-04/msg00001.html ↗
- Weblists.opensuse.org/opensuse-updates/2015-09/msg00035.html ↗
- Webubuntu.com/usn/usn-2469-1 ↗