Live threats

All CVEs / Djangoproject

CVE-2019-12781Djangoproject Django

Medium 5.3 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
djangoprojectdjango≥ 1.11 < 1.11.22
djangoprojectdjango≥ 2.1 < 2.1.10
djangoprojectdjango≥ 2.2 < 2.2.3
canonicalubuntu_linux16.04
canonicalubuntu_linux18.04
canonicalubuntu_linux18.10
canonicalubuntu_linux19.04
debiandebian_linux9.0

Official advisories

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.