Host-header spoof bypasses the CVE-2026-77359 fix in jupyter-mcp-server management routes
The fix for CVE-2026-77359 in datalayer/jupyter-mcp-server added ManagementRouteSecurityMiddleware, which was meant to allow the /api/connect, /api/stop and /api/healthz management routes only from localhost. The middleware checks request.url.hostname, which Starlette builds from the client-supplied Host header, and never checks the actual TCP peer address. The server binds 0.0.0.0 by default, so any network caller who sends a forged Host: localhost header passes the check. In --insecure-mcp-noauth mode, where this check is the only guard, the reporter showed a remote request with Host: localhost and an attacker-controlled payload being accepted by /api/connect: the handler overwrote the live server's code_sandbox_url with the attacker's URL and the server then tried to connect a kernel to attacker infrastructure. In --mcp-token mode the bearer token is still required for /api/connect and /api/stop after the Host check, so the spoof alone reaches only /api/healthz there. The maintainers fixed this in 2.1.3. GitHub assigned CVE-2026-137189 for GHSA-f8rf-rcrx-h6r9.
- Affected artifact
- datalayer/jupyter-mcp-server — ManagementRouteSecurityMiddleware on /api/connect, /api/stop and /api/healthzmcp server
- Affected versions
- jupyter-mcp-server ≥ 0 to < 2.1.3
- Fixed in
- 2.1.3
- Last verified
- 2026-12-03
- Upstream aliases
- GHSA-f8rf-rcrx-h6r9CVE-2026-137189
Severity
CVSS 4.0 score 9.3 (Critical), scored by HOL.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
What this means
GHSA-f8rf-rcrx-h6r9 / CVE-2026-137189: jupyter-mcp-server before 2.1.3 checks the client-supplied Host header instead of the real peer address for its management routes, so a forged Host: localhost header from any network caller bypasses the CVE-2026-77359 fix and, in no-auth mode, allows unauthenticated backend hijack. Upgrade to 2.1.3 or later.
What to do
Upgrade jupyter-mcp-server to 2.1.3 or later. Do not run --insecure-mcp-noauth on a network-reachable bind, and treat any server that ran a vulnerable version in that mode as exposed: review its code_sandbox_url and document_url configuration and rotate any tokens it held.
Evidence
Precondition. Network access to a jupyter-mcp-server before 2.1.3 (the server binds 0.0.0.0 by default) and one request carrying a forged Host: localhost header. Full unauthenticated config hijack requires --insecure-mcp-noauth mode; no account is needed in that mode.
Source proof. Per the advisory, the reporter started the real server with --insecure-mcp-noauth and streamable-http transport: Host: evil.com was rejected with 421, while Host: localhost with an attacker payload was accepted and overwrote code_sandbox_url. HOL did not run the server; this rests on the advisory.
Version determination. Determined by range — The advisory states jupyter-mcp-server < 2.1.3 is affected, patched in 2.1.3.
Disclosure
Disclosure state: independent public · Publisher: datalayer/jupyter-mcp-server
Naming decision: named. Vendor named as drafted. Finding already public under GHSA-f8rf-rcrx-h6r9 with fix in 2.1.3; naming call sits with this job under Nov 24-25 2026 rules.
Vendor response: fixed — Fix shipped in jupyter-mcp-server 2.1.3.
2026-09-01 · vendor action
Maintainers published advisory GHSA-f8rf-rcrx-h6r9 and the 2.1.3 fix.
2026-12-03 · guard update
Status moved from draft to triaged: Transition to triaged: record is in scope, sources are primary, finding already public and fixed upstream in 2.1.3.
2026-12-03 · guard update
Status moved from triaged to evidence_verified: Transition to evidence_verified: record is in scope, sources are primary, finding already public and fixed upstream in 2.1.3.
2026-12-03 · disclosure
Status moved from evidence_verified to public: Transition to public: record is in scope, sources are primary, finding already public and fixed upstream in 2.1.3.
Affected artifact references
Cite this record
[HOL-VULN-2026-0012] Host-header spoof bypasses the CVE-2026-77359 fix in jupyter-mcp-server management routes — HOL Agent Vulnerability Ledger, HOL (hol.org), 2026. https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0012
Canonical URL: https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0012
Found an error in this record, or want to appeal it? Report an issue or appeal.
Appeal or correct this record
Maintainers and affected parties can submit evidence, dispute the record, or request a correction through the disclosure page. A dispute marks the record visibly disputed — it never silently disappears.