Advisories · AI & LLMs
CVE-2026-42271
High
CVSS 8.7
Actively exploited
LiteLLM command execution through MCP test endpoints
Disclosed 8 May 2026 · Last reviewed 2 Dec 2026
Two MCP preview endpoints accepted a full server configuration, including a command to start, from any authenticated user. Researchers showed a Starlette host-header bypass removes the need for a key. CISA listed it as exploited in June 2026.
What happened
POST /mcp-rest/test/connection and /mcp-rest/test/tools/list started stdio MCP servers from the request body, so the caller chose the command the host ran.
Affected and patched versions
- Affected
- LiteLLM 1.74.2 through 1.83.6.
- Patched
- LiteLLM 1.83.7 and later.
How to check your server
Check
pip show litellm 2>/dev/null | grep -i '^version' pip show starlette 2>/dev/null | grep -i '^version'
How to fix and harden
- Upgrade LiteLLM to 1.83.7 or later and Starlette to a release above 1.0.0.
- Keep the proxy admin API off the internet.
- Review which users hold proxy keys and revoke unused ones.
- Check the host for processes and cron entries you did not create.
Fix
pip install -U 'litellm>=1.83.7' 'starlette>1.0.0'
Sources
- Help Net Security: CISA warning
- NVD entry for CVE-2026-42271
- CVE.org record
- CISA Known Exploited Vulnerabilities catalog
Version ranges and fixes follow the vendor advisory. When a distribution backports a fix, trust its security tracker over the upstream version number. New advisories: RSS · JSON