
MCP-Inspector-vulncheck is a Python script that checks if an MCP Inspector server is vulnerable to CVE-2025-49596. It tests whether the /sse endpoint responds to unauthenticated requests, indicating a potential security flaw. The script is simple to use and provides clear output on whether the target server is likely vulnerable or patched.
该脚本用于检测 MCP Inspector 服务器是否受到 CVE-2025-49596 漏洞影响,该安全问题表现为 /sse 端点响应未经身份验证的请求(缺少身份验证令牌)。
pip install requests)在命令行中运行脚本:
python MCP-Inspector-vulncheck.py [host]
host(可选):MCP Inspector 服务器的主机名或 IP 地址(默认:localhost)。check_mcp_inspector() 中的 port 参数。检测本地机器(默认):
python MCP-Inspector-vulncheck.py
检测远程主机:
python MCP-Inspector-vulncheck.py 192.168.1.100
[+] MCP Inspector responded without auth token! — 服务器很可能存在 CVE-2025-49596 漏洞。[-] Auth token required. Likely patched version (v0.14.1+). — 服务器不存在该漏洞。该脚本仅供安全测试和教育目的使用。请勿用于您不拥有或未经明确许可的系统。