SEVERITY NOT PROVIDED

HSEC-2026-0015: Missing validation of CONNECT requests in http2

Published 2026-11-16 · Updated 2026-11-16

Summary

The http2 library fails to properly validate CONNECT request headers, allowing for inconsistent :authority and Host headers. Developers using the http2 package should upgrade to version 5.4.14 or later to ensure proper request validation.

Who is affected

This vulnerability enables request smuggling by exploiting discrepancies between how intermediaries and back-end applications parse authority information. Successful exploitation requires a front-end proxy that validates requests based on :authority while the back-end application relies on the Host header for routing or authorization. A secondary risk includes potential stream errors if a malformed request is processed without required headers.

Exploitability

The severity, CVSS vector, and EPSS scores are not documented. CISA KEV status is no, indicating no evidence of active exploitation.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
Hackage http2 >= 4.0.0, < 5.4.14 5.4.14 -

FAQ

What happens if I don't upgrade?

Your application remains vulnerable to request smuggling where attackers may bypass front-end security controls like WAFs, logging, or access policies.

Does this impact directly exposed servers?

The description notes that a directly exposed server sees only one authority, which limits the risk compared to setups involving intermediaries that inspect :authority.

Is the server process at risk of crashing?

No, the reported exception in warp when receiving a malformed request is confined to the specific stream's worker thread, resulting in a stream reset rather than a full process crash.

Original advisory description
# Missing validation of CONNECT requests in http2 For CONNECT requests, `checkRequestHeader` (`Network/HTTP2/H2/HPACK.hs`) in http2 up to 5.4.13 returned early, only requiring the absence of `:scheme` and `:path`. Every other check was skipped: * the requirement that `:authority` is present (RFC 9113, Section 8.5); * the check that `:authority` and `Host` agree, which applies to every other request (RFC 9113, Section 8.3.1: a server SHOULD treat a mismatch as malformed); * the common checks for `:status`, `Connection` and `TE`. A CONNECT request carrying `:authority: a.example` and `Host: b.example` was therefore accepted. Consumers that read `Host` see `b.example` where intermediaries that read `:authority` see `a.example`. warp, for example, sets `requestHeaderHost` to `Host` when present and falls back to `:authority`, so an application behind an intermediary that routes or authorizes on `:authority` handles a request other than the one the intermediary validated - a request can be smuggled past the front-end's access control, validation, logging or WAF rules. Exploitation requires a front-end that makes decisions based on `:authority` while the application behind it bases routing or authorization on `Host`; a directly exposed server sees only one authority. A CONNECT request with neither `:authority` nor `:path` also passed validation and reached warp 3.4.21, where `fromJust (mPath <|> mAuth)` (`Network/Wai/Handler/Warp/HTTP2/Request.hs`) threw. The exception was raised in the stream's worker thread, so it reset one stream and did not affect the server process. ## Resolution http2 5.4.14 validates CONNECT requests like every other request: `:authority` is required, `:scheme` and `:path` are forbidden, and the common checks apply, including the `:authority`/`Host` consistency check. A malformed request is rejected with a stream error of type `PROTOCOL_ERROR`, leaving the connection itself in place. With every request thus carrying `:path` or `:authority` when it reaches warp, the `fromJust` can no longer fail, so warp needs no change. The same release also stops the server from pushing on a request that has no `:scheme` or `:authority`, where a push previously crashed on the missing `:scheme`. Upgrade to http2 5.4.14 or later. Series before 4.0 performed no `:authority`/`Host` consistency check at all, for any request, and are unsupported; upgrade regardless. ## Credits Reported by Akash Sebastian (@akashseb). Validated and fixed by Kazu Yamamoto.

References

Source records: HSEC-2026-0015 (OSV.dev).