News · By Alex Rivera (pen name) ·

LiteLLM vulnerability: CISA's 2 December deadline, a disputed MCP zero-day and 10 new advisories

Title card: LiteLLM vulnerability: CISA's 2 December deadline, a disputed MCP zero-day and 10 new advisories

CISA added LiteLLM CVE-2026-40217 to its Known Exploited Vulnerabilities catalog on 18 November 2026, with a 2 December due date for federal civilian agencies. CISA describes an "unprotected alternate channel vulnerability that could allow remote attackers to execute arbitrary code via bytecode rewriting at the /guardrails/test_custom_code URI." It is the fourth LiteLLM entry in the catalog this year. LiteLLM published ten more GitHub security advisories on 23 and 24 November and released version 1.111.0 on 25 November.

LiteLLM is an open-source proxy, or AI gateway, that sits in front of model APIs and can expose MCP servers to agents. For a security leader the question is not whether the product is acceptable. It is which version to run, which endpoint to block if you cannot upgrade yet, and which MCP setting to leave off. Sources were checked on 29 November 2026.

What CVE-2026-40217 is

The bug is not new. The CVE record was published on 10 April 2026, X41 D-Sec published its report on 8 April, and LiteLLM's advisory followed on 7 May. What is new is the KEV listing. CISA does not name an attacker, a victim or how the bug was exploited, and it records known ransomware use as "Unknown". CISA's 19 November enrichment of the CVE record marks Exploitation as "active".

LiteLLM's advisory, "Sandbox escape in custom-code guardrail", says the POST /guardrails/test_custom_code endpoint "runs user-supplied Python inside a hand-rolled sandbox" and that the sandbox "can be escaped using bytecode-level techniques, allowing arbitrary code execution in the proxy process". It also says: "Reaching the endpoint requires a proxy-admin credential in default configurations." X41 writes that "The default Docker image runs the process as root" and recommends "Avoid running LiteLLM as root". LiteLLM's advisory states the same default.

The advisory text says "Upgrade to 1.83.11 or later." Its structured metadata lists 1.83.10 as the first patched release, so 1.83.11 or later satisfies both. If you cannot upgrade yet, LiteLLM's workaround is to "block POST /guardrails/test_custom_code at your reverse proxy or API gateway."

The due date sits under CISA Binding Operational Directive 26-04, "a compulsory direction to federal, executive branch, departments, and agencies for purposes of safeguarding federal information and information systems." It covers "Federal Civilian Executive Branch" systems. "Unless directed by the governing procurement contract, this Directive does not apply to contractors". In our assessment, for everyone else KEV is a prioritization signal, not a deadline of their own.

The earlier LiteLLM KEV entries this year are CVE-2026-42208 (SQL injection in proxy API key verification, added 8 May), CVE-2026-42271 (command injection in MCP stdio test endpoints, added 8 June) and CVE-2026-59822 (an MCP Streamable HTTP authentication bypass, added 2 September). Vendor advisories put the two MCP fixes at 1.83.7 or later and 1.84.0 or later.

Why a gateway bug is an agent problem

In our assessment, code execution on the proxy is not a contained application bug. A gateway in this role holds provider API keys, virtual keys for every team, MCP connections and the prompts that pass through it. An admin-only path still matters when admin material leaks. GHSA-xpf6-jpp2-mm7r covers request headers "including Authorization and Cookie" written to spend logs when prompt logging is enabled. LiteLLM says a change in 1.83.10 caused the snapshot to pick up those headers, and the fix is "Upgrade to at least v1.84.0." It adds: "Note that upgrading does not remove credentials already written to the database." So 1.83.11 or later, which covers the KEV item alone, is not the upgrade to stop at.

The disputed MCP stdio report

On 18 November the Zero Day Initiative published ZDI-26-1031 as a zero-day, "LiteLLM MCP Command Injection Remote Code Execution Vulnerability", later tracked as CVE-2026-136535. ZDI says "Authentication is required to exploit this vulnerability" and that "The specific flaw exists within the handling of MCP stdio configurations." Its timeline says that on 15 September "the vendor closed the report as a false positive" and that on 17 November "the vendor clarified no separate patch is coming, and disputed that the report describes a vulnerability". The CVE record, published 24 November, lists version 1.88.0 as affected and gives no fixed version. ZDI calls this a vulnerability. LiteLLM, as quoted by ZDI, says stdio servers "run admin-chosen host commands" and that "only proxy admins can create or test them." We report both positions and do not decide between them.

LiteLLM's MCP docs say "stdio MCP servers are disabled unless the proxy is started with LITELLM_ENABLE_MCP_STDIO=true in its environment." They add: "The flag is read from the proxy's process environment only. Setting it under environment_variables in config.yaml or in the database has no effect". ZDI quotes the vendor as dating that default to v1.104.0. On 1.104.0 or later, leave the flag unset unless you need stdio MCP servers. See our MCP explainer for how the stdio transport differs from a remote MCP server. The v1.104.0 release notes also include a change to "refuse to start with an unset, empty, or publicly known master key".

ZDI also published five more LiteLLM advisories on 24 November, ZDI-26-1081 through ZDI-26-1085. Each of their CVE records says authentication is required. ZDI-26-1081, ZDI-26-1083, ZDI-26-1084 and ZDI-26-1085 each say "LiteLLM has issued an update to correct this vulnerability." ZDI-26-1084 and ZDI-26-1085 are marked as Pwn2Own entries, including a pass-through endpoint code injection in ZDI-26-1084. In our check of the git history, the merge commits of the pull requests those CVE records cite for ZDI-26-1081, ZDI-26-1083 and ZDI-26-1084 are contained in the v1.111.0 tag. That is our check, not a LiteLLM statement. The CVE records for ZDI-26-1082 and ZDI-26-1085 point at the v1.104.0 and v1.84.0 releases. Each of these CVE records lists a single affected version, which we do not turn into a range.

What else LiteLLM disclosed on 23 and 24 November

GHSA-28j3-9x3h-556f covers an unauthenticated /public/mcp_hub listing. "In 1.82.0 the setting began defaulting to true, so from then on every MCP server appeared on the hub unless an admin explicitly turned the setting off." An unauthenticated caller "could list the MCP servers registered on the proxy". "Stored credentials were not included." "Starting in 1.89.0, the hub lists only servers an admin has explicitly published".

GHSA-m8fp-3f3g-j5p7, which GitHub rates high, describes persistent deployment poisoning. When a request supplied its own provider credential or endpoint, the proxy "built a deployment for that request and also added it to the router's shared list of deployments under the same model name." In the worst case the advisory describes, with client-side credentials enabled or client-side api_base allowed, "an authenticated user could send a single request that pointed part of other user's traffic for that model at a server the attacker controls." Its structured field lists 1.103.0 as the patched version.

The other advisories in the set of ten include callback injection (CVE-2026-135287), model-routing fallbacks, a bulk user update that stored passwords in plaintext, and virtual keys written to logs. Their listed patch lines differ, and we do not treat any one of them as the upgrade target. Version 1.111.1 was published on 29 November. Its release notes say "No action needed to upgrade" and describe a cost-tracking change, not a security fix. Do not read 1.111.0 as the newest release. This piece uses 1.111.0 or later as the floor. We found no LiteLLM statement on the KEV listing or on ZDI-26-1031.

What security leaders should do now

In our assessment, an AI gateway is part of the agent runtime, so isolation and least privilege around it still apply once the prompts are gone. See sandboxing, least privilege and excessive agency.

Frequently asked questions

Which LiteLLM version should we upgrade to?

Upgrade to 1.111.0 or later. For CVE-2026-40217 alone, LiteLLM's advisory text says to upgrade to 1.83.11 or later. That figure does not cover later log, MCP-hub, deployment-poisoning or ZDI items. Version 1.111.1, published on 29 November, says "No action needed to upgrade" and lists a cost-tracking change, not a security fix. Do not read 1.111.0 as the newest release.

Does CISA's 2 December date apply to every LiteLLM operator?

No. The due date sits under Binding Operational Directive 26-04. CISA calls a Binding Operational Directive "a compulsory direction to federal, executive branch, departments, and agencies for purposes of safeguarding federal information and information systems." It covers "Federal Civilian Executive Branch" systems. "Unless directed by the governing procurement contract, this Directive does not apply to contractors". In our assessment, for everyone else the KEV listing is a prioritization signal, not a deadline of their own.

Did LiteLLM confirm the ZDI MCP stdio zero-day?

No. ZDI published ZDI-26-1031 as a zero-day and says authentication is required. ZDI's timeline says the vendor closed the report as a false positive, then clarified that no separate patch is coming and disputed that the report describes a vulnerability. We report both positions and do not decide between them. On 1.104.0 or later, leave LITELLM_ENABLE_MCP_STDIO unset unless you need stdio MCP servers.

Does CVE-2026-40217 require an admin credential?

LiteLLM's advisory says reaching the endpoint requires a proxy-admin credential in default configurations. That does not make the KEV item low priority. GHSA-xpf6-jpp2-mm7r covers Authorization and Cookie headers written to spend logs when prompt logging is enabled, and says upgrading does not remove credentials already written to the database.

What should we do if we cannot upgrade yet?

LiteLLM's workaround for CVE-2026-40217 is to block POST /guardrails/test_custom_code at your reverse proxy or API gateway. On 1.104.0 or later, leave LITELLM_ENABLE_MCP_STDIO unset unless you need stdio MCP servers, and set it only in the process environment. If you are below 1.89.0, check whether /public/mcp_hub lists your MCP servers.

Sources

  1. CISA Known Exploited Vulnerabilities catalog JSON
  2. CISA KEV catalog entry for CVE-2026-40217
  3. CISA Binding Operational Directive 26-04
  4. CVE.org: CVE-2026-40217
  5. GitHub advisory GHSA-wxxx-gvqv-xp7p: Sandbox escape in custom-code guardrail
  6. X41 D-Sec advisory X41-2026-001
  7. CVE.org: CVE-2026-42208
  8. CVE.org: CVE-2026-42271
  9. GitHub advisory GHSA-v4p8-mg3p-g94g
  10. CVE.org: CVE-2026-59822
  11. GitHub advisory GHSA-7488-6r32-c95q
  12. GitHub advisory GHSA-xpf6-jpp2-mm7r
  13. Zero Day Initiative ZDI-26-1031
  14. CVE.org: CVE-2026-136535
  15. LiteLLM docs: MCP
  16. GitHub release v1.104.0
  17. GitHub release v1.111.0
  18. GitHub release v1.111.1
  19. PyPI: litellm
  20. Zero Day Initiative ZDI-26-1081
  21. Zero Day Initiative ZDI-26-1083
  22. Zero Day Initiative ZDI-26-1084
  23. Zero Day Initiative ZDI-26-1085
  24. CVE.org: CVE-2026-136537 (ZDI-26-1082)
  25. GitHub pull request 26518
  26. GitHub pull request 27801
  27. GitHub pull request 43049
  28. GitHub advisory GHSA-28j3-9x3h-556f
  29. GitHub advisory GHSA-m8fp-3f3g-j5p7
  30. CVE.org: CVE-2026-135287
  31. GitHub security advisories for BerriAI/litellm

This article is news reporting. Bylines on AIAgentThreats are disclosed pen names of our editorial team. Spotted an error? Email info@aiagentthreats.com. See our Editorial Standards.