TL;DR

ZDI-26-1031 says an authenticated attacker can run commands on a LiteLLM proxy through its handling of MCP stdio configurations. ZDI published it as a 0-day on 2026-11-18. LiteLLM told ZDI no separate patch is coming and that only proxy admins can create stdio servers. From 1.104.0 stdio servers are off unless LITELLM_ENABLE_MCP_STDIO=true is set in the environment. Upgrade, leave it unset, and replace any default master key.

What happened

Fact Value Source
Ids ZDI-26-1031, ZDI-CAN-31815, CVE-2026-136535 ZDI page, CVE record
ZDI page date 2026-11-18, updated 2026-11-24 ZDI page
CVE record published 2026-11-24, CNA ZDI CVE record
Score 7.2, CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, from ZDI both
Affected, per the record one entry, version 1.88.0, no range CVE record
Credit David Fiser and Alfredo Oliveira of TrendAI Research ZDI page

ZDI's description: "The specific flaw exists within the handling of MCP stdio configurations. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call."

ZDI's timeline of the vendor's replies:

  • 2026-06-17: ZDI reported the flaw.
  • 2026-09-15: "the vendor closed the report as a false positive".
  • 2026-10-26 and 2026-10-29: ZDI disputed the closure "as the existing fix was incomplete", and the vendor reopened the report "agreeing the mitigation wasn't enough".
  • 2026-11-13: the vendor "stated it planned to ship a fix and issue a GHSA before the 11/18 deadline".
  • 2026-11-17: "the vendor clarified no separate patch is coming, and disputed that the report describes a vulnerability".

ZDI prints the vendor's recommended mitigation: "Stdio MCP servers run admin-chosen host commands; only proxy admins can create or test them. The CVE-2026-42271 allowlist doesn’t limit what admins can run, isn’t 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/DB); to stay safe, upgrade to 1.104.0+ and leave unset. Always replace any default/example master key with a strong random value; v1.104.0+ blocks startup if unset, empty, or sk-1234."

PyPI shows litellm 1.88.0 uploaded 2026-06-06 and 1.104.0 uploaded 2026-10-03. The newest stable release on 2026-11-25 is 1.111.0.

Page 1 of 3 of the LiteLLM advisory tab had no row for this id when read on 2026-11-25. The vendor's statements above are known only through ZDI's page.

This file rates the flaw high on ZDI's 7.2. The vector needs high privileges. A proxy that still runs a default or example master key gives those privileges to anyone who can reach it.

CVE-2026-42271 is an earlier command injection in LiteLLM's MCP server preview endpoints. It is covered in the April 2026 LiteLLM file.

Am I affected?

pip show litellm | grep -i '^version'
env | grep LITELLM_ENABLE_MCP_STDIO
  • Below 1.104.0: stdio MCP servers can be created by a proxy admin with no environment switch.
  • 1.104.0 or later with LITELLM_ENABLE_MCP_STDIO=true: the same.
  • Any version: check that the master key is not a default or example value.

If you are affected

  1. Upgrade to 1.104.0 or later. Running the current release also picks up the later LiteLLM fixes tracked in this repository.
  2. Leave LITELLM_ENABLE_MCP_STDIO unset unless you need stdio MCP servers.
  3. Replace the master key with a strong random value, and review who holds proxy admin rights.
  4. If the proxy ran with a default master key while reachable from a network you do not control, review the configured MCP servers and rotate the provider keys the proxy holds. See rotating cloud credentials.

Prevention

Sources

Single source: ZDI and its CNA record. The vendor's position is ZDI's account.