---
id: 2026-11-litellm-stdio-mcp-command-injection-zdi-26-1031-cve-2026-136535-vendor-disputes
title: "LiteLLM: ZDI publishes stdio MCP command execution as a 0-day (CVE-2026-136535); vendor disputes it; stdio is off by default from 1.104.0"
date_disclosed: 2026-11-18
last_updated: 2026-11-25
severity: high
status: mitigated
ecosystems: [pypi, docker, litellm, mcp, ai-gateway]
tools_affected: ["LiteLLM proxy with stdio MCP servers enabled", "LiteLLM proxy below 1.104.0", "LiteLLM proxy running with a default or example master key"]
tags: [cve, zdi, zero-day, command-injection, mcp, stdio, ai-gateway, vendor-dispute, admin-required, mitigated]
---

## TL;DR

[ZDI-26-1031](https://www.zerodayinitiative.com/advisories/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](https://cveawg.mitre.org/api/cve/CVE-2026-136535) |
| 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](2026-04-litellm-sql-injection.md).

## Am I affected?

```bash
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](../playbooks/rotating-cloud-credentials.md).

## Prevention

- A gateway holds every provider key. Keep its admin API off the public internet. See [MCP hygiene](../prevention/mcp-hygiene.md) and [credential hygiene](../prevention/credential-hygiene.md).

## Sources

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

- [ZDI-26-1031](https://www.zerodayinitiative.com/advisories/ZDI-26-1031/), dated 2026-11-18, updated 2026-11-24, read 2026-11-25 with `curl`. Description, timeline, mitigation text.
- [CVE-2026-136535](https://cveawg.mitre.org/api/cve/CVE-2026-136535), CNA ZDI, published 2026-11-24. Score and the affected entry.
- [LiteLLM advisory tab](https://github.com/BerriAI/litellm/security/advisories), page 1 read 2026-11-25. No row for this id.
- PyPI simple API for `litellm`, read 2026-11-25. Upload dates.
- [GitHub Advisory Database `mcp` listing](https://github.com/advisories?query=mcp+sort%3Apublished-desc): where the row surfaced, dated 2026-11-24.
