CVE-2020-35681Djangoproject Channels
High 7.4 No auth needed
Follow: this CVE · Djangoproject · Djangoproject Channels We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Channels.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| djangoproject | channels | ≥ 3.0.0 < 3.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- channels.readthedocs.io Exploit Vendor Advisory
- channels.readthedocs.io Release Notes Vendor Advisory
- github.com Third Party Advisory