# CVE-2019-12781: python3-django: 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

CVE-2019-12781 is fixed in 3 products on 1 platform, first by python-django 1:1.11.11-1ubuntu1.4, released July 1, 2019. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2019-12781
- Priority: Routine
- CVSS: n/a (Medium)
- EPSS: 0.0171
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 1, 2019

## Description

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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | python-django Ubuntu 18.04.6 LTS (bionic) | 1:1.11.11-1ubuntu1.4 | [python-django 1:1.11.11-1ubuntu1.4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-django-1-1.11.11-1ubuntu1.4.md) | Jul 1, 2019 |
| Linux | python-django-common Ubuntu 18.04.6 LTS (bionic) | 1:1.11.11-1ubuntu1.4 | [python-django-common 1:1.11.11-1ubuntu1.4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-django-common-1-1.11.11-1ubuntu1.4.md) | Jul 1, 2019 |
| Linux | python3-django Ubuntu 18.04.6 LTS (bionic) | 1:1.11.11-1ubuntu1.4 | [python3-django 1:1.11.11-1ubuntu1.4](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-django-1-1.11.11-1ubuntu1.4.md) | Jul 1, 2019 |

---

Data as of 2026-11-07T18:46:35Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
