Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilityidentity-authentication-vulnerabilityopen-source-dependency-vulnerabilitywidely-deployed-product-advisory

Starlette BadHost Flaw Enables Host-Header Auth Bypass in FastAPI and AI Services

Vulnerability Disclosure · 10 sources · Updated 5mo ago · First seen May 26, 2026

Starlette BadHost Flaw Enables Host-Header Auth Bypass in FastAPI and AI Services

A vulnerability in the Python ASGI framework Starlette allows attackers to bypass path-based authentication and authorization checks by sending malformed HTTP Host headers. Tracked as CVE-2026-48710 and dubbed BadHost, the flaw arises because affected Starlette versions reconstruct request.url from unvalidated Host header data, letting characters such as /, ?, or # poison URL parsing. In vulnerable deployments, middleware or application logic may inspect request.url.path as a harmless path while the ASGI router still processes the real protected path, enabling unauthorized access to endpoints such as admin panels, internal tools, and other restricted routes.

The issue affects Starlette versions before 1.0.1 and has broad downstream impact because Starlette underpins FastAPI and many internet-facing AI and API services, including MCP servers, OpenAI-compatible proxies, vLLM, LiteLLM, Ray Serve, BentoML, and related model-management interfaces. Researchers and advisories warned that exposed systems could leak sensitive data, credentials, API keys, and AI compute resources, with some reports noting possible follow-on risks such as SSRF or even RCE where privileged management endpoints are reachable. Starlette 1.0.1 fixes the bug by validating Host headers against RFC requirements and falling back to scope["server"] when malformed values are supplied; defenders were urged to upgrade, audit bundled dependencies, avoid making security decisions from request.url.path, and use scope["path"] or framework-native authorization controls instead.

Why it matters

Impact assessment

CVE-2026-48710 affects Starlette deployments before 1.0.1 and has broad downstream exposure because Starlette underpins FastAPI and many internet-facing API and AI services. The primary impact is unauthorized access to protected endpoints through Host-header manipulation, which can lead to sensitive data exposure, credential theft, abuse of AI compute resources, and follow-on compromise where privileged management functions are reachable.

Affected populations and products

  • Starlette versions prior to 1.0.1
  • FastAPI applications that inherit Starlette request handling
  • AI and API infrastructure built on Starlette/FastAPI, including:
    • vLLM
    • LiteLLM
    • Ray Serve
    • BentoML
    • MCP servers and gateways
    • OpenAI-compatible proxies
    • Text Generation Inference integrations mentioned in reporting
    • Agent harnesses, eval dashboards, and model-management interfaces
  • Deployments directly exposed via uvicorn, hypercorn, daphne, or granian are higher risk when not protected by a compliant reverse proxy

Severity and business impact

  • Authentication and authorization bypass can expose admin panels, internal tools, model/runtime control surfaces, key-management endpoints, metrics, shutdown routes, and other restricted paths
  • Potential consequences include:
    • sensitive data leakage
    • API key and credential theft
    • unauthorized use of AI inference or compute resources
    • tenant/workspace boundary bypass
    • operational disruption if management or shutdown endpoints are exposed
    • reputational and financial impact from data exposure or service abuse
  • Multiple sources state the practical risk may exceed the published CVSS because exploitation is simple and impacts common middleware patterns

Scope and exploitation status

  • Scope is broad rather than narrowly targeted because the flaw is in a foundational Python web framework with extensive downstream adoption
  • Exposure is concentrated in applications that make security decisions from request.url or request.url.path rather than the raw ASGI path
  • Public reporting describes exploitation as trivial on directly exposed systems, but the provided references do not confirm active exploitation in the wild
  • OSTIF disclosed expanded details due to slow patch adoption and discovery of additional vulnerable internet-exposed services
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

10 events · May 21, 2026 – Jun 4, 2026
  1. Jun 4, 20266mo ago

    CVEReports documented BadHost path-poisoning auth bypass details

    CVEReports published a technical write-up explaining how malformed Host headers containing delimiters can cause parser differentials between request.url.path and the ASGI router path. The report described how this can let attackers bypass path-based access controls and reach protected endpoints without authorization.

    CVE-2026-48710: CVE-2026-48710: Starlette BadHost HTTP Host-Header Path-Poisoning and Authentication Bypass | CVEReports
  2. May 28, 20266mo ago

    Belgium CCB issued advisory to patch Starlette and FastAPI exposure

    Belgium's CCB published a warning advisory about the Starlette vulnerability and related exposure in frameworks such as FastAPI, urging immediate patching.

    Warning: Vulnerability in Starlette framework and related frameworks like FastAPI exposes millions of servers to authentication bypass, Patch Immediately! | CCB Belgium
  3. May 27, 20266mo ago

    BadHost website published for CVE-2026-48710

    A dedicated BadHost website for CVE-2026-48710 was published, indicating public tracking and branding of the Starlette Host-header authentication bypass issue.

    BadHost - CVE-2026-48710 Starlette Host-Header Auth Bypass
  4. May 27, 20266mo ago

    Cyber Security News linked BadHost to X41 D-Sec audit findings

    Cyber Security News reported that X41 D-Sec discovered BadHost during an OSTIF-sponsored audit and described the flaw's impact on FastAPI- and Starlette-based AI infrastructure. The report highlighted risks to authentication, authorization, filtering, billing, and related middleware controls.

    Attackers Can Exploit BadHost to Access Sensitive AI Agent Server Endpoints
  5. May 27, 20266mo ago

    SC Media reported broad exposure from disclosed BadHost flaw

    SC Media reported disclosure of the BadHost vulnerability in Starlette and noted that the issue was patched in version 1.0.1. The report emphasized potential security bypasses and sensitive data exposure in internet-facing and AI-related deployments.

    High-severity Starlette vulnerability ‘BadHost’ could expose sensitive data | brief | SC Media
  6. May 26, 20266mo ago

    Ars reported Starlette 1.0.1 was released and scanner published

    Ars Technica reported that Starlette version 1.0.1 had been released on Friday to fix BadHost. It also said X41 D-Sec and Nemesis released an online scanner to help identify vulnerable servers.

    Millions of AI agents imperiled by critical vulnerability in open source package - Ars Technica
  7. May 26, 20266mo ago

    Public warning on r/netsec urged immediate Starlette updates

    A Reddit post on r/netsec warned users to update Starlette immediately because of a newly disclosed severe vulnerability affecting related software. The post was brief and did not include technical details, but it marked public community amplification of the issue.

    Update Starlette Now. New severe vulnerability dropped. : r/netsec
  8. May 26, 20266mo ago

    OSTIF disclosed expanded BadHost details after slow patch adoption

    OSTIF published expanded disclosure details for BadHost, citing slow patch adoption and additional vulnerable internet-exposed services. The disclosure said the issue was discovered by X41 D-Sec during a vLLM security audit managed by OSTIF and highlighted downstream risk across FastAPI and AI infrastructure.

    Disclosing the BADHOST Vulnerability in Starlette - OSTIF.org
  9. May 26, 20266mo ago

    CVE-2026-48710 published in OSV with Starlette 1.0.1 fix

    OSV published DEBIAN-CVE-2026-48710, describing the Starlette Host-header vulnerability and stating that versions before 1.0.1 are affected. The entry identified upgrading to Starlette 1.0.1 or later as the remediation.

    DEBIAN-CVE-2026-48710 - OSV
  10. May 21, 20266mo ago

    Starlette GitHub advisory disclosed Host-header validation flaw

    A GitHub security advisory disclosed that Starlette versions up to 1.0.0 improperly validated the HTTP Host header, enabling request.url.path poisoning and bypass of path-based security checks. The advisory recommended upgrading to a patched release that validates malformed Host values and falls back to scope["server"].

    Missing Host header validation poisons request.url.path, bypassing path-based security checks · Advisory · Kludex/starlette · GitHub
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Vulnerabilities

1 linked

Affected products

1 linked
Starlette
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.