| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-48710 |
| EPSS score | 0.014380000 (FIRST EPSS, 2026-06-30) |
| Date (index) | 2026-05-26 |
| Affected product (index) | Starlette / FastAPI-based MCP and AI gateways |
| GHSA ID | GHSA-86qp-5c8j-p5mr |
| OWASP MCP Top 10 (2025) | MCP07 — Insufficient Authentication & Authorization |
| Published / disclosed | 2026-05-26 |
| Ecosystem | Python |
| Component | Starlette request URL reconstruction / Host header parsing |
| CVSS score | 6.5 MEDIUM CVSS v3.1 (NVD) |
| CWE | CWE-444 |
| Affected versions | Starlette before 1.0.1 |
| Fixed versions | 1.0.1 |
| Fix status | Patched |
| Exploit status | Public CVE record and advisories |
| Notes | MCP-adjacent: this is a framework bug, not an MCP protocol bug, but it can affect MCP servers/gateways built on Starlette/FastAPI when security checks rely on reconstructed request.url. Added during the 2026-05-30 review. |
CVE-2026-48710, also called BadHost, is a Host-header validation flaw in Starlette. Before version 1.0.1, malformed Host headers could poison reconstructed request.url values, causing request.url.path to differ from the actual routed path.
The affected application must use vulnerable Starlette/FastAPI request URL reconstruction and apply security decisions based on request.url instead of the raw ASGI scope path.
The weakness is inconsistent HTTP request interpretation / malformed Host-header handling (CWE-444).
This is MCP-adjacent rather than MCP-specific. Many Python MCP servers and AI gateways use FastAPI/Starlette. If an MCP gateway uses path-based allowlists, auth checks, or routing guards built on request.url, BadHost can bypass those checks and expose sensitive endpoints.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.
Upgrade Starlette to 1.0.1 or later. Review FastAPI/Starlette MCP gateways for security checks based on reconstructed URLs.
scope["path"] for security decisions where appropriate.Public advisories and write-ups exist; do not host exploit payloads in this repository.
1.0.1.Upgrade Starlette to 1.0.1 or later.