Live threats

All CVEs / Djangoproject

CVE-2020-35681Djangoproject Channels

High 7.4 No auth needed

Priority
60
CVSS 3.1
7.4
EPSS
2.7%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Feb 22, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Channels.
  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 channels ≥ 3.0.0 < 3.0.3 3.0.3 pip install "channels>=3.0.3"
PyPI channels ≥ 3.0.0 < 3.0.3 3.0.3 pip install "channels>=3.0.3"

Per OSV / GitHub Advisories (GHSA-v542-8q9x-cffc, PYSEC-2021-113). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectchannels≥ 3.0.0 < 3.0.3

Official sources

References

Links published by the sources. Open them with care.