CVE-2019-12781
MEDIUM 5.3CVSS 3.0Django Incorrect HTTP detection with reverse-proxy connecting via HTTPS
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.
- Published
- 1 Jul 2019
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-319
- Also known as
- GHSA-6c7v-2f49-8h26PYSEC-2019-10
- Sources
- NVDJSONOSV GHSA-6c7v-2f49-8h26JSONOSV PYSEC-2019-10JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 1.11, < 1.11.22 | 1.11.22 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 2.1, < 2.1.10 | 2.1.10 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 2.2, < 2.2.3 | 2.2.3 |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:* |
= 16.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* |
= 18.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.10:*:*:*:*:*:*:* |
= 18.10 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:19.04:*:*:*:*:*:*:* |
= 19.04 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| OSV | PyPI | django | >= 2.1, < 2.1.10 | 2.1.10 |
| OSV | PyPI | django | >= 2.2, < 2.2.3 | 2.2.3 |
| OSV | PyPI | django | >= 1.11, < 1.11.22 | 1.11.22 |
| OSV | PyPI | django | >= 2.1, < 2.1.10; >= 2.2, < 2.2.3; >= 1.11, < 1.11.22 | 2.1.10, 2.2.3, 1.11.22 |
References
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00006.html · WEB
- http://lists.opensuse.org/opensuse-security-announce/2019-08/msg00025.html · WEB
- http://www.openwall.com/lists/oss-security/2019/07/01/3 · Mailing List, Patch, Third Party Advisory, WEB
- http://www.securityfocus.com/bid/109018 · Third Party Advisory, WEB
- https://docs.djangoproject.com/en/dev/releases/security/ · Patch, Vendor Advisory, WEB
- 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 · Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20190705-0002/ · Third Party Advisory, WEB, ADVISORY
- https://usn.ubuntu.com/4043-1/ · Third Party Advisory, WEB
- https://www.debian.org/security/2019/dsa-4476 · Third Party Advisory, WEB, ADVISORY
- https://www.djangoproject.com/weblog/2019/jul/01/security-releases/ · Patch, Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2019-12781 · ADVISORY
- https://github.com/advisories/GHSA-6c7v-2f49-8h26 · ADVISORY
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-10.yaml · WEB
- https://groups.google.com/forum/#!topic/django-announce/Is4kLY9ZcZQ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5VXXWIOQGXOB7JCGJ3CVUW673LDHKEYL · WEB
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 1 Jul 2019)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Jul 2019)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Jul 2019)