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.
Advisories
Source ID Title
Debian DLA Debian DLA DLA-143-1 python-django security update
Debian DSA Debian DSA DSA-3151-1 python-django security update
EUVD EUVD EUVD-2015-0014 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.
Github GHSA Github GHSA GHSA-gv98-g628-m9x5 Django Cross-site Scripting Vulnerability
Ubuntu USN Ubuntu USN USN-2469-1 Django vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

No history.

cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2024-08-06T04:03:10.421Z

Reserved: 2014-11-18T00:00:00

Link: CVE-2015-0220

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2015-01-16T16:59:19.563

Modified: 2025-04-12T10:46:40.837

Link: CVE-2015-0220

cve-icon Redhat

Severity : Moderate

Publid Date: 2015-01-13T00:00:00Z

Links: CVE-2015-0220 - Bugzilla

cve-icon OpenCVE Enrichment

No data.