asgiref is vulnerable to Inefficient Algorithmic Complexity
46
Medium Risk
Affected versions of this package allowed a potential Denial of Service (DoS) via the asgiref.wsgi.WsgiToAsgi adapter, where malicious requests containing an excessive number of duplicated HTTP headers could trigger resource exhaustion during WSGI environment construction. An attacker could exploit this by sending crafted requests with thousands of repeated header fields, causing high CPU and memory usage and degrading or crashing the service. The issue is mitigated by a more efficient algorithm and an optional duplicate_header_limit (default: 100) that rejects malformed requests exceeding the limit, unless explicitly disabled.
You are affected if you are using a version that falls within the vulnerable range.
asgiref is vulnerable to Inefficient Algorithmic Complexity in versions 3.0.0 - 3.11.0.
Upgrade the asgiref library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant