Advisory

PYSEC-2019-10

Also known as: CVE-2019-12781, GHSA-6c7v-2f49-8h26

Summary

The record has no summary.

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.

Severity

Not rated by the source.

Dates

Published
2019-07-01 14:15 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

django

PyPI · All systems

Affected

  • introduced 2.1, fixed 2.1.10, introduced 2.2, fixed 2.2.3, introduced 1.11, fixed 1.11.22 (ecosystem)

Fixed versions

2.1.10, 2.2.3, 1.11.22

Fix

  • Fixed version 2.1.10
    pip install --upgrade django==2.1.10
  • Fixed version 2.2.3
    pip install --upgrade django==2.2.3
  • Fixed version 1.11.22
    pip install --upgrade django==1.11.22

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences