{"schema_version":"1.7.5","id":"CVE-2019-12781","published":"2019-07-01T14:15:10.847Z","modified":"2026-07-15T10:14:45.937832401Z","aliases":["GHSA-6c7v-2f49-8h26","PYSEC-2019-10"],"related":["SUSE-SU-2019:2257-1","SUSE-SU-2019:2335-1","SUSE-SU-2019:2379-1","SUSE-SU-2019:3127-1","openSUSE-SU-2019:1839-1","openSUSE-SU-2019:1872-1","openSUSE-SU-2024:11205-1","openSUSE-SU-2024:13887-1","openSUSE-SU-2024:14208-1","openSUSE-SU-2026:10005-1","openSUSE-SU-2026:11235-1","openSUSE-SU-2026:11248-1","openSUSE-SU-2026:11270-1"],"details":"An issue was discovered in Django 1.11 before 1.11.22, 2.1 before 2.1.10, and 2.2 before 2.2.3. An HTTP request is not redirected to HTTPS when the SECURE_PROXY_SSL_HEADER and SECURE_SSL_REDIRECT settings are used, and the proxy connects to Django via HTTPS. In other words, django.http.HttpRequest.scheme has incorrect behavior when a client uses HTTP.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/django/django","events":[{"introduced":"c669cf279ae7b3e02a61db4fb077030a4db80e4f"},{"fixed":"480380c9935a2e920a41828b3a07bee66a686a67"},{"introduced":"df591468251ed489a3e147d7c359f387f4effe66"},{"fixed":"90a1cfd60002c465d9c47ad9ebc0a79ad0bc6cf9"},{"introduced":"2a62cdcfec85938f40abb2e9e6a9ff497e02afe8"},{"fixed":"89e9a4aeb62ff63ae2d387b1142d6ddaa842d66d"}],"database_specific":{"cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"1.11"},{"fixed":"1.11.22"},{"introduced":"2.1"},{"fixed":"2.1.10"},{"introduced":"2.2"},{"fixed":"2.2.3"}],"source":"CPE_RANGE"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-12781.json"}}],"references":[{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html"},{"type":"WEB","url":"https://groups.google.com/forum/#%21topic/django-announce/Is4kLY9ZcZQ"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5VXXWIOQGXOB7JCGJ3CVUW673LDHKEYL/"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/109018"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Jul/10"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20190705-0002/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4043-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4476"},{"type":"FIX","url":"http://www.openwall.com/lists/oss-security/2019/07/01/3"},{"type":"FIX","url":"https://docs.djangoproject.com/en/dev/releases/security/"},{"type":"FIX","url":"https://www.djangoproject.com/weblog/2019/jul/01/security-releases/"}],"database_specific":{"unresolved_ranges":[{"cpes":["cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"16.04"},{"last_affected":"16.04"},{"introduced":"18.04"},{"last_affected":"18.04"},{"introduced":"18.10"},{"last_affected":"18.10"},{"introduced":"19.04"},{"last_affected":"19.04"}],"source":"CPE_STRING","vendor_product":"canonical:ubuntu_linux"},{"cpes":["cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"9.0"},{"last_affected":"9.0"}],"source":"CPE_STRING","vendor_product":"debian:debian_linux"}]},"severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}