CVE-2012-3442

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.

Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
2.064%
chance of exploitation in the next 30 days
higher than 81.7% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

Timeline

  1. 2012-07-31Published by the CNA17:00 UTC
  2. 2022-05-17GitHub advisory published (GHSA-78vx-ggch-wghm)3577 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-78vx-ggch-wghm, affected packages:

EcosystemPackageVulnerable rangePatched
PyPIdjango< 1.3.21.3.2
PyPIdjango>= 1.4, < 1.4.11.4.1

Affected products

VendorProduct
djangoprojectdjango

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources