Home › Intelligence › Brief
VULNERABILITY BRIEF🟠 High Vulnerability

Unauthenticated RCE via Starlette “BadHost” (CVE‑2026‑42271, CVE‑2026‑48710) Threatens LiteLLM Deployments

Scans targeting the `/mcp-rest/test/tools/list` endpoint are exploiting Starlette’s pre‑1.0.1 Host‑header validation flaw (CVE‑2026‑42271) together with a LiteLLM endpoint weakness (CVE‑2026‑48710) to achieve remote code execution without authentication. The issue highlights the need for strict input validation and evidence‑ready remediation for audit readiness.

LiveThreat™ Intelligence · 📅 November 16, 2026· 📰 isc.sans.edu
🟠
Severity
High
VU
Type
Vulnerability
🎯
Confidence
High
🏢
Affected
2 sector(s)
✅
Actions
3 recommended
📰
Source
isc.sans.edu

Unauthenticated RCE via Starlette “BadHost” (CVE‑2026‑42271, CVE‑2026‑48710) Threatens LiteLLM Deployments

What It Is — Over the weekend of 16 Nov 2026, the SANS Internet Storm Center observed a surge of HTTP POST requests to the path /mcp-rest/test/tools/list on several honeypot instances. The payloads attempt to exploit two linked vulnerabilities: CVE‑2026‑42271 in the Starlette Python web framework (the “BadHost” flaw) and CVE‑2026‑48710 in the LiteLLM inference‑layer library that builds on Starlette.

Starlette versions < 1.0.1 accept any value in the Host header and incorporate it verbatim when constructing the full request URL. That URL is later used by the framework’s internal access‑control logic. By injecting characters such as [ or ] into the Host header, an attacker can confuse the URL parser, bypass authentication checks, and force the application to treat the request as coming from a trusted origin.

LiteLLM relies on Starlette for routing and for the /mcp-rest/test/tools/list endpoint, which is intended to be protected by a bearer token. The chained exploit sends a malformed Host header together with a JSON body that instructs the server to execute an arbitrary command (e.g., {"server":{"transport":"stdio","command":"id","args":[],"env":{}}}). Because the access‑control decision is made on the malformed URL, the token check is skipped and the command runs with the privileges of the hosting process.

The observed request pattern looks like this:


POST /mcp-rest/test/tools/list HTTP/1.1
Host: localhost]
Authorization: Bearer nothing
Content-Type: application/json
...
{"server":{"transport":"stdio","command":"id","args":[],"env":{}}}

The Host header ends with a stray ], a technique first demonstrated in a public proof‑of‑concept published by Horizon3.ai in July 2026. The recent scans show attackers experimenting with variations such as [localhost, 127.0.0.1], and litellm.proxy, likely to evade static detection signatures.

Why It Matters — The flaw enables unauthenticated remote code execution on any service that runs an unpatched Starlette version and exposes LiteLLM’s management endpoint. Successful exploitation can lead to full system compromise, data exfiltration, and lateral movement within cloud‑native environments.

Timeline & Detection —

  • July 2026 – Initial public disclosure of CVE‑2026‑42271 and a PoC that manipulates the Host header.
  • 16 Nov 2026 – SANS ISC honeypots record a spike in the described POST requests; Horizon3.ai releases a joint advisory linking the two CVEs.

No public breach reports have been confirmed, but the volume of scanning activity suggests active exploitation attempts in the wild.

Vendor & Community Response – Starlette addressed the issue in v1.0.1, adding strict validation of the Host header and rejecting malformed values. The LiteLLM maintainers have issued an advisory recommending an upgrade to the latest release (which now enforces host validation before delegating to Starlette) and suggest deploying a reverse‑proxy rule that whitelists expected hostnames.

Expert Commentary – Security researchers stress that the “BadHost” bug illustrates a classic input‑validation pitfall: trusting data that will later be recombined into a higher‑level construct (a URL). Even well‑written middleware can inherit such weaknesses from underlying libraries. Continuous validation of each component—especially when building URLs from client‑supplied strings—remains a cornerstone of secure software design.

Recommended Mitigations –

  • Patch Immediately – Upgrade Starlette to ≥ 1.0.1 and apply any available LiteLLM updates.
  • Enforce Host Whitelisting – Configure your edge proxy or WAF to allow only known hostnames; block characters outside the RFC 952/1123 set ([, ], {, }, etc.).
  • Detect Anomalous Calls – Add logging and alerting for requests to /mcp-rest/test/tools/list that contain unexpected Host values or empty/invalid bearer tokens.
  • Secure Development Controls – Incorporate host‑header validation into your secure‑coding checklist and capture evidence of remediation for audit purposes.

Why It Matters for Trust & Control Assurance – This incident tests the control objective of input validation and access‑control enforcement. Demonstrating that you validate host headers and monitor for malformed requests provides concrete evidence for multiple frameworks (e.g., NIST CSF 2.0, ISO 27001) that your environment resists injection‑style attacks.

Recommended Actions – Patch the affected libraries, tighten WAF/edge‑proxy rules, and capture remediation evidence in your Trust Center. Source: SANS ISC Diary – CVE‑2026‑42271/48710

📰 Original Source
https://isc.sans.edu/diary/rss/33522 ↗

This LiveThreat Intelligence Brief is an independent analysis. Read the original reporting at the link above.

From the Verisq platform · Trust Operations

Every gap like this maps to a control you can evidence.

The Verisq AI Trust Operations platform maps incidents to your control framework and collects the evidence continuously — so your Trust Center shows proof, not promises, when a buyer or auditor asks.

Explore the Verisq AI Trust Operations platform →