Three ingredients participate in every exhibit, across stacks whose remaining lexicons do not look alike.
The first is a security decision the handler needs to make against a self-referential question. SAML Destination validation asks whether a signed response was intended for this server's Assertion Consumer Service URL. The anti-replay semantics of the check depend on the responder knowing what URL it just received the response at. Apache Airflow's AWS Auth Manager (CVE-2026-25604) runs the check through python3-saml's OneLogin_Saml2_Utils.get_self_url_no_query(request_data) and compares the result to the signed Destination attribute. Path-prefix middleware in an ASGI framework asks whether this request's path lands on an allowlisted segment of the application. Starlette's middleware (CVE-2026-48710) reads request.url.path to answer. A PSR-7 server-side router asks for the request's host to route, log, and build canonical links. guzzlehttp/psr7's Message::parseRequestUri and ServerRequest::extractHostAndPortFromAuthority (CVE-2026-48998) produce a Uri whose ->getHost() is the answer.
The second is a URL-assembly step inside the framework or library that builds the "self" answer by reading the Host header into a URL string and parsing the string back. Starlette's Request.url concatenates scheme, the Host header value from scope["headers"], and scope["path"], then re-parses with urlsplit; request.url.path is whatever the re-parse recovers under the path field. python3-saml's get_self_url_no_query reads request_data['http_host'], which Airflow's handler populates from the inbound Host header, and concatenates it with the scheme and script_name before the Destination comparison. Guzzle's two functions write the literal string 'http://' in front of the Host header value and hand the result to PHP's parse_url; the library has no Host header parser of its own and reaches for a URL parser by producing a URL to parse. In all three, the server's notion of self is assembled from server-side constants plus one client-controlled byte string.
The third is the downstream read that treats the derived self as authoritative. The SAML library's Destination check is cryptographically bound (the assertion is signed) and compares against the computed self URL; the signature attests to the intended audience, and the "I am that audience" claim is caller-written. Starlette's example middleware runs a startswith against the allowlist and admits any request whose Host header shifts the re-parsed path into the prefix. A PSR-7 consumer of Guzzle's Uri reads ->getHost() and receives evil.example when the Host header is [email protected], because parse_url interprets the characters before @ as userinfo and because Uri::__toString had never been expected to round-trip through a userinfo encoder. The attack writes one header and inverts the comparison.
The class is not about signatures. The Starlette exhibit has no cryptography. The class is about the server deriving its own identity from a transport field the client writes and then using the derived identity as the right-hand side of a comparison the client is supposed to be verified against. The shared mechanism explains why fixes drift between codebases: Starlette and Guzzle patched the same shape within four days of each other in October 2026, inside entirely different ecosystems, because the ergonomics of "give me the request's URL as one object" push every HTTP framework toward the same assembly step. Django's request.get_host() passes through ALLOWED_HOSTS for exactly this reason; ASGI frameworks grew TrustedHostMiddleware after enough variants of this bug surfaced to make the primitive general.
Patches cluster into three recognizable shapes. The first pins self-identity at boot. The server reads its canonical URL, its SAML entity ID, its ACS endpoint, its administrative host from operator-provided configuration loaded before the first request is served, and every self-referential comparison references that configuration. The anti-replay Destination check compares against the configured ACS URL; http_host never enters the comparison. The second gates the Host header against a per-deployment allowlist at the earliest ingress. Django's ALLOWED_HOSTS, Starlette's TrustedHostMiddleware, nginx's server_name under default_server rejection: each refuses to admit a Host header outside the pinned set before any request accessor is allowed to inherit it. The third writes the parser the library shipped without. Guzzle's October 2026 fix is a real Host header parser that does not route through parse_url and does not accept userinfo characters in a field that cannot contain them. Each closes one layer. Where the framework's request-URL accessor continues to inherit the Host header without narrowing, and callers continue to read it for security decisions, the class remains live.
The failure repeats because the HTTP Host header's design purpose (route one TCP connection to the right virtual host on a shared-origin server) and the handler's design purpose (compute an absolute URL that represents this request) read the same field as the same answer. There is no separate "my configured hostname" accessor on the per-request object because the per-request object is per-request and the configured hostname is deployment-level state. Code that needs "the server's URL" for a security comparison reaches for the ergonomic single-object accessor and inherits the Host header as its answer. The gap between "URL as the client described this request" and "URL as this server knows itself" is one Host header wide, and the class lands every time a security-relevant comparison crosses that gap.