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 7.06% · 94.2th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Starlette | Starlette framework, including projects and frameworks relying on Starlette |
Timeline
- Jun 26, 2021 CrowdSec Sighting
- Jul 30, 2022 CrowdSec Sighting
- Sep 27, 2022 CrowdSec Sighting
- Dec 17, 2022 CrowdSec Sighting
- Mar 9, 2023 CrowdSec Sighting
- Apr 5, 2023 CrowdSec Sighting
- Aug 10, 2023 CrowdSec Sighting
- Jul 9, 2024 CrowdSec Sighting
- Jul 13, 2024 CrowdSec Sighting
- Oct 24, 2024 CrowdSec Sighting
- Jan 5, 2025 CrowdSec Sighting
- Feb 1, 2025 CrowdSec Sighting
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
- Nuclei Template exploit