# LiteLLM /public/mcp_hub (GHSA-28j3-9x3h-556f): tested on six versions, and a check for your instance

By Vadim Nareyko, founder, Arviser. Published 2026-11-28 · Updated 2026-11-28 · Last reviewed 2026-11-28

## Facts

- Test: KB-T-0004 · AI applications
- Record published: 2026-11-23 · GHSA-28j3-9x3h-556f, LiteLLM repository advisory: /public/mcp_hub lists MCP servers without credentials (https://github.com/BerriAI/litellm/security/advisories/GHSA-28j3-9x3h-556f)
- Fix: 2026-06-13 · LiteLLM 1.89.0, the fixed version, on PyPI (https://pypi.org/project/litellm/1.89.0/)
- Our test run: 2026-11-28 · Our lab run: six LiteLLM versions, four setups, 11 controls, 3 runs per cell
- GitHub advisory: [GHSA-28j3-9x3h-556f](https://github.com/BerriAI/litellm/security/advisories/GHSA-28j3-9x3h-556f)
- Record: [GHSA-28j3-9x3h-556f](https://github.com/BerriAI/litellm/security/advisories/GHSA-28j3-9x3h-556f), LiteLLM repository advisory, published 2026-11-23, medium (CVSS 3.1 5.3), no CVE
- Affected: `litellm` 1.81.9 and later, before 1.89.0
- Fixed: 1.89.0
- Exploited: Not in the [CISA KEV catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog) of 2026-11-27; four other LiteLLM records are
- Tested by us: 2026-11-28, official images 1.81.8 (a nightly tag, `main-v1.81.8-nightly`), 1.81.9, 1.82.0, 1.88.6, 1.89.0, 1.111.0; 25 cells, 75 runs, [lab run 1](https://github.com/nareyko/arviser-labs/blob/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub/results/2026-11-28/run-1/summary.md)
- Check: [`check-litellm-public-mcp-hub.sh <base-url>`](https://github.com/nareyko/arviser-labs/blob/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub/check-litellm-public-mcp-hub.sh), one GET without credentials

## Short answer

On LiteLLM 1.82.0 to 1.88.6, every MCP server you add is listed at `/public/mcp_hub` to anyone who can reach the proxy, with its internal URL, unless you set `available_on_public_internet: false` on it. 1.89.0 lists only servers you publish. In our lab, 1.88.6 was affected although it came out two months after 1.89.0. Run our check: exit 1 means your proxy lists servers to a caller with no key.

## 1. What the record says

The advisory says the unauthenticated `/public/mcp_hub` endpoint began listing every MCP server with `available_on_public_internet` enabled in 1.81.9, and that the setting began "defaulting to `true`" in 1.82.0, "so from then on every MCP server appeared on the hub unless an admin explicitly turned the setting off" ([GHSA-28j3-9x3h-556f](https://github.com/BerriAI/litellm/security/advisories/GHSA-28j3-9x3h-556f)). Each entry includes the server's name, alias, ID, description, transport, auth type, spec path and internal target URL; stored credentials were not included. From 1.89.0 the hub lists only servers published with `POST /v1/mcp/make_public`. Setting `litellm.public_mcp_hub_strict_whitelist` to `false` "restores the old behavior and reintroduces this issue."

## 2. What we tested

Official `ghcr.io/berriai/litellm` images by digest, one internal Docker network, no published ports, nothing privileged, no database. Each proxy had a master key generated per run and one synthetic MCP server in `config.yaml`, with a URL on a host name that does not resolve. Four setups:

- **Default:** the server without an `available_on_public_internet` key.
- **`available_on_public_internet: true`** and **`false`**.
- **Legacy hub:** the default server plus `public_mcp_hub_strict_whitelist: false`.

Each cell ran three times in fresh containers. We wrote the expected result of every cell before the first LiteLLM container started. In every run the proxy refused `GET /v1/models` without a key with 401, so the hub was the only open door we tested.

**Tested by us, 2026-11-28** ([summary](https://github.com/nareyko/arviser-labs/blob/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub/results/2026-11-28/run-1/summary.md), [raw files](https://github.com/nareyko/arviser-labs/tree/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub/results/2026-11-28/run-1/raw)):

| Version | Default | `true` | `false` | Legacy hub |
| --- | --- | --- | --- | --- |
| 1.81.8 | Not listed | Not listed | not run | not run |
| 1.81.9 | Not listed | **Listed** | not run | not run |
| 1.82.0 | **Listed** | not run | Not listed | not run |
| 1.88.6 | **Listed** | not run | Not listed | not run |
| 1.89.0 | Not listed | Not listed | not run | **Listed** |
| 1.111.0 | Not listed | Not listed | not run | **Listed**, without the URL |

"Listed" means the check got our server back with no credentials, in 3 of 3 runs. All 25 cells, including 11 controls, matched the expectation in every run.

**A worked example.** LiteLLM 1.82.0 with one MCP server in `config.yaml` and nothing else set. `GET /public/mcp_hub` with no key returned one entry, including the fields `server_name`, `alias`, `url`, `transport`, `auth_type`, `spec_path` and `mcp_info`, and the server's internal host name was in it. The same proxy answered 401 to `/v1/models`. Adding `available_on_public_internet: false` to the server gave an empty list.

**From the record, not run by us:** servers added through the admin UI or API (stored in the database), the `make_public` call, and what an attacker can do with the names.

## 3. What the lab showed beyond the record

**1.88.6 is affected.** It was published on 2026-08-09, after 1.89.0 (2026-06-13), and it lists servers like 1.82.0. That matches the advisory's range, "before 1.89.0", but a date-sorted release list makes it look newer than the fix ([PyPI](https://pypi.org/project/litellm/#history)).

**1.111.0 no longer returns the URL.** With the legacy setting the entry came back without a `url` field, and our host name was not in it. The public entry type at v1.111.0 has no `url` field ([types/mcp.py at v1.111.0](https://github.com/BerriAI/litellm/blob/v1.111.0/litellm/types/mcp.py)); at v1.89.0 it still has one.

**The setting works as a stopgap on affected versions.** On 1.82.0 and 1.88.6, `available_on_public_internet: false` kept the server off the hub. The advisory implies this; we ran it. The same setting also blocks the server for clients outside the proxy's internal IP ranges, which is what the advisory says the setting controls.

## 4. Check your own instance

```sh
sh check-litellm-public-mcp-hub.sh https://litellm.internal.example
```

It needs `sh` and `curl` ([script](https://github.com/nareyko/arviser-labs/blob/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub/check-litellm-public-mcp-hub.sh)). It sends one GET to `/public/mcp_hub` with no credentials, and one to `/health/liveliness` if the list is empty, to confirm the answer came from LiteLLM. It prints how many servers were listed and which fields they carry, never their values. Run it only against a proxy you own or are allowed to test.

| Exit | Verdict | What to do |
| ---: | --- | --- |
| 0 | NOT EXPOSED: no servers listed, or LiteLLM refused with its own auth error | On 1.81.9 to 1.88.x, run it again after you add a server, or upgrade |
| 1 | EXPOSED: at least one server listed | Section 5 |
| 2 | NOT TESTED: no answer, a redirect, 404, 5xx, or an answer that is not LiteLLM's | Point it at the proxy's base URL |
| 3 | BLOCKED: a 401 or 403 that did not come from LiteLLM | A gateway refused this path. Run it again from inside |

In the lab it gave "not tested" for a hung port, a catch-all page, a 404 server, an unknown host, a redirect, an empty list from a server that is not LiteLLM and a JSON list of something else, and "blocked" for two servers that refuse every request, 3 of 3 runs each. It gave "exposed" for a fake server that returns one entry.

## 5. Fix

1. **Upgrade to 1.89.0 or later.** Check the version number, not the release date: 1.88.6 is newer by date and still affected.
2. **After upgrading, check `litellm_settings`** for `public_mcp_hub_strict_whitelist: false`. With it, 1.89.0 and 1.111.0 listed our server again.
3. **If you cannot upgrade today,** set `available_on_public_internet: false` on every MCP server that must stay internal. That kept it off the hub on 1.82.0 and 1.88.6. Expect it to also refuse clients outside your internal IP ranges.
4. **On 1.89.0 and later, an EXPOSED verdict** means someone published the server with `make_public` or turned the legacy setting on. Check that this was intended.
5. **If the hub was reachable from outside,** in our view assume your MCP server names and internal URLs are known, and check that each MCP server asks for its own credentials. The advisory says stored credentials were not in the listing.

## 6. What we ran

| Item | Value |
| --- | --- |
| Lab | [litellm-public-mcp-hub](https://github.com/nareyko/arviser-labs/tree/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub), arviser-labs commit 142e18e |
| Images | `ghcr.io/berriai/litellm` main-v1.81.8-nightly `sha256:1bbdf663…8f49`, v1.81.9-stable `sha256:820ff6e8…6253`, v1.82.0-stable `sha256:67b98fe6…c27b`, v1.88.6 `sha256:eec53478…b988`, v1.89.0 `sha256:85d38470…5811`, v1.111.0 `sha256:d9c2689f…96b3` (amd64); curl 8.23.0; nginx 1.30.8 for the controls |
| Installed version | Read inside each container: matched the tag |
| Runs | 3 per cell, fresh containers each time; 25 cells, 75 runs, all matched |
| Expected results | [Written before the runs](https://github.com/nareyko/arviser-labs/blob/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub/expected/EXPECTED.md), hashed |
| Runner, date | Claude Opus 5.5, 2026-11-28; checked by a separate AI agent the same day |
| Expiry | Stale when LiteLLM releases after 1.111.0. Re-run then |

## Related pages

- [A database tool's read-only mode that still lets writes through](/library/patterns/read-only-mode-that-writes)
- [Ollama: who can reach the API](/library/tests/ollama-api-exposure)
- [Langflow auto_login (CVE-2026-9103): tested on four versions and four setups, and a check for your instance](/library/tests/langflow-auto-login-cve-2026-9103)
- [Langflow code-validation endpoint (CVE-2025-3248): tested on six versions, and a check for your instance](/library/tests/langflow-validate-code-cve-2025-3248)

## Sources

- GHSA-28j3-9x3h-556f, LiteLLM repository advisory, 2026-11-23: https://github.com/BerriAI/litellm/security/advisories/GHSA-28j3-9x3h-556f (accessed 2026-11-28)
- LiteLLM source, litellm/types/mcp.py at v1.111.0: https://github.com/BerriAI/litellm/blob/v1.111.0/litellm/types/mcp.py (accessed 2026-11-28)
- LiteLLM repository (public_endpoints.py, mcp_server_manager.py, types/mcp.py, proxy/_types.py at the six tags run): https://github.com/BerriAI/litellm (accessed 2026-11-28)
- PyPI, litellm release history: https://pypi.org/project/litellm/#history (accessed 2026-11-28)
- CISA, Known Exploited Vulnerabilities catalog (JSON feed, catalog version 2026.11.27): https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json (accessed 2026-11-28)
- Our lab, arviser-labs at commit 142e18e, tested-threats/litellm-public-mcp-hub: https://github.com/nareyko/arviser-labs/tree/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub (accessed 2026-11-28)
- Our lab, image configs of ghcr.io/berriai/litellm read 2026-11-28: https://github.com/nareyko/arviser-labs/blob/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub/results/2026-11-28/registry-config/image-env.txt (accessed 2026-11-28)
- Our lab, run 1 of 2026-11-28: summary, raw files and hashes: https://github.com/nareyko/arviser-labs/tree/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub/results/2026-11-28/run-1 (accessed 2026-11-28)

## Corrections

No corrections.

How this page was made: Claude Opus 5.5, an AI model, ran the lab, read the advisory and the LiteLLM source, and wrote this page. A separate AI agent checked the claims against the sources and the lab record, and the page was corrected after it. Vadim Nareyko approved the tested-threats programme, which this page follows, on 27 November 2026. This page was not reviewed by Vadim Nareyko. On 28 November 2026 Vadim Nareyko decided that new pages are published after the linters and an independent check, without that review.

Text and data on this page: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Code in [our lab](https://github.com/nareyko/arviser-labs/tree/142e18e111c2389d23e064a2136d079b1946714f/tested-threats/litellm-public-mcp-hub): [MIT](https://opensource.org/license/mit). Quoted third-party material keeps its own terms.
