Technical impact
Caddy, an extensible server platform that uses TLS by default, has a flaw in its reverse proxy module that allows hop‑by‑hop headers to be forwarded to the client when handling a 101 Switching Protocols response. The flaw occurs because the finalizeResponse method processes the 101 response before removing connection‑specific headers. As a result, an attacker who controls or compromises the proxied WebSocket upstream can cause hop‑by‑hop headers—including Alt‑Svc, Keep‑Alive, Proxy‑Authenticate, as well as headers listed by the Connection field—to cross the proxy boundary. The leaked headers are normalized only for WebSocket‑specific names, so additional sensitive information may be exposed. In HTTP/2 or HTTP/3 contexts, an extended CONNECT operation that returns a 101 response may be represented to the client as an ordinary successful response, increasing the chance that the leaked headers are processed by downstream clients or applications.
Affected Systems
The vulnerability affects the Caddy web server, handled by the caddyserver:caddy product line. All versions prior to 2.11.5 that include the reverse proxy module are impacted. It is fixed in version 2.11.5.
Risk and Exploitability
The CVSS score of 2.9 indicates low severity, and the EPSS score is not available, suggesting low likelihood of widespread exploitation at present. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a compromised or malicious WebSocket upstream that the attacker controls; it is inferred from the description that direct access to the upstream service is required for the attacker to influence the header leakage. The impact is primarily the disclosure of hop‑by‑hop header content, which could reveal upstream configuration or credentials and potentially aid other attacks if sensitive header values are exposed.
Github GHSA