CVE-2026-137189 — Datalayer Jupyter-mcp-server — CWE-346
## 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 re
## 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 re
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-137189
CVSS 9.3/10 · CRITICAL · 30.11.2026
CWE: CWE-346
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
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: ## 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…
Affected: datalayer jupyter-mcp-server
⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).
🌍 REAL WORLD IMPACT
All confidential data readable/stealable; data can be modified or deleted; service can be completely taken down.
🛡️ REMEDIATION
→ Apply vendor security update for datalayer jupyter-mcp-server.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
🚨 NOW (24-48h) — Remote, no-auth, low complexity.
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]
FOFA Query