Skip to content

daily brief · Nov 19, 2026

LiteLLM CVE-2026-40217 Is Being Exploited, CISA Warns. Update Your AI Gateway Now

CISA added LiteLLM flaw CVE-2026-40217 to its exploited list, and ZDI dropped a LiteLLM MCP zero-day. Versions to install and settings to fix.

4 sources · 1 min read

What to do: if you run the LiteLLM proxy, upgrade to version 1.104.0 or later (which also covers the CVE-2026-40217 fix from 1.83.11), replace any default master key such as sk-1234, and keep the admin endpoints off the public internet. On November 18, CISA added CVE-2026-40217 to its Known Exploited Vulnerabilities list, meaning it has evidence of real attacks.

LiteLLM is the plumbing many companies use to route apps to OpenAI, Anthropic and other models, so it holds exactly what attackers want: every provider API key in one place. The bug sits in a feature meant to make AI safer. A “guardrail tester” runs custom Python in a homemade sandbox, and that sandbox can be escaped, giving code execution as root in the default Docker image, per the project’s advisory. An admin key is needed, which is why guessable default keys matter.

Researchers at Zenity logged honeypot attempts that tried to dump API keys. CISA hasn’t said who is attacking or how many servers were hit.

Separately, Trend Micro’s ZDI published a LiteLLM MCP zero-day (ZDI-26-1031) with no separate patch. LiteLLM disputes it’s a vulnerability; its advice is to run 1.104.0+ and leave LITELLM_ENABLE_MCP_STDIO unset.

Quick answers

Am I affected by CVE-2026-40217?

LiteLLM proxy versions 1.81.8 through 1.83.9 are affected. The flaw is in the proxy server's guardrail-testing endpoint, so self-hosted LiteLLM proxies are the ones to check first.

How do I know if I was hacked?

Check logs for unexpected POST requests to `/guardrails/test_custom_code`. If you find any, rotate all provider API keys and cloud credentials stored on that server.

LiteLLM CVE-2026-40217securityLiteLLM vulnerabilityCISA KEVAI gateway securityLiteLLM zero-dayMCP securityZDI-26-1031LLM proxyAPI key theft

More on: AI security · All Security briefings