← Dev digest

BadHost: Starlette path-based authorization and proxy conditions

The news at the time

The researchers explain that Starlette reconstructed a URL from an unvalidated Host header while routing used the actual request path. Authorization based on the reconstructed path could therefore disagree with the routed endpoint.

The researcher advisory lists affected Starlette versions as >= 0.8.3 and < 1.0.1, and identifies 1.0.1 as patched. Applicability still depends on the application’s path-based security decisions.

Follow-up checked during renewal

At review time, the maintainer advisory says a proxy or load balancer mitigates this only if it rejects or normalizes malformed Host headers before forwarding and the application does not trust attacker-controlled host headers elsewhere.

What to review before applying this

Inspect authorization middleware, resolved dependencies and forwarded-header trust. Merely having a proxy is insufficient; test the real ingress configuration. No exploit experiment was performed for this draft.

Editorial review suggestions; no hands-on product experiment was performed.

Read the original reporting ↗

Claim-by-claim source evidence

The researchers explain that Starlette reconstructed a URL from an unvalidated Host header while routing used the actual request path. Authorization based on the reconstructed path could therefore disagree with the routed endpoint.

routing in Starlette is based on the actual request path.

Evidence source ↗

does not perform any validation of the Host header value.

Evidence source ↗

The researcher advisory lists affected Starlette versions as >= 0.8.3 and < 1.0.1, and identifies 1.0.1 as patched. Applicability still depends on the application’s path-based security decisions.

Confirmed Affected Versions: starlette >= 0.8.3, < 1.0.1 Confirmed Patched Versions: starlette 1.0.1

Evidence source ↗

At review time, the maintainer advisory says a proxy or load balancer mitigates this only if it rejects or normalizes malformed Host headers before forwarding and the application does not trust attacker-controlled host headers elsewhere.

mitigated only if that proxy rejects or normalizes the malformed Host header before forwarding

Evidence source ↗

Korean digest for the historical date: 2026-06-02. Quotations and source context were reviewed editorially; this is not an independent experimental verification.

Discussion