Highlights
Denial of Service: 3 prior fixes. Scrutinize any change in this area.
sse_starlette/sse.py: most-fixed (2 issues). 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.
Denial of Service: The connection lifecycle spawns background task structures, historically leaking isolated shutdown watcher tasks on every new SSE connection and causing CPU exhaustion. Ensure background tasks are explicitly bound to the lifecycle of the active connection and cleaned up on disconnect.
Denial of Service: Dependency on older versions of the starlette framework exposes the application to public denial of service exploits tracked under CVE-2025-62727. Keep dependencies updated to prevent known framework-level exploits.
Denial of Service: Concurrent send operations between background stream tasks and ping loops trigger unhandled ASGI exceptions and connection drops, leading to unstable server states. Concurrent writes must be serialized via appropriate locks.