CVE-2026-48710
CVE-2026-48710, also known as BadHost, is a vulnerability affecting Starlette versions prior to 1.0.1. A lack of input sanitization on host header paths in Starlette leads to bypassing authentication with a single character across a large swath of Python LLM infrastructure including very large and prominent projects such as FastAPI, LiteLLM, vLLM, text generation inference projects, most OpenAI shim proxies, MCP servers, Agent harnesses, eval dashboards, and model-management UIs. In affected versions, the HTTP Host request header was not validated before being used to reconstruct request.url. Because the routing algorithm relies on the raw HTTP path while request.url is rebuilt from the Host header, a malformed header could make request.url.path differ from the path that was actually requested. Middleware and endpoints that apply security restrictions based on request.url (rather than the raw scope path) could therefore be bypassed. A successful attacker could exploit BadHost to gain access to sensitive data and exfiltrate credentials used by third-party accounts.
EPSS 0.04% · 14.3th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Starlette | Starlette framework, including projects and frameworks relying on Starlette |
Timeline
- May 26, 2026 CVE Published
- May 27, 2026 EPSS Score
- May 28, 2026 EPSS Score
- May 28, 2026 Coalition ESS Score
- May 29, 2026 EPSS Score
- May 30, 2026 EPSS Score
- May 31, 2026 EPSS Score
- Jun 1, 2026 EPSS Score
- Jun 3, 2026 CVE Updated
- Jun 5, 2026 Security Advisory
References
- https://ccb.belgium.be/advisories/warning-vulnerability-starlette-framework-and-related-frameworks-fastapi-exposes advisory
- https://badhost.org/ vendor
- https://github.com/Kludex/starlette/security/advisories/GHSA-86qp-5c8j-p5mr vendor
- https://ostif.org/disclosing-the-badhost-vulnerability-in-starlette/ technical
- https://x41-dsec.de/lab/advisories/x41-2026-002-starlette/ technical
- https://arstechnica.com/information-technology/2026/05/millions-of-ai-agents-imperiled-by-critical-vulnerability-in-open-source-package/ technical