Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-35681

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-35681
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:12 UTC · Revision 1

Source evidence

CVE-2020-35681

core-osv · Original source

Published 22 Feb 2021, 03:15 UTC

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.

osv:CVE-2020-35681
Complete source record
{
  "id": "538313f1475362780023570ecb120804a47f24abf63d2cc5a425233037e699e7",
  "url": "https://osv.dev/vulnerability/CVE-2020-35681",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-35681",
    "summary": "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.",
    "evidence": "osv:CVE-2020-35681",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-35681",
      "aliases": [
        "CVE-2020-35681",
        "GHSA-v542-8q9x-cffc",
        "PYSEC-2021-113"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/django/channels",
              "type": "GIT",
              "events": [
                {
                  "introduced": "3ab3f42d34da51e4d7c514c88ce6f49b722c58bf"
                },
                {
                  "fixed": "87ab4010ef564cbca3069e0704ef02b512c5cb42"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:djangoproject:channels:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "3.0.0"
                      },
                      {
                        "fixed": "3.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "3.0.2",
            "3.0.1",
            "3.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-35681.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:21.997052548Z",
      "provider": "osv",
      "references": [
        "https://channels.readthedocs.io/en/stable/releases/index.html",
        "https://github.com/django/channels/releases",
        "https://channels.readthedocs.io/en/stable/releases/3.0.3.html"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-35681",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384280,
  "published_at": "2021-02-22T03:15:14.31+00:00"
}