{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2015-0220","id":"CVE-2015-0220","title":"Django Cross-site Scripting Vulnerability","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.","descriptionLong":"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":"2015-01-16T16:00:00.000Z","updated":"2026-06-17T00:19:45.307Z","reserved":"2014-11-18T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":["<1.4.18",">=1.6 <1.6.10",">=1.7 <1.7.3",">=1.5 <1.6.10"],"fixed":["1.4.18","1.6.10","1.7.3"],"advisory":"GHSA-gv98-g628-m9x5"}],"cwes":["CWE-79"],"aliases":["GHSA-gv98-g628-m9x5","PYSEC-2015-5"],"references":[{"url":"http://secunia.com/advisories/62718","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148608.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"http://ubuntu.com/usn/usn-2469-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","web"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:036","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://secunia.com/advisories/62285","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://lists.opensuse.org/opensuse-updates/2015-09/msg00035.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"https://www.djangoproject.com/weblog/2015/jan/13/security/","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Vendor Advisory","advisory","evidence","article"]},{"url":"http://lists.opensuse.org/opensuse-updates/2015-04/msg00001.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"http://secunia.com/advisories/62309","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:109","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory"]},{"url":"http://advisories.mageia.org/MGASA-2015-0026.html","tags":["x_refsource_CONFIRM","x_transferred","advisory"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148485.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-0220","tags":["advisory"]},{"url":"https://github.com/django/django/commit/4c241f1b710da6419d9dca160e80b23b82db7758","tags":["web"]},{"url":"https://github.com/django/django/commit/72e0b033662faa11bb7f516f18a132728aa0ae28","tags":["web"]},{"url":"https://github.com/django/django/commit/de67dedc771ad2edec15c1d00c083a1a084e1e89","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/django/django/blob/4555a823fd57e261e1b19c778429473256c8ea08/docs/releases/1.4.18.txt#L34-L46","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2015-5.yaml","tags":["web"]},{"url":"https://web.archive.org/web/20150128111656/http://secunia.com/advisories/62285","tags":["web"]},{"url":"https://web.archive.org/web/20150523054951/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:109/?name=MDVSA-2015:109","tags":["web"]},{"url":"https://web.archive.org/web/20150523054953/http://www.mandriva.com/en/support/security/advisories/advisory/MDVSA-2015:036/?name=MDVSA-2015:036","tags":["web"]},{"url":"https://web.archive.org/web/20151104201446/http://secunia.com/advisories/62718","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2015/jan/13/security","tags":["web"]},{"url":"https://github.com/advisories/GHSA-gv98-g628-m9x5","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03042,"epssPercentile":0.87787,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2015-0220","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2015-0220","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2015-0220","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gv98-g628-m9x5","ok":true,"note":"GHSA-gv98-g628-m9x5"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2015-0220","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}