{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2012-3442","id":"CVE-2012-3442","title":"Django Allows Redirect via Data URL","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.","descriptionLong":"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.","published":"2012-07-31T17:00:00.000Z","updated":"2026-04-10T03:42:23.110428Z","reserved":"2012-06-14T00:00:00.000Z","status":"PUBLISHED","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":["<1.3.2",">=1.4 <1.4.1"],"fixed":["1.3.2","1.4.1"],"advisory":"GHSA-78vx-ggch-wghm"}],"cwes":["CWE-79"],"aliases":["GHSA-78vx-ggch-wghm","PYSEC-2012-2"],"references":[{"url":"http://www.openwall.com/lists/oss-security/2012/07/31/1","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"https://www.djangoproject.com/weblog/2012/jul/30/security-releases-issued/","tags":["x_refsource_CONFIRM","x_transferred","advisory","fix","article"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:143","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred","advisory","web"]},{"url":"http://www.ubuntu.com/usn/USN-1560-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2012/07/31/2","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://www.debian.org/security/2012/dsa-2529","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-3442","tags":["advisory"]},{"url":"https://github.com/django/django/commit/4dea4883e6c50d75f215a6b9bcbd95273f57c72d","tags":["web"]},{"url":"https://github.com/django/django/commit/e34685034b60be1112160e76091e5aee60149fa1","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-2.yaml","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2012/jul/30/security-releases-issued","tags":["web"]},{"url":"https://github.com/advisories/GHSA-78vx-ggch-wghm","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02064,"epssPercentile":0.81837,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2012-3442","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-3442","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2012-3442","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-78vx-ggch-wghm","ok":true,"note":"GHSA-78vx-ggch-wghm"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2012-3442","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}