A critical vulnerability called “BadHost” (CVE-2026-48710) has been discovered in Starlette, an open-source Python framework that receives 325 million downloads per week. This affects FastAPI, vLLM, LiteLLM, and thousands of other projects that depend on Starlette.
The bug allows attackers to bypass path-based authorization by injecting a single character into the HTTP Host header. Since Starlette is the routing core of FastAPI and powers many MCP servers that store credentials for AI agent external connections, the exposure includes sensitive user databases, email accounts, and other resources.
Security researchers from X41 D-Sec rated it as “critical severity” (higher than the official 7/10 CVE rating) because it can lead to authentication bypass, SSRF exploits, and in some cases remote code execution. The vulnerability affects all Starlette versions prior to 1.0.1.
X41 D-Sec partnered with Nemesis to create an online scanner to check if servers are vulnerable. Researchers strongly recommend anyone running FastAPI, vLLM, or LiteLLM run the scanner immediately and upgrade to Starlette 1.0.1 or later.
Source: https://arstechnica.com/information-technology/2026/05/millions-of-ai-agents-imperiled-by-critical-vulnerability-in-open-source-package/
