{"id":"GHSA-78vx-ggch-wghm","summary":"Django Allows Redirect via Data URL","details":"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.","aliases":["CVE-2012-3442","PYSEC-2012-2"],"modified":"2024-11-26T05:32:40.664477Z","published":"2022-05-17T05:12:01Z","database_specific":{"cwe_ids":["CWE-79"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2023-08-29T21:47:28Z","nvd_published_at":"2012-07-31T17:55:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-3442"},{"type":"WEB","url":"https://github.com/django/django/commit/4dea4883e6c50d75f215a6b9bcbd95273f57c72d"},{"type":"WEB","url":"https://github.com/django/django/commit/e34685034b60be1112160e76091e5aee60149fa1"},{"type":"PACKAGE","url":"https://github.com/django/django"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2012-2.yaml"},{"type":"WEB","url":"https://www.djangoproject.com/weblog/2012/jul/30/security-releases-issued"},{"type":"WEB","url":"http://www.debian.org/security/2012/dsa-2529"},{"type":"WEB","url":"http://www.mandriva.com/security/advisories?name=MDVSA-2012:143"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2012/07/31/1"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2012/07/31/2"},{"type":"WEB","url":"http://www.ubuntu.com/usn/USN-1560-1"}],"affected":[{"package":{"name":"django","ecosystem":"PyPI","purl":"pkg:pypi/django"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.2"}]}],"versions":["1.0.1","1.0.2","1.0.3","1.0.4","1.1","1.1.1","1.1.2","1.1.3","1.1.4","1.2","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6","1.2.7","1.3","1.3.1"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-78vx-ggch-wghm/GHSA-78vx-ggch-wghm.json"}},{"package":{"name":"django","ecosystem":"PyPI","purl":"pkg:pypi/django"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.4"},{"fixed":"1.4.1"}]}],"versions":["1.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-78vx-ggch-wghm/GHSA-78vx-ggch-wghm.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"type":"CVSS_V4","score":"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"}]}