AAK-MCP-GEMINIBRIDGE-CVE-2026-54785-001: gemini-bridge tool-argument path traversal reads arbitrary files (from 1.0.0 below 1.3.1)
- Severity
- MEDIUM
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py- Auto-fixable
- No.
- SARIF name
GeminiBridgePathTraversal
What it detects
The gemini-bridge MCP server (PyPI) from 1.0.0 through 1.3.0 has a path traversal in consult_gemini_with_files: in inline mode it reads any file path supplied in the files argument without confining it to the working directory, then forwards the contents to the Gemini CLI — so a caller can exfiltrate arbitrary files the server process can read (CVE-2026-54785, CVSS 6.2). Fixed in 1.3.1; treat 1.0.0–1.3.0 (and unpinned) as exposed. The npm gemini-bridge (0.1.x) is an unrelated package below the affected range.
How to fix
Upgrade gemini-bridge to >= 1.3.1 and pin it. Confine tool-supplied file paths to the working directory (resolve and containment-check every path before reading) rather than reading whatever the caller names.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-GEMINIBRIDGE-CVE-2026-54785-001
Limitations
Reads gemini-bridge 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, reporting a range that admits an affected version and a reference that states no version. The dependency is not read when it is declared in a sub-directory manifest (services/api/pyproject.toml), in .cursor/mcp.json or .vscode/mcp.json, or in a lockfile format the reader does not parse (pdm.lock). 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-54785
- OWASP MCP Top 10: MCP04:2025 (Software Supply Chain Attacks & Dependency Tampering), MCP05:2025 (Command Injection & Execution)
- OWASP Agentic Top 10: ASI02 (Tool Misuse and Exploitation), ASI04 (Agentic Supply Chain Vulnerabilities)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-SUPPLY-01 (Runtime Package Fetch)
- CSA AI Controls Matrix (AICM): AIS-07, 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-GEMINIBRIDGE-CVE-2026-54785-001.md: the page then shows that text, with the registry reference appended under it.