- CVE-2026-48710 (BadHost) is a critical authorization-bypass flaw in Starlette — the open-source ASGI framework that powers FastAPI and most Python AI tooling.
- Starlette receives 325 million downloads per week; affected packages include FastAPI, vLLM, LiteLLM, Text Generation Inference, OpenAI-shim proxies, and MCP servers.
- A single character injected into the HTTP Host header bypasses path-based authorization.
- BadHost affects Starlette versions before 1.0.1, released Friday. Severity rating: 7/10.
What Happened
A critical vulnerability in Starlette — the open-source framework that powers FastAPI and most Python AI tooling — allows trivially-bypassable authorization on millions of AI-agent servers worldwide, Ars Technica reported, citing security researchers at Secwest. The flaw is tracked as CVE-2026-48710 and branded BadHost. It works against most servers that are not behind a properly configured firewall.
Why It Matters
Starlette receives 325 million downloads per week, per its developer. Thousands of other open-source projects depend on it. The framework is the base of FastAPI and many other widely-used Python services. ASGI — and Starlette by extension — has access to servers running the Model Context Protocol (MCP), which lets AI agents from major providers access external sources including user databases, email, calendar, and other resources. To connect to these external systems, MCP servers store credentials for each, making them particularly valuable targets.
Per Secwest’s disclosure: “A single character injected into the HTTP Host header bypasses path-based authorization in Starlette, the routing core of FastAPI. Through FastAPI, this primitive reaches a large segment of the Python AI tooling ecosystem.”
Technical Details
BadHost affects Starlette versions before 1.0.1, which was released Friday. The vulnerability bypasses path-based authorization in Starlette’s routing core. The injection is trivial: a single character added to the HTTP Host header. The Secwest researchers discovered the flaw while auditing vLLM. The same primitive reaches a broad set of widely-used packages: FastAPI itself, vLLM, LiteLLM, Text Generation Inference, most OpenAI-shim proxies, MCP servers, agent harnesses, evaluation dashboards, and model-management UIs. Severity rating is 7 out of 10.
The bypass becomes especially consequential because MCP servers store third-party credentials. An attacker who reaches a vulnerable MCP server can extract API keys for user data, email accounts, calendar, file storage, and any other system the MCP server was authorized to access.
Who’s Affected
Operators of any production system running Starlette versions before 1.0.1 are the immediate at-risk population. The package set includes FastAPI deployments, vLLM model servers, LiteLLM proxies, Text Generation Inference (TGI) servers, OpenAI-API shim proxies, MCP servers used by Anthropic Claude, OpenAI ChatGPT, and other agent harnesses, evaluation dashboards, and model-management UIs. Cloud-deployed enterprise AI installations are particularly exposed if firewall rules don’t tightly constrain inbound traffic. Anthropic, OpenAI, Google DeepMind, and other major AI providers running infrastructure on these stacks face urgent patching and configuration audit work.
What’s Next
Starlette 1.0.1 is the patched release. Operators should upgrade immediately. Secwest’s full technical write-up is available alongside the CVE assignment. Industry watchers should expect coordinated security advisories from FastAPI, vLLM, LiteLLM, and the major cloud providers. The MCP server ecosystem will likely see additional hardening around credential-storage design in subsequent releases.