← All advisories

CVE-2026-136539highCode execution2026-11-24

CVE-2026-136539 and CVE-2026-136535: LiteLLM proxy admins could run code through pass-through endpoint handlers loaded from s3:// or gcs:// (fixed 1.85.0) and through MCP stdio server configs (0-day; LiteLLM disputes it, stdio is off by default from 1.104.0)

Two Zero Day Initiative reports turn an authenticated LiteLLM proxy admin into code execution as the proxy's service account. CVE-2026-136539 (ZDI-26-1084, from Pwn2Own): admin endpoints such as /config/pass_through_endpoint accept a target or custom handler from the request body, and get_instance_fn loaded s3:// or gcs:// values from remote storage and executed them as a Python module. LiteLLM's PR #27801 refuses remote URLs that don't come from the config file, and first shipped in v1.85.0. CVE-2026-136535 (ZDI-26-1031) covers MCP stdio server configurations, which run a host command: ZDI says the earlier allowlist fix was incomplete and published it as a 0-day; LiteLLM says stdio servers are admin-chosen commands by design and is not shipping a separate patch. Its mitigation is v1.104.0+, where stdio servers are disabled unless LITELLM_ENABLE_MCP_STDIO=true is set in the environment, plus a strong master key. The risk is highest where the default sk-1234 master key or a leaked admin key is in use.

01.

What it is

CVE-2026-136539 / ZDI-26-1084 (ZDI-CAN-31433, reported 2 June 2026, credit k3vg3n): 'lack of proper validation of code before it is executed via module import' in pass_through_endpoints handling. PR #27801 (merged 14 May 2026) gates remote-URL loads on the config_file_path being present, with LITELLM_ALLOW_REMOTE_INSTANCE_FN_FROM_API=true as an explicit opt-back-in. The fix commit is in v1.85.0 and not in the 1.84.x releases.

CVE-2026-136535 / ZDI-26-1031 (ZDI-CAN-31815, reported 17 June 2026): command injection in handling of MCP stdio configurations. ZDI's timeline: the vendor first closed it as a false positive, reopened it on 29 October after ZDI showed the existing fix was incomplete, then on 17 November said no separate patch is coming and disputed that it is a vulnerability. ZDI published it as a 0-day on 18 November.

Vendor mitigation quoted by ZDI: stdio MCP servers run admin-chosen host commands and only proxy admins can create or test them; the CVE-2026-42271 allowlist is not a security control and will be removed; from v1.104.0 stdio servers are disabled unless LITELLM_ENABLE_MCP_STDIO=true is set in env (not via API, config or DB), and startup is blocked if the master key is unset, empty or sk-1234.

Both need high privileges (proxy admin). NVD published both CVEs on 24 November 2026.

02.

How to check

  1. Check your LiteLLM version (pip show litellm or the proxy image tag): before 1.85.0 is exposed to CVE-2026-136539; before 1.104.0 allows stdio MCP servers by default.
  2. Check whether LITELLM_ENABLE_MCP_STDIO or LITELLM_ALLOW_REMOTE_INSTANCE_FN_FROM_API is set in the proxy environment.
  3. List pass-through endpoints and MCP servers configured through the API or UI and look for s3:// or gcs:// handler targets or stdio commands you didn't add.
  4. Confirm the master key is not sk-1234 or another example value, and who holds admin keys.
03.

How to fix

  1. Upgrade LiteLLM to 1.104.0 or later (covers the 1.85.0 fix) and leave LITELLM_ENABLE_MCP_STDIO unset unless you need stdio MCP servers.
  2. Replace any default or example master key with a long random value and rotate admin keys that may have leaked.
  3. Treat proxy admin access as equal to shell access on the proxy host, and keep the admin UI and management routes off the public internet.
pip show litellm | grep -i ^version
env | grep -E 'LITELLM_(ENABLE_MCP_STDIO|ALLOW_REMOTE_INSTANCE_FN_FROM_API|MASTER_KEY)=' | sed 's/=.*/=<set>/'
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.