BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
1–10 of 65 posts
Re: BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
#2Re: BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
#3Re: BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
#4This is a bad one. Rating it a medium understates how hard it hits thousands of downstream projects and billions of installs. People need to patch asap. I'm normally against the "giving a bug a name, logo, and website" trope, but this one is getting poor patch rates because of it being rated a medium and landing right before a big American holiday weekend.
As an example, I just confirmed that both Cloudflare and AWS ALBs reject all of the attack patterns. Still not good, lateral movement is a time-honored tactic, etc. but it buys time to patch.
Re: BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
#5Re: BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
#6An attacker can send a crafted request like GET /protected with a Host: example.com/health?x= header. The request will reach the /proteced path, but request.url would be https://example.com/health?x=/protected, and request.url.path would return /health instead of the real request path.
Re: BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
#7It's used a lot in the data heavy AI world for it's efficiency shipping large files. This includes lots and lots of production servers.
From the advisory: this includes LLM inference servers like vLLM, LLM proxy servers like LiteLLM, AI agent frameworks, MCP gateways, and custom APIs. MCP servers are especially at risk because the MCP spec mandates unauthenticated OAuth discovery endpoints, providing a reliable path for exploitation.
Re: BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
#8If you read the advisory and are wondering what starlette is, from it's web page: starlette is a lightweight ASGI framework/toolkit, which is ideal for building async web services in Python. It's used a lot in the data heavy AI world for it's efficiency shipping large files. This includes lots and lots of production servers. From the advisory: this includes LLM inference servers like vLLM, LLM proxy servers like Lite…
Re: BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
#9If you do async python I strongly recommend it.
FastAPI is built on Starlette - to be honest I don’t see the point of the extra baggage - just use Starlette.
Re: BadHost – CVE-2026-48710: Starlette Host-Header Auth Bypass
#10They should be stopping this attack at the door (even if only to clean out your logs from scraper door knocks), which is probably why it went unnoticed for years. I don't think anyone would be deploying {A,W}SGI servers on public facing ports these days. Even if only because SSL termination is much easier in the proxy layer.
Also good lord that ARS article is a mess. What the hell happened there? An ASGI server isn't unique to AI or anything, it's just a regular supply chain dependency. I kinda expect better from ARS on stuff like this.