CVE-2020-35681
Django Channels leakage of session identifiers using legacy AsgiHandler
Reported by mitre · Published February 22, 2021
channels is fixed in 3.0.3 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| channels | PyPI | 3.0.3 |
| channels | djangoproject | 3.0.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | channels | 3.0.0 |
| n/a | n/a | * |
Timeline
- Feb 22, 2021 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory
- Jun 17, 2026 CVE Updated
- Aug 31, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-35681
vulnetix vdb fixes CVE-2020-35681
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-35681/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2020-35681 advisory
- https://github.com/advisories/GHSA-v542-8q9x-cffc advisory
- https://github.com/django/channels/commit/e85874d9630474986a6937430eac52db79a2a022 patch
- https://github.com/django/channels url
- https://github.com/pypa/advisory-database/tree/main/vulns/channels/PYSEC-2021-113.yaml advisory