CVE-2026-55458

Caddy: RFC 7230 §6.1 compliance issue / Hop-by-hop headers that leak through

Published Nov 5, 2026 CVSS 4.0 · 2.9 Low EPSS < 1% KEV · Not listed
Description
Caddy is an extensible server platform that uses TLS by default. Prior to 2.11.5, the reverse proxy's finalizeResponse method in modules/caddyhttp/reverseproxy/reverseproxy.go handles an upstream 101 Switching Protocols response before running removeConnectionHeaders and the hopHeaders deletion loop used for ordinary responses. The early return invokes handleUpgradeResponse, which copies the upstream headers to the client and normalizes only WebSocket-specific header names. An attacker who controls or compromises a proxied WebSocket upstream can therefore cause hop-by-hop headers such as Alt-Svc, Keep-Alive, and Proxy-Authenticate, as well as headers named by Connection, to cross the proxy boundary. For HTTP/2 or HTTP/3 extended CONNECT, the upstream 101 response may be represented to the client as an ordinary successful response, increasing the chance that leaked headers are processed. This issue is fixed in version 2.11.5.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Caddy to version 2.11.5 or later.
  • Reconfigure the reverse proxy to restrict or eliminate WebSocket upgrades that accept connections from untrusted upstreams, ensuring only trusted services are proxied.
  • Review and filter outbound traffic to strip hop‑by‑hop headers before they reach clients, and monitor for unexpected header values that may indicate a compromised upstream.

Generated by OpenCVE AI on November 6, 2026 at 14:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8qx7-j2v2-x6q5 Caddy has an RFC 7230 §6.1 compliance issue / Hop-by-hop headers that leak through
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-791
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'}

threat_severity

Low

Type Values Removed Values Added
First Time appeared Caddyserver
Caddyserver caddy
Vendors & Products Caddyserver
Caddyserver caddy
Type Values Removed Values Added
Description Caddy is an extensible server platform that uses TLS by default. Prior to 2.11.5, the reverse proxy's finalizeResponse method in modules/caddyhttp/reverseproxy/reverseproxy.go handles an upstream 101 Switching Protocols response before running removeConnectionHeaders and the hopHeaders deletion loop used for ordinary responses. The early return invokes handleUpgradeResponse, which copies the upstream headers to the client and normalizes only WebSocket-specific header names. An attacker who controls or compromises a proxied WebSocket upstream can therefore cause hop-by-hop headers such as Alt-Svc, Keep-Alive, and Proxy-Authenticate, as well as headers named by Connection, to cross the proxy boundary. For HTTP/2 or HTTP/3 extended CONNECT, the upstream 101 response may be represented to the client as an ordinary successful response, increasing the chance that leaked headers are processed. This issue is fixed in version 2.11.5.
Title Caddy: RFC 7230 §6.1 compliance issue / Hop-by-hop headers that leak through
Weaknesses CWE-444
References
Metrics cvssV4_0

{'score': 2.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-444

    Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

  • CWE-791

    Incomplete Filtering of Special Elements

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 6:23 PM
Reserved
Jun 16, 2026, 10:10 PM
Status
Awaiting Analysis
Published
Nov 5, 2026, 9:18 PM
Modified
Nov 12, 2026, 10:18 PM
Severity
Low
Public date
Nov 5, 2026, 8:15 PM