News · BerriAI (LiteLLM) · 2 min read
Event date: · Published:
LiteLLM patches SSRF flaw in Gemini managed agent routes
BerriAI disclosed and patched a high-severity SSRF vulnerability in LiteLLM's Gemini managed agent routes that let any API key reach internal hosts, separate from a more severe master-key-leak flaw patched the next day.
BerriAI disclosed and patched a server-side request forgery (SSRF) vulnerability in LiteLLM's Gemini managed agent routes on December 5, 2026, publishing GitHub Security Advisory GHSA-mr5r-2ffj-28wp. The flaw let any holder of a valid API key make the LiteLLM proxy send requests to arbitrary hosts and read the responses.
What changed
- GitHub Security Advisory GHSA-mr5r-2ffj-28wp, published December 5, 2026, is titled 'Gemini managed agents routes let any API key holder send proxy requests to arbitrary hosts.'
- The flaw is rated High severity with a CVSS v3 score of 8.8, classified as CWE-918 (server-side request forgery).
- The vulnerable code sits in LiteLLM's Gemini managed agents routes under
/v1beta/agents, which skipped the proxy's usual restrictions on caller-supplied request fields. - Any holder of a valid API key, even a low-privilege one, could make the proxy send requests to arbitrary hosts reachable from it, including internal network services, and read the responses.
- Affected versions are 1.87.0 up to but not including 1.108.25, 1.109.0 up to but not including 1.112.2, and 1.113.0.dev1 up to but not including 1.113.0rc2.
- Patched versions are 1.108.25, 1.112.2, and 1.113.0rc2.
What it means for AI builders
LiteLLM is one of the most widely deployed open-source LLM gateway and proxy tools used in AI agent and coding-tool infrastructure. An SSRF flaw that lets any API key, even a low-privilege one, reach internal hosts is a serious risk for teams running self-hosted LiteLLM proxies, since it could expose internal data and credentials depending on what is reachable from the proxy host.
A separate, more severe flaw
This advisory is distinct from GHSA-qwjr-vrvc-999g, a separate, unauthenticated file-read and master-key-leak flaw in LiteLLM's Enterprise proxy rated CVSS 10.0, which was patched the following day, December 6, 2026.
Sources
- Gemini managed agents routes let any API key holder send proxy requests to arbitrary hosts (GitHub Security Advisories / BerriAI, December 5, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.