Dev News Daily ENDE

SANS ISC sees scans chaining a Starlette Host-header flaw with LiteLLM's MCP test endpoint

Johannes Ullrich of the SANS Internet Storm Center wrote on 16 November that the centre's honeypots had started receiving requests for /mcp-rest/test/tools/list over the weekend. The requests appear to try to exploit CVE-2026-42271 and CVE-2026-48710, which Horizon3.ai has described as a chain leading to remote code execution without authentication. The body of the captured request asks the server to start a tool with the command id over the stdio transport.

The problem starts in Starlette, the Python web framework. Versions before 1.0.1 do not validate the Host header, a flaw that became known as "BadHost": Starlette builds the full URL from the header and that URL is then used in access-control decisions. The published proof of concept puts characters such as /, ? and # into the Host header to confuse that logic. LiteLLM relies on Starlette, and the flaw lets an attacker reach the LiteLLM endpoint, which normally requires authentication. The Host headers Ullrich has seen so far are localhost], [localhost, 127.0.0.1] and litellm.proxy; he reads the brackets as a possible attempt to get past filters written around the public exploits.

Ullrich notes that the vulnerability is not new and that exploitation was reported in July. His advice: filter on the vulnerability rather than the exploit - flag every character that cannot appear in a hostname, or better, allow only specific hostnames; validate components such as a hostname before assembling them into a URL; and, beyond patching, reduce the attack surface.

SANS ISC sees scans chaining a Starlette Host-header flaw with LiteLLM's MCP test endpoint
SANS ISC sees scans chaining a Starlette Host-header flaw with LiteLLM's MCP test endpoint — Dev News Daily

Why it matters

A filter that matches the published exploit string is already being tested by variants of it. The diary's point is that the durable check sits on the input that was never validated - the Host header - not on the payload that happens to be circulating this month.

Primary source
SANS Internet Storm Center
https://isc.sans.edu/diary/rss/33522
Written by Victoria Shinder.