CVE-2012-3442Djangoproject Django
Medium 4.3 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 2.0
- 4.3
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Jul 31, 2012
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
What happens
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.
What to do
- Apply the vendor's security update for Django.
- 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.3.2 |
1.3.2 |
pip install "django>=1.3.2" |
| PyPI | django |
≥ 1.4 < 1.4.1 |
1.4.1 |
pip install "django>=1.4.1" |
| PyPI | django |
< 1.3.2 |
1.3.2 |
pip install "django>=1.3.2" |
| PyPI | django |
≥ 1.4 < 1.4.1 |
1.4.1 |
pip install "django>=1.4.1" |
Per OSV / GitHub Advisories (GHSA-78vx-ggch-wghm, PYSEC-2012-2). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | < 1.3.2 |
| djangoproject | django | 1.4 |
Official sources
References
Links published by the sources. Open them with care.
- www.debian.org Third Party Advisory
- www.mandriva.com Broken Link
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.ubuntu.com Broken Link
- www.djangoproject.com Patch Vendor Advisory