Debian Security Advisory

DLA-1842-1 python-django -- LTS security update

Date Reported:
01 Jul 2019
Affected Packages:
python-django
Vulnerable:
Yes
Security database references:
In Mitre's CVE dictionary: CVE-2019-12781.
More information:

It was discovered that the Django Python web development framework did not correct identify HTTP connections when a reverse proxy connected via HTTPS.

  • CVE-2019-12781: Incorrect HTTP detection with reverse-proxy connecting via HTTPS

    When deployed behind a reverse-proxy connecting to Django via HTTPS, django.http.HttpRequest.scheme would incorrectly detect client requests made via HTTP as using HTTPS. This entails incorrect results for is_secure(), and build_absolute_uri(), and that HTTP requests would not be redirected to HTTPS in accordance with SECURE_SSL_REDIRECT.

For Debian 8 Jessie, these problems have been fixed in version 1.7.11-1+deb8u6.

We recommend that you upgrade your python-django packages.

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS