Skip to content
HN On Hacker News ↗

BadHost - CVE-2026-48710 Starlette Host-Header Auth Bypass

▲ 126 points 51 comments by ylk 3mo ago HN discussion ↗

Pangram verdict · v3.3

We believe that this document is fully human-written

5 %

AI likelihood · overall

Human
100% human-written 0% AI-generated
SEGMENTS · HUMAN 1 of 1
SEGMENTS · AI 0 of 1
WORD COUNT 112
PEAK AI % 5% · §1
Analyzed
May 27
backend: pangram/v3.3
Segments scanned
1 windows
avg 112 words each
Distribution
100 / 0%
human / AI fraction
Verdict
Human
Pangram v3.3

Article text · 112 words · 1 segments analyzed

Human AI-generated
§1 Human · 5%

Any Python application built on Starlette or FastAPI that uses starlette < 1.0.1 and uses request.url (or starlette.datastructures.URL(scope=...)) in a middleware to make security decisions based on its path (e.g. allowlists, denylists, CSRF exemptions, rate limiting, payment gates), and runs on any ASGI server (Daphne, Granian, Gunicorn, Hypercorn, Anycorn, Uvicorn). Use the scanner above, grep your codebase for request.url.path in middleware files, or try the tools from the X41 open-source repository. 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