CVE-2015-0220 json
Django Cross-site Scripting Vulnerability
published 11y ago modified 4mo ago also GHSA-gv98-g628-m9x5 , PYSEC-2015-5 , EUVD-2015-0014
- cvss
- 6.1
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi django 1.4.18, 1.6.10, 1.7.3
- python-django Debian 14, Debian 13, Debian 12 1.7.1-1.1
debian advisories DEBIAN-CVE-2015-0220
- python-django Ubuntu 14.04 LTS 1.6.1-2ubuntu0.6
ubuntu advisories UBUNTU-CVE-2015-0220
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2015-0220 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2015-0220 updated cvss 4.3
Django: Mitigated possible XSS attack via user-supplied redirect URLs
-
Red Hat Enterprise Linux OpenStack Platform 5 (Icehouse) python-django Red Hat Enterprise Linux OpenStack Platform 6 (Juno) python-django Red Hat OpenStack Platform 4 Django14 Red Hat Subscription Asset Manager Djangonot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.04% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- djangoproject.com https://www.djangoproject.com/weblog/2015/jan/13/security/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | <1.4.18 >=1.6, <1.6.10 >=1.7, <1.7.3 >=1.5, <1.6.10 |
1.4.18 1.6.10 1.7.3 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/django/django/commit/4c241f1b710da6419d9dca160e80b23b82db7758
web
-
github.com
/django/django/commit/72e0b033662faa11bb7f516f18a132728aa0ae28
web
-
github.com
/django/django/commit/de67dedc771ad2edec15c1d00c083a1a084e1e89
web
-
djangoproject.com
/weblog/2015/jan/13/security/
exploit, vendor-advisory, article
-
lists.fedoraproject.org
/pipermail/package-announce/2015-January/148608.html
vendor-advisory, web
-
ubuntu.com
/usn/usn-2469-1
vendor-advisory, web
-
mandriva.com
/security/advisories?name=MDVSA-2015:036
vendor-advisory, advisory
-
lists.opensuse.org
/opensuse-updates/2015-09/msg00035.html
vendor-advisory, web
-
lists.opensuse.org
/opensuse-updates/2015-04/msg00001.html
vendor-advisory, web
-
mandriva.com
/security/advisories?name=MDVSA-2015:109
vendor-advisory, advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2015-January/148485.html
vendor-advisory, web
-
secunia.com
/advisories/62718
third-party-advisory, advisory
-
secunia.com
/advisories/62285
third-party-advisory, advisory
-
secunia.com
/advisories/62309
third-party-advisory, advisory
-
advisories.mageia.org
/MGASA-2015-0026.html
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2015-0220
advisory
-
github.com
/django/django
package
-
github.com
/django/django/blob/4555a823fd57e261e1b19c778429473256c8ea08/docs/releases/1.4.18.txt#L34-L46
web
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-5.yaml
web
-
web.archive.org
/web/20150128111656/http://secunia.com/advisories/62285
web
-
web.archive.org
/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA
web
-
web.archive.org
/web/20150523054953/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:036/?name=MDVSA
web
-
web.archive.org
/web/20151104201446/http://secunia.com/advisories/62718
web
-
djangoproject.com
/weblog/2015/jan/13/security
web
-
github.com
/advisories/GHSA-gv98-g628-m9x5
advisory
Sources
- CVE List CVE-2015-0220
- GitHub Advisory GHSA-gv98-g628-m9x5
- NVD CVE-2015-0220
- OSV PYSEC-2015-5
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.