Jupyter MCP Server's Host validation is bypassed by forgery
Jupyter MCP Server: Host-header spoof bypasses the CVE-2026-77359/GHSA-9x8x-crjq-g64h fix
Security researcher Syed Anas Mohiuddin disclosed that the fix for GHSA-9x8x-crjq-g64h in Jupyter MCP Server can be bypassed by forging the Host header; affected versions are below 2.1.3, and it has been fixed in 2.1.3. The middleware added by that fix uses request.url.hostname to determine whether a request comes from localhost, 127.0.0.1 or ::1 before allowing /api/connect, /api/stop and /api/healthz; however, the URL parsed by Starlette is taken from the client-supplied Host header rather than the actual TCP peer address, and does not reference scope["client"]. The server's default bind address remains 0.0.0.0, so it is reachable from the network.
The material states that the old fix only compared the Host header supplied by the client, so deployments bound by default to 0.0.0.0 could therefore trigger configuration hijacking from the network.