Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-12781
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:16 UTC · Revision 1
Source evidence
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.
osv:CVE-2019-12781
Complete source record
{
"id": "8b8ad1a89d1108ea1b2fb3160de30aecf59f2a7fd0d36813292c7fc1e061d5ae",
"url": "https://osv.dev/vulnerability/CVE-2019-12781",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-12781",
"summary": "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.",
"evidence": "osv:CVE-2019-12781",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2019-12781",
"aliases": [
"CVE-2019-12781",
"GHSA-6c7v-2f49-8h26",
"PYSEC-2019-10"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/django/django",
"type": "GIT",
"events": [
{
"introduced": "c669cf279ae7b3e02a61db4fb077030a4db80e4f"
},
{
"fixed": "480380c9935a2e920a41828b3a07bee66a686a67"
},
{
"introduced": "df591468251ed489a3e147d7c359f387f4effe66"
},
{
"fixed": "90a1cfd60002c465d9c47ad9ebc0a79ad0bc6cf9"
},
{
"introduced": "2a62cdcfec85938f40abb2e9e6a9ff497e02afe8"
},
{
"fixed": "89e9a4aeb62ff63ae2d387b1142d6ddaa842d66d"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "1.11"
},
{
"fixed": "1.11.22"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.1"
},
{
"fixed": "2.1.10"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*",
"range": [
{
"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"
}
}
],
"modified": "2026-10-24T10:31:05.217947732Z",
"provider": "osv",
"references": [
"https://groups.google.com/forum/#%21topic/django-announce/Is4kLY9ZcZQ",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5VXXWIOQGXOB7JCGJ3CVUW673LDHKEYL/",
"https://seclists.org/bugtraq/2019/Jul/10",
"https://security.netapp.com/advisory/ntap-20190705-0002/",
"https://usn.ubuntu.com/4043-1/",
"https://www.debian.org/security/2019/dsa-4476",
"https://docs.djangoproject.com/en/dev/releases/security/",
"https://www.djangoproject.com/weblog/2019/jul/01/security-releases/"
],
"provider_metadata": {
"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:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"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"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2019-12781",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 440702,
"published_at": "2019-07-01T14:15:10.847+00:00"
}