Advisory

PYSEC-2021-113

Also known as: CVE-2020-35681, GHSA-v542-8q9x-cffc

Summary

The record has no summary.

Details

Django Channels 3.x before 3.0.3 allows remote attackers to obtain sensitive information from a different request scope. The legacy channels.http.AsgiHandler class, used for handling HTTP type requests in an ASGI environment prior to Django 3.0, did not correctly separate request scopes in Channels 3.0. In many cases this would result in a crash but, with correct timing, responses could be sent to the wrong client, resulting in potential leakage of session identifiers and other sensitive data. Note that this affects only the legacy Channels provided class, and not Django's similar ASGIHandler, available from Django 3.0.

Severity

Not rated by the source.

Dates

Published
2021-02-22 03:15 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

channels

PyPI · All systems

Affected

  • introduced 3.0.0, fixed 3.0.3 (ecosystem)

Fixed versions

3.0.3

Fix

  • Fixed version 3.0.3
    pip install --upgrade channels==3.0.3

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