Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

pgjones/hypercorn
main @ 0e2311f
3
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
src/hypercorn/asyncio/tcp_server.py: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Subsequent HTTP or WebSocket requests reusing the same connection could read or modify ASGI scope state from prior requests. This connection state leak directly enables privilege escalation or session hijacking.
HTTP Request Smuggling: A type mismatch where the Host header was handled as a unicode string rather than a bytes object in ProxyFixMiddleware breaks ASGI compliance, which can lead to request smuggling downstream or upstream.
Denial of Service: Failure to close idle Keep-Alive connections immediately during a graceful shutdown allows connection hanging, leading to resource exhaustion or slow shutdowns.