Security context

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

gorilla/websocket
main @ e064f32
2
Fixes
1
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Auth Bypass: 1 prior fix. Scrutinize any change in this area.
examples: most-fixed (1 issue). Treat as high-risk during review.
0 high-severity fixes 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: An integer overflow in the length of received websocket frames allows attackers to mount denial of service attacks against the HTTP server. This represents a critical data processing risk within the core library.
Auth Bypass: Allowing non-GET HTTP methods to initiate a WebSocket upgrade can lead to protocol validation bypasses. Explicitly enforcing the GET method during the handshake is critical to preventing unauthorized connection upgrades.
Reflected XSS: Using unsafe text/template rendering in example applications can expose users to Reflected Cross-Site Scripting (XSS). Replacing this with html/template ensures proper contextual output encoding.