CVE-2020-35681
Python vulnerability analysis and mitigation

Overview

Django Channels 3.x before 3.0.3 contains a security vulnerability (CVE-2020-35681) that allows remote attackers to obtain sensitive information from a different request scope. The vulnerability affects the legacy channels.http.AsgiHandler class, which is used for handling HTTP type requests in an ASGI environment prior to Django 3.0. The issue was discovered and fixed in February 2021 (NVD, Channels Docs).

Technical details

The vulnerability stems from incorrect separation of request scopes in Channels 3.0 when using the legacy channels.http.AsgiHandler class. With correct timing, responses could be sent to the wrong client due to this scope separation issue. The vulnerability has a CVSS v3.1 Base Score of 7.4 (HIGH) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H. The issue specifically affects installations using ProtocolTypeRouter without explicitly specifying the handler for the 'http' key, or those explicitly using channels.http.AsgiHandler (NVD, Channels Docs).

Impact

The vulnerability can result in potential leakage of session identifiers and other sensitive data to wrong clients. In many cases, the issue would result in a crash, but under specific timing conditions, it could lead to information disclosure where responses are sent to incorrect clients (Channels Docs).

Exploitability

The vulnerability requires network access and specific timing conditions to exploit. While the attack complexity is rated as high, it requires no privileges or user interaction to exploit. The vulnerability affects Channels 3.0.x versions before 3.0.3, particularly when using the legacy AsgiHandler (NVD).

Mitigation and workarounds

The vulnerability was fixed in Channels 3.0.3. Users are recommended to update to this version or later. Additionally, it is recommended to update to Django 3.0+ and use the Django provided ASGIHandler instead of the legacy channels.http.AsgiHandler. For those unable to update immediately, note that both an unspecified handler for the 'http' key and using channels.http.AsgiHandler are deprecated and will raise a warning from Channels v3.0.0 (Channels Docs).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-48169HIGH8.8
  • Python logoPython
  • praisonai-platform
NoYesAug 07, 2026
CVE-2026-48813HIGH8.7
  • Python logoPython
  • flawfinder
NoYesAug 11, 2026
CVE-2026-48804HIGH7.5
  • Python logoPython
  • python311-python-socketio
NoYesAug 11, 2026
CVE-2026-48809HIGH7.5
  • Python logoPython
  • python313-python-engineio
NoYesAug 11, 2026
CVE-2026-48802HIGH7.5
  • Python logoPython
  • python311-python-engineio
NoYesAug 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management