Description
The django.util.http.is_safe_url function in Django 1.4 before 1.4.13, 1.5 before 1.5.8, 1.6 before 1.6.5, and 1.7 before 1.7b4 does not properly validate URLs, which allows remote attackers to conduct open redirect attacks via a malformed URL, as demonstrated by "http:\\\djangoproject.com."
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 1.6.5-1 | — |
| Debian 13 | python-django | 1.6.5-1 | — |
| Debian 12 | python-django | 1.6.5-1 | — |
| Debian 7 | python-django | 1.4.5-1+deb7u7 | DSA-2934-1 |
| Debian 6.0 | python-django | 1.2.3-3+squeeze10 | DSA-2934-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | python-django | 1.6.1-2ubuntu0.3 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 1.4, < 1.4.13 | 1.4.13 | GHSA-vq3h-3q7v-9prw |
| PyPI | django | >= 1.5, < 1.5.8 | 1.5.8 | GHSA-vq3h-3q7v-9prw |
| PyPI | django | >= 1.6, < 1.6.5 | 1.6.5 | GHSA-vq3h-3q7v-9prw |
| PyPI | django | >= 1.7a1, < 1.7b4 | 1.7b4 | GHSA-vq3h-3q7v-9prw |
| PyPI | django | >= 1.4, < 1.4.13 · >= 1.5, < 1.5.8 · >= 1.6, < 1.6.5 · >= 1.7a0, < 1.7b4 | 1.4.13, 1.5.8, 1.6.5, 1.7b4 | PYSEC-2014-20 |
Advisories 1
- DSA-2934-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- 61281 third-party-advisory
- DSA-2934 vendor-advisory
- USN-2212-1 vendor-advisory
- 67410 vdb-entry
- openSUSE-SU-2014:1132 vendor-advisory
- [oss-security] 20140514 Re: CVE Reuest: Django: Malformed URLs from user input incorrectly validated mailing-list
- https://www.djangoproject.com/weblog/2014/may/14/security-releases-issued/
- [oss-security] 20140514 CVE Reuest: Django: Malformed URLs from user input incorrectly validated mailing-list