{"id":"CVE-2015-0220","details":"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.","aliases":["GHSA-gv98-g628-m9x5","PYSEC-2015-5"],"modified":"2026-04-16T06:17:40.161779723Z","published":"2015-01-16T16:59:19Z","related":["SUSE-SU-2015:0563-1","SUSE-SU-2015:0695-1"],"references":[{"type":"ADVISORY","url":"http://advisories.mageia.org/MGASA-2015-0026.html"},{"type":"ADVISORY","url":"http://secunia.com/advisories/62285"},{"type":"ADVISORY","url":"http://secunia.com/advisories/62309"},{"type":"ADVISORY","url":"http://secunia.com/advisories/62718"},{"type":"ADVISORY","url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:036"},{"type":"ADVISORY","url":"http://www.mandriva.com/security/advisories?name=MDVSA-2015:109"},{"type":"ADVISORY","url":"https://www.djangoproject.com/weblog/2015/jan/13/security/"},{"type":"EVIDENCE","url":"https://www.djangoproject.com/weblog/2015/jan/13/security/"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148485.html"},{"type":"WEB","url":"http://lists.fedoraproject.org/pipermail/package-announce/2015-January/148608.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-updates/2015-04/msg00001.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-updates/2015-09/msg00035.html"},{"type":"WEB","url":"http://ubuntu.com/usn/usn-2469-1"}],"schema_version":"1.7.5"}