{"id":"UBUNTU-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.","modified":"2026-01-30T02:50:58.930866Z","published":"2015-01-13T00:00:00Z","related":["USN-2469-1"],"upstream":["CVE-2015-0220"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2015-0220"},{"type":"REPORT","url":"https://www.djangoproject.com/weblog/2015/jan/13/security/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-2469-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2015-0220"}],"affected":[{"package":{"name":"python-django","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/python-django@1.6.1-2ubuntu0.6?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.1-2ubuntu0.6"}]}],"versions":["1.5.4-1ubuntu1","1.6-1","1.6.1-1","1.6.1-2","1.6.1-2ubuntu0.1","1.6.1-2ubuntu0.2","1.6.1-2ubuntu0.3","1.6.1-2ubuntu0.4","1.6.1-2ubuntu0.5"],"ecosystem_specific":{"binaries":[{"binary_name":"python-django","binary_version":"1.6.1-2ubuntu0.6"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2015/UBUNTU-CVE-2015-0220.json"}}],"schema_version":"1.7.3","severity":[{"type":"Ubuntu","score":"medium"}]}