LiteLLM: Authentication Bypass via Host Header Injection
Description
Impact
A Host-header parsing flaw in the LiteLLM proxy could, under specific conditions, allow unauthenticated access to protected management routes.
The auth layer derived the effective route from request.url.path in litellm/proxy/auth/auth_utils.py::get_request_route(), which Starlette reconstructs from the Host header. A crafted Host could therefore make the auth gate evaluate a different route from the one FastAPI dispatched.
Most deployments are not affected. The bypass is blocked by any upstream layer that validates or normalizes Host, such as:
- a CDN or WAF, such as Cloudflare
- a reverse proxy with
server_nameallowlists - a host-based load balancer
LiteLLM Cloud customers are not affected.
Patches
Fixed in **1.84.0**. Upgrade to 1.84.0 or later. No configuration change is required.
Workarounds
If upgrading is not immediately possible, place the proxy behind an upstream component that validates or normalizes the Host header before forwarding (a CDN/WAF, a reverse proxy with explicit server_name allowlists, or a cloud load balancer with host-based routing rules), or otherwise restrict network access to the proxy listener.
References
- Patched release: `v1.84.0`
Discovery Credit: Le The Thang (KCSC) and Kim Ngoc Chung (One Mount Group)
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
litellmPyPI | < 1.84.0 | 1.84.0 |
Affected products
4- osv-coords3 versions
< 2.11.2-r12+ 2 more
- (no CPE)range: < 2.11.2-r12
- (no CPE)range: < 3.2.2-r7
- (no CPE)range: < 3.2.2-r7
Patches
Vulnerability mechanics
References
3News mentions
2- ⚡ Weekly Recap: Browser Bugs, EDR Killers, TV Botnet, OpenBSD Flaw, Android Trojan, and MoreThe Hacker News · Jun 22, 2026
- Critical LiteLLM Flaw Allows Authentication Bypass via Host Header InjectionCyber Security News · Jun 17, 2026