# CVE-2020-35681: Django Channels leakage of session identifiers using legacy AsgiHandler

- Severity: High 7.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.69%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-22T02:03:14.000Z
- Modified: 2026-06-17T03:14:07.267Z
- Also known as: GHSA-v542-8q9x-cffc, PYSEC-2021-113
- Weaknesses: CWE-200
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- channels (PyPI): from 3.0.0 before 3.0.3
- djangoproject channels: from 3.0.0 before 3.0.3

## Every score

- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:P`

## References

- <https://channels.readthedocs.io/en/stable/releases/3.0.3.html> (exploit, vendor-advisory, web)
- <https://github.com/django/channels/releases> (third-party-advisory, web)
- <https://channels.readthedocs.io/en/stable/releases/index.html> (release-notes, vendor-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)

## Sources

- CVE List: [CVE-2020-35681](https://www.cve.org/CVERecord?id=CVE-2020-35681), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-v542-8q9x-cffc](https://github.com/advisories/GHSA-v542-8q9x-cffc), CC-BY-4.0, modified 2024-09-13
- NVD: [CVE-2020-35681](https://nvd.nist.gov/vuln/detail/CVE-2020-35681), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-113](https://osv.dev/vulnerability/PYSEC-2021-113), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-35681 · Whole record: https://cve.day/CVE-2020-35681.json · Rebuilt by cve.day 2026-11-25T22:57:57.395Z
