CRITICALCVSS v4 9.3Vulnerability

CVE-2026-137189

## Summary The fix for CVE-2026-77359/CVE-2026-77318 (GHSA-9x8x-crjq-g64h) added a middleware that checks whether `request.url.hostname` is `localhost`/`127.0.0.1`/`::1` before allowing access to the `/api/connect`, `/api/stop`, and `/api/healthz` management routes. That check reads Starlette's parsed URL, which is built from the client-supplied `Host` header whenever one is present - not from the actual TCP peer address. A single request with a forged `Host: localhost` header, regardless of where it actually originates, passes the check. ## Details - `jupyter_mcp_server/server.py:105-169` - `ManagementRouteSecurityMiddleware.dispatch` and `_is_local_hostname` (lines 110-111) do a pure string comparison against the parsed Host header, never referencing `request.client` or `scope["client"]` (confirmed via grep - neither appears anywhere in this file). - Confirmed against the actual pinned dependency: `starlette==1.6.0`'s `datastructures.py` builds `URL.netloc` from `scope["headers"]`'s host entry (validated only against a syntax regex) whenever present, falling back to `scope["server"]` (the real bind address) only if the header is absent or malformed. - `utils.py:429` - the server still binds `0.0.0.0` by default, so this is reachable from the network, not just localhost. ## Proof of Concept Started the real server (`--insecure-mcp-noauth --transport streamable-http`). `curl -X PUT /api/connect -H "Host: evil.com"` correctly returns 421 Misdirected Request. The same request with `-H "Host: localhost"` and a full attacker-controlled payload (`code_sandbox_url`, `document_url`, tokens) is accepted - server logs confirm the `connect()` handler ran, `DocumentCodeSandbox(**data)` validated, and `set_config()` overwrote the live server's `code_sandbox_url` with the attacker's URL, followed by the server actually attempting to connect a kernel to attacker infrastructure. ## Scoping In `--mcp-token` (secure) mode, `/api/connect` and `/api/stop` still correctly requ

Properties

Severity
critical
Summary
Jupyter MCP Server: Host-header spoof bypasses the CVE-2026-77359/GHSA-9x8x-crjq-g64h fix
Nvd fetched at
2026-12-01T02:29:07.656933+00:00
Cvss severity
CRITICAL
Cvss score
9.3
Retrieved at
2026-12-01T02:29:52+00:00
Ghsa published
2026-11-30T20:39:44Z
Source url
https://github.com/advisories/GHSA-f8rf-rcrx-h6r9
Ghsa updated
2026-11-30T20:39:44Z
Ghsa id
GHSA-f8rf-rcrx-h6r9
Last source
GitHub Advisory Database
Score
9.3
Cvss version
4.0
Cve id
CVE-2026-137189
Cvss vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
First seen by Signal
2026-11-30T22:28:40+00:00
Name
CVE-2026-137189
Is ghsa only
false
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published at
2026-11-30T19:17:56.423

Related Entities (3)

AFFECTS (1)

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-137189 (CVSS v4 9.3) — Ninja Signal Threat Intelligence | Ninja Signal