CVE-2020-35681
HIGH 7.4CVSS 3.1Django Channels leakage of session identifiers using legacy AsgiHandler
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.
- Published
- 22 Feb 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-200
- Also known as
- GHSA-v542-8q9x-cffcPYSEC-2021-113
- Sources
- NVDJSONOSV GHSA-v542-8q9x-cffcJSONOSV PYSEC-2021-113JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.8 | AV:N/AC:M/Au:N/C:P/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | channelscpe:2.3:a:djangoproject:channels:*:*:*:*:*:*:*:* |
>= 3.0.0, < 3.0.3 | 3.0.3 |
| OSV | PyPI | channels | >= 3.0.0, < 3.0.3 | 3.0.3 |
References
- https://channels.readthedocs.io/en/stable/releases/3.0.3.html · Exploit, Vendor Advisory, WEB
- https://channels.readthedocs.io/en/stable/releases/index.html · Release Notes, Vendor Advisory, WEB
- https://github.com/django/channels/releases · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-35681 · ADVISORY
- https://github.com/django/channels/commit/e85874d9630474986a6937430eac52db79a2a022 · WEB
- https://github.com/advisories/GHSA-v542-8q9x-cffc · ADVISORY
- https://github.com/django/channels · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/channels/PYSEC-2021-113.yaml · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 22 Feb 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Feb 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 19 Mar 2021)