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
- CVE: CVE-2026-59822, CVE-2026-59820
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP07:2025 (Insufficient Authentication & Authorization)
- OWASP Agentic Top 10: ASI03 (Identity and Privilege Abuse), ASI04 (Agentic Supply Chain Vulnerabilities)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-AUTH-01 (Missing Authentication)
- CSA AI Controls Matrix (AICM): IAM-01, STA-08
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.