CVE-2019-12781Djangoproject Django
Medium 5.3 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Django We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.0
- 5.3
- EPSS
- 1.7% probability of exploitation in 30 days · percentile 78
- Auth required
- No
- Published
- Jul 1, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-319
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Django.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | django |
≥ 2.1 < 2.1.10 |
2.1.10 |
pip install "django>=2.1.10" |
| PyPI | django |
≥ 2.2 < 2.2.3 |
2.2.3 |
pip install "django>=2.2.3" |
| PyPI | django |
≥ 1.11 < 1.11.22 |
1.11.22 |
pip install "django>=1.11.22" |
| PyPI | django |
≥ 2.1 < 2.1.10 |
2.1.10 |
pip install "django>=2.1.10" |
| PyPI | django |
≥ 2.2 < 2.2.3 |
2.2.3 |
pip install "django>=2.2.3" |
| PyPI | django |
≥ 1.11 < 1.11.22 |
1.11.22 |
pip install "django>=1.11.22" |
Per OSV / GitHub Advisories (GHSA-6c7v-2f49-8h26, PYSEC-2019-10). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | django | ≥ 1.11 < 1.11.22 |
| djangoproject | django | ≥ 2.1 < 2.1.10 |
| djangoproject | django | ≥ 2.2 < 2.2.3 |
| canonical | ubuntu_linux | 16.04 |
| canonical | ubuntu_linux | 18.04 |
| canonical | ubuntu_linux | 18.10 |
| canonical | ubuntu_linux | 19.04 |
| debian | debian_linux | 9.0 |
Official advisories
- python313-Django5-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11270-1 · Jul 14, 2026 Critical
- python313-Django-5.2.16-1.1 on GA media · SUSE · openSUSE-SU-2026:11248-1 · Jul 10, 2026 Critical
- python313-Django4-4.2.30-4.1 on GA media · SUSE · openSUSE-SU-2026:11235-1 · Jul 9, 2026 Critical
Also: SUSE (+1)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- lists.opensuse.org
- lists.opensuse.org
- www.openwall.com Mailing List Patch Third Party Advisory
- www.securityfocus.com Third Party Advisory
- docs.djangoproject.com Patch Vendor Advisory
- groups.google.com
- lists.fedoraproject.org
- seclists.org Third Party Advisory
- security.netapp.com Third Party Advisory
- usn.ubuntu.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.djangoproject.com Patch Vendor Advisory