litellm - 💡(How to fix) Fix [Bug]: fastapi==0.124.4 pin blocks starlette CVE-2026-48710 (BadHost)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

LiteLLM's exact-pin fastapi==0.124.4 (in main, v1.86.1, v1.87.0-rc.2, and the v1.83.14-stable.patch.* series) transitively constrains starlette to >=0.40.0,<0.51.0, which resolves to starlette==0.50.0 — affected by CVE-2026-48710 ("BadHost"), a Host-header validation gap that lets an attacker forge request.url.path and bypass path-based auth. Fix is in starlette 1.0.1, but LiteLLM's pin prevents it from resolving.

Container scanners flag every published LiteLLM image as critical, and operators can't mitigate without forking — grep -r "from starlette" litellm/ returns ~68 hits including proxy/auth/* and proxy/middleware/*, which is exactly the surface BadHost targets.

Root Cause

0.124 → 0.133+ crosses 6 FastAPI breaking-change releases plus the starlette 0.50 → 1.0 major. The 68 direct starlette imports need vetting against the 1.0 API. Not a "just bump it" ask — flagging because the CVE has no in-tree mitigation.

Fix Action

Fix / Workaround

LiteLLM's exact-pin fastapi==0.124.4 (in main, v1.86.1, v1.87.0-rc.2, and the v1.83.14-stable.patch.* series) transitively constrains starlette to >=0.40.0,<0.51.0, which resolves to starlette==0.50.0 — affected by CVE-2026-48710 ("BadHost"), a Host-header validation gap that lets an attacker forge request.url.path and bypass path-based auth. Fix is in starlette 1.0.1, but LiteLLM's pin prevents it from resolving.

0.124 → 0.133+ crosses 6 FastAPI breaking-change releases plus the starlette 0.50 → 1.0 major. The 68 direct starlette imports need vetting against the 1.0 API. Not a "just bump it" ask — flagging because the CVE has no in-tree mitigation.

v1.83.14-stable.patch.1

Code Example

docker run --rm --entrypoint sh ghcr.io/berriai/litellm:v1.86.1 -c \
  "ls /app/.venv/lib/python*/site-packages/ | grep -E '^(fastapi|starlette)-[0-9]'"
# fastapi-0.124.4.dist-info
# starlette-0.50.0.dist-info

---
RAW_BUFFERClick to expand / collapse

Check for existing issues

  • I have searched the existing issues and checked that my issue is not a duplicate.

What happened?

Summary

LiteLLM's exact-pin fastapi==0.124.4 (in main, v1.86.1, v1.87.0-rc.2, and the v1.83.14-stable.patch.* series) transitively constrains starlette to >=0.40.0,<0.51.0, which resolves to starlette==0.50.0 — affected by CVE-2026-48710 ("BadHost"), a Host-header validation gap that lets an attacker forge request.url.path and bypass path-based auth. Fix is in starlette 1.0.1, but LiteLLM's pin prevents it from resolving.

Container scanners flag every published LiteLLM image as critical, and operators can't mitigate without forking — grep -r "from starlette" litellm/ returns ~68 hits including proxy/auth/* and proxy/middleware/*, which is exactly the surface BadHost targets.

Caveat

0.124 → 0.133+ crosses 6 FastAPI breaking-change releases plus the starlette 0.50 → 1.0 major. The 68 direct starlette imports need vetting against the 1.0 API. Not a "just bump it" ask — flagging because the CVE has no in-tree mitigation.

Refs

Steps to Reproduce

docker run --rm --entrypoint sh ghcr.io/berriai/litellm:v1.86.1 -c \
  "ls /app/.venv/lib/python*/site-packages/ | grep -E '^(fastapi|starlette)-[0-9]'"
# fastapi-0.124.4.dist-info
# starlette-0.50.0.dist-info

FastAPI 0.124.4's metadata: starlette<0.51.0,>=0.40.0.

Relevant log output

What part of LiteLLM is this about?

SDK (litellm Python package)

What LiteLLM version are you on ?

v1.83.14-stable.patch.1

Twitter / LinkedIn details

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: fastapi==0.124.4 pin blocks starlette CVE-2026-48710 (BadHost)