Nearly 1 in 10 Public LiteLLM Gateways Wiz Scanned Accepted the Docs' Example Master Key, sk-1234
- What happened
- Wiz found that 294 of 3,074 public LiteLLM gateways accepted the documentation's example master key sk-1234, and 191 of those had no key set at all.
- Why it matters
- The master key reads every provider API key on the gateway and, in Wiz's tests, reached the host's cloud IAM credentials; LiteLLM treats setup mistakes as out of scope.
- What to do
- Replace sk-1234 with a long random key today, upgrade to 1.84.0 or later, and rotate keys if the gateway was exposed.
Verdict: if your LiteLLM gateway is reachable from the internet, change its master key today, then upgrade to 1.84.0 or later. The key change is a config edit, not an upgrade, and it "closes every path in Wiz's report that depends on holding it," as The Hacker News puts it. Our directory rates LiteLLM Conditional on exactly this kind of security discipline, and this report is why that condition exists.
What happened
Wiz Research published "Off Guard: Breaking LiteLLM from authentication bypass to cloud compromise" on 9 September 2026.
| Finding | Number |
|---|---|
| Publicly accessible LiteLLM instances (February 2026 scan) | 3,074 |
Accepted the example master key sk-1234 | 294 (9.6%) |
| Of those, required no key at all | 191 (6.2% of the sample) |
| August 2026 follow-up scan | over 85,000 instances, "the majority appear to be honeypots or test deployments" |
The 9.6% figure describes the February sample, not today's internet. Read it as the size of the habit, not a current count.
The same report covers separate flaws, each with a fixed release:
| Flaw | Fixed in |
|---|---|
| CVE-2026-59822, MCP authentication bypass | 1.84.0 |
| CVE-2026-59821, post-auth RCE via custom code guardrails | 1.82.0 |
| CVE-2026-35029 | 1.83.0 |
Every fixed version in Wiz's table is 1.84.0 or earlier, so 1.84.0 or later covers all three. The Hacker News lists two more, CVE-2026-42271 (MCP command execution, fixed in 1.83.7) and CVE-2026-40217 (sandbox escape, fixed in 1.83.10), which 1.84.0 also covers.
Why it matters
The master key is the whole gateway. "LiteLLM can hold API keys for every configured LLM provider, process every prompt and response that flows through it, and connect to external tools via MCP," Wiz writes. Wiz showed the pass-through feature reaching the AWS metadata service to exfiltrate IAM credentials; The Hacker News summarizes that in Wiz's tests the key "also reached the cloud IAM credentials of the machine the gateway runs on." One leaked gateway key means every provider bill and potentially the host's cloud account.
The default came from the docs. Wiz: "LiteLLM's documentation uses sk-1234 as the example master key in quickstart guides, Docker Compose examples, and configuration tutorials throughout the docs." As of 9 September the setup guide still used it, above a comment telling operators to replace it, The Hacker News reported. By 23 September, LiteLLM's Docker quick start had dropped it and now generates the key with openssl rand -hex 32. A gateway built from the older guide keeps sk-1234 until someone changes it. LiteLLM's security policy lists attacks that need a setup mistake as "explicitly not in scope." Translation: this is your configuration problem, and nobody upstream will fix a deployed gateway for you.
A second, independent warning. Anthropic's September 2026 threat report says "multiple actors were observed compromising AI wrapper services' implementation of LiteLLM" and used prompt injection "to exfiltrate the production API keys." Different attack path, same asset.
What changes for you
- Replace
sk-1234with a long random master key. No upgrade needed. - Upgrade to LiteLLM 1.84.0 or later, which covers every flaw in Wiz's table.
- Can't upgrade yet? Block
/mcp/,POST /mcp-rest/test/connectionandPOST /mcp-rest/test/tools/listat your reverse proxy or API gateway. BlockPOST /guardrails/test_custom_code, and restrictPOST /guardrailsandPUT /guardrails/{guardrail_id}to administrators. - Harden the host. Audit pass-through endpoints, restrict container network egress, and give the workload a least-privilege IAM role.
- If an attacker may have had access, review the guardrails list for entries you did not create, restart the process to clear code held in memory, then rotate the provider keys, the master key and the database credentials.
Weighing whether to self-host a gateway at all? See LiteLLM vs OpenRouter: a gateway you run carries exactly this hardening burden; one you rent does not.
FAQ
Does changing the master key require upgrading LiteLLM? No. It is a configuration change, and it closes every path in Wiz's report that depends on holding the key.
Which LiteLLM version fixes the disclosed flaws? 1.84.0 or later covers every flaw in Wiz's table, including the MCP authentication bypass CVE-2026-59822.
Is 9.6% of all LiteLLM gateways exposed right now? No. That figure comes from Wiz's February 2026 sample of 3,074 instances. The August scan found over 85,000 instances, most of which appear to be honeypots or test deployments.
Will LiteLLM treat the default key as a vulnerability? No. Its security policy lists attacks that need a setup mistake as "explicitly not in scope."
What to do
- 1 Change the master key from sk-1234 to a long random value. This needs no upgrade.
- 2 Upgrade to LiteLLM 1.84.0 or later, which covers every flaw in Wiz's table.
- 3 If you cannot upgrade yet, block /mcp/, POST /mcp-rest/test/connection and POST /mcp-rest/test/tools/list at your reverse proxy or API gateway, block POST /guardrails/test_custom_code, and restrict POST /guardrails and PUT /guardrails/{guardrail_id} to administrators.
- 4 Audit the gateway's pass-through endpoints, restrict the container's outbound network access, and give the workload a least-privilege cloud IAM role.
- 5 If an attacker may have had access, review the guardrails list for entries you did not create, restart the process, then rotate the provider keys, the master key and the database credentials.
Affected tools & models
Never need to catch up again
The weekly delta — only verdict changes and act-now items. No digest filler.