NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · LiteLLM

CVE-2026-49468: LiteLLM: Authentication Bypass via Host Header Injection

criticalCVSS 4.0 9.5 · 3.1 9.8GHSA-4xpc-pv4p-pm3w

LiteLLM proxy versions before 1.84.0 derive the request route from a path that Starlette rebuilds from the Host header. A crafted Host can make the auth layer check a different route than the one FastAPI serves, which can give unauthenticated access to protected management routes. Upgrade to 1.84.0. Most deployments behind a validating proxy are not affected.

Published Jun 16, 2026 · Updated Jul 18, 2026 · Analysis Oct 26, 2026

What an attacker can do

In litellm/proxy/auth/auth_utils.py, get_request_route() reads request.url.path. Starlette builds that URL partly from the Host header, so an attacker controls the value the auth gate sees. FastAPI dispatches on the real request path. If the two disagree, the gate can treat a protected management route as one that needs no key.

The attacker needs network access to the proxy listener and no credentials (CVSS 3.1 9.8, 4.0 9.5 with an attack-requirement flag for the specific conditions). Management routes on a LiteLLM proxy control virtual keys, teams, models and provider credentials. Reaching them can hand over upstream API keys, create admin-level keys, and spend the model budget, so the full range of confidentiality, integrity and availability is rated high.

The advisory says most deployments are not affected. A CDN or WAF such as Cloudflare, a reverse proxy with server_name allowlists, or a host-based load balancer blocks the bypass because it validates or normalizes Host. LiteLLM Cloud is not affected. Proxies published directly to the internet or an internal network without such a layer are the risk.

Who is affected

litellm on PyPI, every version before 1.84.0. The risk applies to the proxy server only, and only when the listener is reachable without an upstream component that validates the Host header. Check:

pip show litellm

For Docker, check the image tag you run.

litellm

Ecosystem
PyPI
Affected
< 1.84.0
Fixed in
1.84.0
Check
pip show litellm

How to fix it

Upgrade to litellm 1.84.0 or later. The advisory says no configuration change is required.

pip install --upgrade "litellm>=1.84.0"

If you cannot upgrade, the advisory's workaround is to put the proxy behind a component that validates or normalizes Host before forwarding (a CDN or WAF, a reverse proxy with explicit server_name allowlists, or a cloud load balancer with host-based routing), or to restrict network access to the proxy listener. The v1.84.0 release page does not mention this CVE by name; the advisory is the source for the fix.

How to tell if you were hit

Review proxy and load balancer logs for requests whose Host header is not your hostname, or contains /, ? or # characters, particularly on management paths such as key or team endpoints. Look for 200 responses on those routes without an Authorization header. Check the LiteLLM key and team lists for virtual keys, users or models you did not create, and review spend logs for unfamiliar traffic. If you find signs of abuse, rotate the upstream provider keys stored in the proxy.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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_name allowlists
  • 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

Discovery Credit: Le The Thang (KCSC) and Kim Ngoc Chung (One Mount Group)

Credited to LilThawg29.

Questions

Is my LiteLLM proxy affected by CVE-2026-49468?

Only if it runs a version before 1.84.0 and its listener is reachable without a layer that validates the Host header. The advisory says most deployments behind a CDN, WAF or allowlisting reverse proxy are not affected.

Is LiteLLM Cloud affected?

No. The advisory says LiteLLM Cloud customers are not affected.

What is the fixed version?

1.84.0. The advisory says upgrading needs no configuration change.

Is it exploited in the wild?

The sources do not report exploitation, and the entry has no CISA KEV data. EPSS is about 3%.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More LiteLLM vulnerabilities

All LiteLLM entries