Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. channels
  4. ›
  5. CVE-2020-35681

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

March 19, 2021 (updated September 13, 2024)

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.

References

  • channels.readthedocs.io/en/stable/releases/3.0.3.html
  • channels.readthedocs.io/en/stable/releases/index.html
  • github.com/advisories/GHSA-v542-8q9x-cffc
  • github.com/django/channels
  • github.com/django/channels/commit/e85874d9630474986a6937430eac52db79a2a022
  • github.com/django/channels/releases
  • github.com/pypa/advisory-database/tree/main/vulns/channels/PYSEC-2021-113.yaml
  • nvd.nist.gov/vuln/detail/CVE-2020-35681

Code Behaviors & Features

Detect and mitigate CVE-2020-35681 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 3.0.3

Fixed versions

  • 3.0.3

Solution

Upgrade to version 3.0.3 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Source file

pypi/channels/CVE-2020-35681.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:06 +0000.