Description
The (1) django.http.HttpResponseRedirect and (2) django.http.HttpResponsePermanentRedirect classes in Django before 1.3.2 and 1.4.x before 1.4.1 do not validate the scheme of a redirect target, which might allow remote attackers to conduct cross-site scripting (XSS) attacks via a data: URL.
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.4.1-1 | — |
| Debian 13 | python-django | 1.4.1-1 | — |
| Debian 12 | python-django | 1.4.1-1 | — |
| Debian 6.0 | python-django | 1.2.3-3+squeeze3 | DSA-2529-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | < 1.3.2 | 1.3.2 | GHSA-78vx-ggch-wghm |
| PyPI | django | >= 1.4, < 1.4.1 | 1.4.1 | GHSA-78vx-ggch-wghm |
| PyPI | django | < 1.3.2 · >= 1.4, < 1.4.1 | 1.3.2, 1.4.1 | PYSEC-2012-2 |
Advisories 1
- DSA-2529-1 python-django - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- [oss-security] 20120730 CVE Request: Django 1.3.1 and 1.4.0 security issues mailing-list
- https://www.djangoproject.com/weblog/2012/jul/30/security-releases-issued/
- MDVSA-2012:143 vendor-advisory
- USN-1560-1 vendor-advisory
- [oss-security] 20120730 Re: CVE Request: Django 1.3.1 and 1.4.0 security issues mailing-list
- DSA-2529 vendor-advisory