Highlights
Denial of Service: 2 prior fixes. Scrutinize any change in this area.
src/websockets/sync/connection.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.
Cross-Site WebSocket Hijacking: Validation of the WebSocket Origin header using partial regular expression matching allowed unauthorized domains to establish connections. Developers must ensure full-string anchor validation for all origin verification paths.
Denial of Service: Race conditions in connection teardown and thread initialization can trigger unhandled AttributeErrors and AssertionErrors, terminating the background processing threads. Strict locking and deferred thread execution are required to prevent thread-safety crashes.
Information Disclosure: When a client is redirected to a cross-origin target, sensitive credentials and authorization headers could be leaked if they are not explicitly stripped before dispatching the redirected request.