CVE-2019-12781 in Canonical Ubuntu Linux and 2 more products
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 incorre...
Affects 3 products from 3 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Ubuntu Linux | 16.04 18.04 18.10 19.04 |
| Debian | Debian Linux | 9.0 |
| Djangoproject | Django | ≥ 1.11, < 1.11.22 ≥ 2.1, < 2.1.10 ≥ 2.2, < 2.2.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2019-12781 |
|---|---|
| BreachSpider ID | BS-2019-GLOBAL-134540-M |
| CVSS vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| Published | 2019-07-01 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-319: CWE-319
Related attack patterns (CAPEC)
CAPEC-65 Sniff Application Code via CWE-319
CAPEC-102 Session Sidejacking via CWE-319
CAPEC-383 Harvesting Information via API Event Monitoring via CWE-319
CAPEC-477 Signature Spoofing by Mixing Signed and Unsigned Content via CWE-319
CAPEC-117 Interception via CWE-319
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2019. A medium severity vulnerability affects Canonical systems (CVE-2019-12781). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability 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. CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
Questions
What is CVE-2019-12781?
This vulnerability was disclosed in 2019. A medium severity vulnerability affects Canonical systems (CVE-2019-12781). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2019-12781?
CVE-2019-12781 has CVSS 5.3 (Medium). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N. EPSS: 1.7%.
Is CVE-2019-12781 actively exploited?
No confirmed active exploitation of CVE-2019-12781 as of 2026-06-21.
How do I remediate CVE-2019-12781?
Priority: MONITOR. Advisory: https://docs.djangoproject.com/en/dev/releases/security/ PSIRT: [email protected]
What systems are affected by CVE-2019-12781?
CVE-2019-12781 affects Canonical Ubuntu Linux; Debian Debian Linux; Djangoproject Django.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.