CVE-2015-0220

medium
Published 2015-01-16 · Modified 2023-11-08
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS v2
4.3
VIR risk
4.3

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2015-0220

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — https://www.djangoproject.com/weblog/2015/jan/13/security/

OS impact

OSVersionStatusFixed in
ubuntu ubuntu10.04affected
ubuntu ubuntu12.04affected
ubuntu ubuntu14.04affected
ubuntu ubuntu14.10affected
debian debianbookwormfixed1.7.1-1.1
debian debianbullseyefixed1.7.1-1.1
debian debianforkyfixed1.7.1-1.1
debian debiansidfixed1.7.1-1.1
debian debiantrixiefixed1.7.1-1.1

Package impact

EcosystemPackageVulnerableFixed
python PyPIdjango<1.4.181.4.18
python PyPIdjango>=1.6,<1.6.101.6.10
python PyPIdjango>=1.7,<1.7.31.7.3

Application impact

VendorProductVersionsFixed
djangoprojectdjango{"endIncluding":"1.4.17"}
djangoprojectdjango1.6
djangoprojectdjango1.6.1
djangoprojectdjango1.6.2
djangoprojectdjango1.6.3
djangoprojectdjango1.6.4
djangoprojectdjango1.6.5
djangoprojectdjango1.6.6
djangoprojectdjango1.6.7
djangoprojectdjango1.6.8
djangoprojectdjango1.6.9
djangoprojectdjango1.7
djangoprojectdjango1.7.1
djangoprojectdjango1.7.2

References

CWEs

CWE-79

Verify integrity in audit chain (admin only). AS-IS.