AAK-MCP-TOOLBOX-HOSTS-001: MCP Toolbox for Databases on a network listener with an open Host or Origin check
- Severity
- MEDIUM
- Category
- Supply Chain (
supply-chain) - Scanner
agent_audit_kit/scanners/mcp_cve_pins_2026_07.py,agent_audit_kit/scanners/mcp_toolbox_hosts.py- Auto-fixable
- No.
- SARIF name
McpToolboxOpenHostCheck
What it detects
MCP Toolbox for Databases before 0.25.0 had no way to validate the Host a request names, so a page in a browser could rebind a name to its listener (CVE-2026-11624, CWE-346, GHSA-76g7-m3xw-x9gr). 0.25.0 added --allowed-hosts beside --allowed-origins, and both still default to *, so the server only warns at startup and upgrading closes nothing by itself. This rule reports @toolbox-sdk/server below 0.25.0, and an MCP config that starts the server on a network listener with either flag unset or *.
How to fix
Upgrade @toolbox-sdk/server to 0.25.0 or later and pin it, and start the server with both --allowed-hosts and --allowed-origins naming your real hosts and origins. A client that starts the server itself can use --stdio, which has no listener.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-MCP-TOOLBOX-HOSTS-001
Limitations
The version half reads @toolbox-sdk/server where a package.json, lockfile or MCP config states a version; latest states none and is not reported, and the Go module is not read. The launch half reads the command and args of servers in .mcp.json, mcp.json, claude_desktop_config.json and *.mcp.json anywhere outside AAK's skip directories, for npx @toolbox-sdk/server or a program named toolbox. A launch with --stdio is not read, and neither is a shell script, a compose file or a Kubernetes manifest. A flag given a variable reference counts as set, and a list holding * beside other names counts as open. The rule reads the flags, not the reverse proxy in front of the listener. 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-11624
- OWASP MCP Top 10: MCP07:2025 (Insufficient Authentication & Authorization)
- OWASP Agentic Top 10: ASI07 (Insecure Inter-Agent Communication)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-NETWORK-01
- 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-TOOLBOX-HOSTS-001.md: the page then shows that text, with the registry reference appended under it.