mcp-cve-project

CVE-2026-48710 | Starlette BadHost Host-header validation bypass (MCP-adjacent) | High |

CVE Information

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 Breakdown


What is the vulnerability?

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.

Attack prerequisites / exposure

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.

CVE is because of what bug?

The weakness is inconsistent HTTP request interpretation / malformed Host-header handling (CWE-444).

MCP-specific impact / why it matters

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.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.

Fix / Remediation

Upgrade Starlette to 1.0.1 or later. Review FastAPI/Starlette MCP gateways for security checks based on reconstructed URLs.

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

Public advisories and write-ups exist; do not host exploit payloads in this repository.

Detection / verification

Patch

Upgrade Starlette to 1.0.1 or later.