针对 2026 年 10 月 MCP 漏洞集群 的确定性版本与 CVE 对照报告。将它指向你的 MCP 客户端配置和已安装的软件包;它会按 CVE 逐一告诉你,你是已修补(OK)、暴露(GAP),还是需要人工查看(REVIEW/UNKNOWN)——并带有退出码,以便 CI 在存在缺口时使构建失败。
2026 年 10 月是模型上下文协议(Model Context Protocol)安全形势迄今最糟糕的一个月。本扫描器覆盖的漏洞集群包括:
command 字段,且没有允许列表,并包裹在 bash -c 中。已有公开 PoC。观察到约 1,400 次实际利用尝试。1.9.0 的修复不完整(可被绕过)—— 需要 1.10.3。modelcontextprotocol/mcp-server-fetch 包中的 fetch_url 工具允许通过 url 参数进行 SSRF。来源:
pip install -e .
mcp-patch-gap-scanner --config ~/.config/Claude/claude_desktop_config.json
示例输出:
[GAP] CVE-2026-105697 (langflow) CVSS 9.9
installed: 1.9.0 | fixed in: 1.10.3
reason: 1.9.0 is in the 1.9.x line whose fix was incomplete (bypassed); upgrade to 1.10.3
[REVIEW] CVE-2026-104120 (mcp-server-fetch) CVSS 7.3
installed: 1.0.0 | fixed in: n/a
reason: installed; no fixed version published in the cited advisory — verify upstream before use
[GAP] CVE-2026-107824 (x64dbg-mcp) CVSS 9.3
installed: n/a | fixed in: n/a
reason: no authentication configured and/or bound to all interfaces; restrict to 127.0.0.1 and require auth
[GAP] MCP-PYSDK-OAUTH-2026-09-29 (mcp (Python SDK)) CVSS 7.5
installed: 1.29.9 | fixed in: n/a
reason: 1.29.9 < fixed 1.30.0; upgrade required
3 gap(s), 1 review/unknown(s) across 4 finding(s)
选项:
--format json — 机器可读报告(stdout 为纯 JSON)。claude_desktop_config.json 风格({"mcpServers": {...}})或通用的 {"servers": [...]} 列表。退出码(可用于 CI 失败判定):
0 — 未发现缺口2 — 存在一个或多个 GAP(使流水线失败)1 — 配置错误扫描器通过 importlib.metadata(Python 包 langflow、mcp)和 npm ls -g(Node 包 @modelcontextprotocol/server-fetch、mcp-server-fetch)从你的主机检测已安装版本。
pip install pytest
python -m pytest -v
由 Ingenious AI 构建——交付 AI 安全工具的团队。我们的平台:
DisclosureGuard ModelMinder TermsWatch Vibe-Code Audit Rogue-Agent Defense BreachHunter ChatBreaker Agent Flight Recorder Agent Auth Gateway DomainGuard ContentCraft AI