CVE-2026-137189: Jupyter MCP Server: Host-header spoof bypasses the CVE-2026-77359/GHSA-9x8x-crjq-g64h fix
Jupyter MCP Server is a Model Context Protocol server for Jupyter. Prior to 2.1.3, ManagementRouteSecurityMiddleware in jupytermcpserver/server.py checks request.url.hostname rather than the actual TCP peer before permitting access to /api/connect, /api/stop, and /api/healthz. Starlette derives that hostname from the client-supplied Host header, so a remote caller can supply a localhost Host value to pass the check. The server binds to all network interfaces by default. In --insecure-mcp-noauth mode, the caller can replace the active Jupyter backend configuration; in --mcp-token mode the state-changing routes still require a valid bearer token, while the health route remains reachable. This issue is fixed in 2.1.3.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.1.3
Event History
Frequently Asked Questions
Which deployments are exposed to remote exploitation?
Versions before 2.1.3 are exposed when the server is reachable over the network, because it binds to all network interfaces by default. A remote caller can spoof a localhost Host header to bypass the middleware's hostname-based check.
What can an unauthenticated attacker do in insecure mode?
When running with --insecure-mcp-noauth, a remote attacker can access the management routes and replace the active Jupyter backend configuration.
Does enabling --mcp-token fully prevent impact?
In --mcp-token mode, the state-changing management routes still require a valid bearer token, so Host-header spoofing alone does not authorize backend changes. The /api/healthz route remains reachable.
What version contains the fix?
The issue is fixed in version 2.1.3.