CVE-2015-0220
MEDIUM 4.3CVSS 2.0Django Cross-site Scripting Vulnerability
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.
- Published
- 16 Jan 2015
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-gv98-g628-m9x5PYSEC-2015-5
- Sources
- NVDJSONOSV GHSA-gv98-g628-m9x5JSONOSV PYSEC-2015-5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:10.04:*:lts:*:*:*:*:* |
= 10.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:12.04:*:lts:*:*:*:*:* |
= 12.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:* |
= 14.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:14.10:*:*:*:*:*:*:* |
= 14.10 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
<= 1.4.17 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6:*:*:*:*:*:*:* |
= 1.6 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6.1:*:*:*:*:*:*:* |
= 1.6.1 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6.2:*:*:*:*:*:*:* |
= 1.6.2 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6.3:*:*:*:*:*:*:* |
= 1.6.3 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6.4:*:*:*:*:*:*:* |
= 1.6.4 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6.5:*:*:*:*:*:*:* |
= 1.6.5 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6.6:*:*:*:*:*:*:* |
= 1.6.6 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6.7:*:*:*:*:*:*:* |
= 1.6.7 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6.8:*:*:*:*:*:*:* |
= 1.6.8 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.6.9:*:*:*:*:*:*:* |
= 1.6.9 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.7:*:*:*:*:*:*:* |
= 1.7 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.7.1:*:*:*:*:*:*:* |
= 1.7.1 | |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:1.7.2:*:*:*:*:*:*:* |
= 1.7.2 | |
| OSV | PyPI | django | < 1.4.18 | 1.4.18 |
| OSV | PyPI | django | >= 1.6, < 1.6.10 | 1.6.10 |
| OSV | PyPI | django | >= 1.7, < 1.7.3 | 1.7.3 |
| OSV | PyPI | django | < 1.4.18; >= 1.5, < 1.6.10; >= 1.7, < 1.7.3 | 1.4.18, 1.6.10, 1.7.3 |
References
- http://advisories.mageia.org/MGASA-2015-0026.html · ADVISORY
- http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148485.html · WEB
- http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148608.html · WEB
- http://lists.opensuse.org/opensuse-updates/2015-04/msg00001.html · WEB
- http://lists.opensuse.org/opensuse-updates/2015-09/msg00035.html · WEB
- http://secunia.com/advisories/62285 · ADVISORY
- http://secunia.com/advisories/62309 · ADVISORY
- http://secunia.com/advisories/62718 · ADVISORY
- http://ubuntu.com/usn/usn-2469-1 · WEB
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:036 · ADVISORY
- http://www.mandriva.com/security/advisories?name=MDVSA-2015:109 · ADVISORY
- https://www.djangoproject.com/weblog/2015/jan/13/security/ · Exploit, Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2015-0220 · ADVISORY
- https://github.com/django/django/commit/4c241f1b710da6419d9dca160e80b23b82db7758 · WEB
- https://github.com/django/django/commit/72e0b033662faa11bb7f516f18a132728aa0ae28 · WEB
- https://github.com/django/django/commit/de67dedc771ad2edec15c1d00c083a1a084e1e89 · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/django/django/blob/4555a823fd57e261e1b19c778429473256c8ea08/docs/releases/1.4.18.txt#L34-L46 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-5.yaml · WEB
- https://web.archive.org/web/20150128111656/http://secunia.com/advisories/62285 · WEB
- https://web.archive.org/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA-2015:109 · WEB
- https://web.archive.org/web/20150523054953/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:036/?name=MDVSA-2015:036 · WEB
- https://web.archive.org/web/20151104201446/http://secunia.com/advisories/62718 · WEB
- https://github.com/advisories/GHSA-gv98-g628-m9x5 · ADVISORY
History
- 25 Nov 2026 20:18 UTC · NVD: first stored (published 16 Jan 2015)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 16 Jan 2015)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 17 May 2022)