CVE-2015-0220Canonical Ubuntu Linux
Medium 4.3 No auth needed
Follow: this CVE · Canonical · Canonical Ubuntu Linux We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Ubuntu Linux.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| canonical | ubuntu_linux | 10.04 |
| canonical | ubuntu_linux | 12.04 |
| canonical | ubuntu_linux | 14.04 |
| canonical | ubuntu_linux | 14.10 |
| djangoproject | django | ≤ 1.4.17 |
| djangoproject | django | 1.6 |
| djangoproject | django | 1.6.1 |
| djangoproject | django | 1.6.2 |
| djangoproject | django | 1.6.3 |
| djangoproject | django | 1.6.4 |
| djangoproject | django | 1.6.5 |
| djangoproject | django | 1.6.6 |
| djangoproject | django | 1.6.7 |
| djangoproject | django | 1.6.8 |
| djangoproject | django | 1.6.9 |
| djangoproject | django | 1.7 |
| djangoproject | django | 1.7.1 |
| djangoproject | django | 1.7.2 |
Official sources
References
Links published by the sources. Open them with care.