jupyter-mcp-server: forged Host header bypasses the earlier local-only route check
Summary
Per the vendor advisory, jupyter-mcp-server before 2.1.3 limits /api/connect, /api/stop and /api/healthz to local use by checking only the client-supplied Host header. A forged Host: localhost header passes that check from any origin, bypassing the earlier fix for GHSA-9x8x-crjq-g64h. The advisory says the full impact, unauthenticated backend hijack, is specific to --insecure-mcp-noauth mode, which the CLI labels "NOT recommended for production". Version 2.1.3 is listed as patched.
Severity
Timeline
The repository advisory page shows the advisory as published on this date.
The advisory database entry lists this as the publication date. (per the vendor advisory)
How it happened
The earlier fix added a middleware that checks the parsed request hostname for the management routes. Starlette builds that value from the client-supplied Host header when one is present and passes a syntax check; it falls back to the server's real bind address only if the header is absent or malformed. It does not use the TCP peer address. A single request with Host: localhost therefore passes. The server binds 0.0.0.0 by default, so the routes are reachable from the network. In the advisory's test, started with --insecure-mcp-noauth --transport streamable-http, a forged request overwrote the server's code_sandbox_url with the attacker's URL.
How to check your app
- < 2.1.3: Check the installed jupyter-mcp-server version. Versions below 2.1.3 are listed as vulnerable.
- < 2.1.3: Check whether the server is started with --insecure-mcp-noauth, the mode where the advisory describes the full impact and which the CLI labels "NOT recommended for production".
- < 2.1.3: Check whether the server is reachable from the network, since it binds 0.0.0.0 by default.
Sources
Corrections and updates
Cite this entry
- Title
- jupyter-mcp-server: forged Host header bypasses the earlier local-only route check
- Added
- Dec 1, 2026
- URL
- https://vibeincidents.com/incidents/jupyter-mcp-server-cve-2026-137189/
- Suggested citation
VibeIncidents. "jupyter-mcp-server: forged Host header bypasses the earlier local-only route check." Dec 1, 2026. https://vibeincidents.com/incidents/jupyter-mcp-server-cve-2026-137189/