Skip to content

AAK-MCP-LITELLM-CVE-2026-59822-001: LiteLLM below 1.84.0 (MCP auth bypass + skills-archive path traversal)

Severity
HIGH
Category
Supply Chain (supply-chain)
Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py
Auto-fixable
No.
SARIF name
LiteLLMMcpAuthBypass

What it detects

LiteLLM before 1.84.0 has two MCP-relevant flaws: its MCP Streamable-HTTP endpoint let a fabricated Authorization header trigger an OAuth2 passthrough fallback that replaced failed key validation with an empty UserAPIKeyAuth(), reaching MCP tooling without a valid key (CVE-2026-59822); and its Skills archive extraction did not validate ZIP entry paths, allowing path traversal outside the staging directory (CVE-2026-59820, fixed 1.83.7-stable). Both are fixed by 1.84.0. A project pinning litellm below 1.84.0 (or unpinned) is exposed. (CVSS not yet scored by NVD; auth bypass to MCP tooling.)

How to fix

Upgrade litellm to >= 1.84.0 and pin it. Ensure MCP routes require a valid LiteLLM key (no empty-auth fallback) and that skill/archive extraction validates entry paths against the destination directory.

To confirm the finding is gone, report only this rule:

agent-audit-kit scan . --rules AAK-MCP-LITELLM-CVE-2026-59822-001

Limitations

Reads litellm in requirements*.txt at any depth and, at the project root only, in pyproject.toml, Pipfile, package.json, .mcp.json, mcp.json, claude_desktop_config.json and the Pipfile.lock, poetry.lock, uv.lock, package-lock.json, pnpm-lock.yaml and yarn.lock lockfiles, taking the lowest version a range allows and reporting a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (services/api/pyproject.toml) or in a lockfile format the reader does not parse (pdm.lock). The ghcr.io/berriai/litellm image tag is not read, in a compose file or in an MCP config that starts it with docker run. A file over 2 MB, or a lockfile over 32 MiB, is not read. A declaration nested more than 64 levels deep in package.json, a TOML manifest or an MCP config (an MCP server more than 62) is still judged, and reported without a line; a lockfile entry keeps its line at any depth.

References


All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-MCP-LITELLM-CVE-2026-59822-001.md: the page then shows that text, with the registry reference appended under it.