Live threats

All CVEs / Canonical

CVE-2015-0220Canonical Ubuntu Linux

Medium 4.3 No auth needed

Priority
41
CVSS 2.0
4.3
EPSS
3.0%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Jan 16, 2015
Updated
Jun 17, 2026
Category
Operating system · Linux
Weakness (CWE)
CWE-79
Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ubuntu Linux.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django < 1.4.18 1.4.18 pip install "django>=1.4.18"
PyPI django ≥ 1.6 < 1.6.10 1.6.10 pip install "django>=1.6.10"
PyPI django ≥ 1.7 < 1.7.3 1.7.3 pip install "django>=1.7.3"
PyPI django < 1.4.18 1.4.18 pip install "django>=1.4.18"
PyPI django ≥ 1.5 < 1.6.10 1.6.10 pip install "django>=1.6.10"
PyPI django ≥ 1.7 < 1.7.3 1.7.3 pip install "django>=1.7.3"

Per OSV / GitHub Advisories (GHSA-gv98-g628-m9x5, PYSEC-2015-5). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
canonicalubuntu_linux10.04
canonicalubuntu_linux12.04
canonicalubuntu_linux14.04
canonicalubuntu_linux14.10
djangoprojectdjango≤ 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

Official sources

References

Links published by the sources. Open them with care.