{"vuln_id":"GHSA-9x8x-crjq-g64h","aliases":["CVE-2026-77359"],"description":"Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes","published_at":"2026-11-20T00:12:51Z","modified_at":"2026-11-20T00:30:06.844720Z","first_seen_at":"2026-11-21T19:15:19.318407Z","severity":"critical","severity_source":"ghsa","cvss_score":9.3,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:H/SC:H/SI:H/SA:H","cwe":["CWE-350"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-9x8x-crjq-g64h"},"matched_alias":null,"items":[{"id":10681,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-9x8x-crjq-g64h: Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes","summary":"Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes\n\nStandalone `streamable-http` mode in `datalayer/jupyter-mcp-server` rejects forged `Host` and `Origin` headers on `/mcp`, but custom management routes mounted on the same application do not get the same browser-origin protection. A malicious website can keep an attacker origin while its hostname resolves to `127.0.0.1` or a private target address, then send `PUT /api/connect` to replace the MCP server's active Jupyter backend. The route accepts the browser-shaped request and makes the server start a kernel client against attacker-controlled infrastructure.\n\nThe protected `/mcp` endpoint shows the intended browser-origin boundary. With `MCP_TOKEN` configured, `/mcp` rejects forged browser headers:\n\n```text\nPOST /mcp with Authorization: Bearer SCAN_MCP_TOKEN\nHost: attacker.example:8142\nOrigin: http://attacker.example:8142\n\nHTTP 421 Invalid Host header\n```\n\nThe vulnerable route is `jupyter_mcp_server/server.py:143-187`. It parses caller JSON, updates the active Jupyter backend configuration, resets `ServerContext`, and starts the kernel without applying the `/mcp` Host/Origin rejection to the custom route:\n\n```python\n@mcp.custom_route(\"/api/connect\", [\"PUT\"])\nasync def connect(request: Request):\n    data = await request.json()\n\n    document_runtime = DocumentRuntime(**data)\n\n    set_config(\n        provider=document_runtime.provider,\n        runtime_url=document_runtime.runtime_url,\n        runtime_id=document_runtime.runtime_id,\n        runtime_token=document_runtime.runtime_token,\n        document_url=document_runtime.document_url,\n        document_id=document_runtime.document_id,\n        document_token=document_runtime.document_token,\n        allowed_jupyter_tools=document_runtime.allowed_jupyter_tools or \"notebook_run-all-cells,notebook_get-selected-cell\"\n    )\n\n    ServerContext.reset()\n\n    try:\n        __start_kernel()\n        return JSONResponse({\"success\": True})\n```\n\n`/api/stop` is also state-changing and accepts the same browser-origin route shape:\n\n```python\n# jupyter_mcp_server/server.py:190-199\n@mcp.custom_route(\"/api/stop\", [\"DELETE\"])\nasync def stop(request: Request):\n    try:\n        current_notebook = notebook_manager.get_current_notebook() or \"default\"\n        if current_notebook in notebook_manager:\n            notebook_manager.remove_notebook(current_notebook)\n        return JSONResponse({\"success\": True})\n```\n\n## Proof of concept\n\nRun the affected version with `MCP_TOKEN` configured:\n\n```bash\ngit clone https://github.com/datalayer/jupyter-mcp-server\ncd jupyter-mcp-server\ngit checkout 27b91e551d8bbca2da32c334f9f13267290ff815\npython3.12 -m venv .venv\n. .venv/bin/activate\npython -m pip install -e .\nMCP_TOKEN=SCAN_MCP_TOKEN python -m jupyter_mcp_server \\\n  --transport streamable-http \\\n  --start-new-runtime false \\\n  --jupyterlab false \\\n  --mcp-token SCAN_MCP_TOKEN \\\n  --port 8083\n```\n\nFirst, show that `/mcp` rejects the browser-shaped request:\n\n```http\nPOST /mcp HTTP/1.1\nHost: attacker.example:8083\nOrigin: http://attacker.example\n\nAffected: PyPI:jupyter-mcp-server\n\nFixed in: 1.0.3\n\nReferences:\nhttps://github.com/datalayer/jupyter-mcp-server/security/advisories/GHSA-9x8x-crjq-g64h\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-77359\nhttps://github.com/datalayer/jupyter-mcp-server/pull/262\nhttps://github.com/datalayer/jupyter-mcp-server/commit/c2e98fca2df1bbd608451ec416aaa38a4\nhttps://github.com/datalayer/jupyter-mcp-server\nhttps://github.com/datalayer/jupyter-mcp-server/releases/tag/v1.0.3","url":"https://osv.dev/vulnerability/GHSA-9x8x-crjq-g64h","published_at":"2026-11-20T00:12:51Z","updated_at":"2026-11-20T00:30:06.844720Z","fetched_at":"2026-11-21T19:15:55.946099Z","severity":"critical","cvss_score":9.3,"epss":0.00503,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"jupyter-mcp-server","vuln_id":"CVE-2026-77359","vuln_ids":["CVE-2026-77359","GHSA-9X8X-CRJQ-G64H"],"tags":["osv","pypi","fix-available"],"cluster_id":2091,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10681","html":"https://vulnwatch.ve1ve2.com/item/10681"}},{"id":2333,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-9x8x-crjq-g64h / CVE-2026-77359: Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes","summary":"Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes\n\nStandalone `streamable-http` mode in `datalayer/jupyter-mcp-server` rejects forged `Host` and `Origin` headers on `/mcp`, but custom management routes mounted on the same application do not get the same browser-origin protection. A malicious website can keep an attacker origin while its hostname resolves to `127.0.0.1` or a private target address, then send `PUT /api/connect` to replace the MCP server's active Jupyter backend. The route accepts the browser-shaped request and makes the server start a kernel client against attacker-controlled infrastructure.\n\nThe protected `/mcp` endpoint shows the intended browser-origin boundary. With `MCP_TOKEN` configured, `/mcp` rejects forged browser headers:\n\n```text\nPOST /mcp with Authorization: Bearer SCAN_MCP_TOKEN\nHost: attacker.example:8142\nOrigin: http://attacker.example:8142\n\nHTTP 421 Invalid Host header\n```\n\nThe vulnerable route is `jupyter_mcp_server/server.py:143-187`. It parses caller JSON, updates the active Jupyter backend configuration, resets `ServerContext`, and starts the kernel without applying the `/mcp` Host/Origin rejection to the custom route:\n\n```python\n@mcp.custom_route(\"/api/connect\", [\"PUT\"])\nasync def connect(request: Request):\n    data = await request.json()\n\n    document_runtime = DocumentRuntime(**data)\n\n    set_config(\n        provider=document_runtime.provider,\n        runtime_url=document_runtime.runtime_url,\n        runtime_id=document_runtime.runtime_id,\n        runtime_token=document_runtime.runtime_token,\n        document_url=document_runtime.document_url,\n        document_id=document_runtime.document_id,\n        document_token=document_runtime.document_token,\n        allowed_jupyter_tools=document_runtime.allowed_jupyter_tools or \"notebook_run-all-cells,notebook_get-selected-cell\"\n    )\n\n    ServerContext.reset()\n\n    try:\n        __start_kernel()\n        return JSONResponse({\"success\": True})\n```\n\n`/api/stop` is also state-changing and accepts the same browser-origin route shape:\n\n```python\n# jupyter_mcp_server/server.py:190-199\n@mcp.custom_route(\"/api/stop\", [\"DELETE\"])\nasync def stop(request: Request):\n    try:\n        current_notebook = notebook_manager.get_current_notebook() or \"default\"\n        if current_notebook in notebook_manager:\n            notebook_manager.remove_notebook(current_notebook)\n        return JSONResponse({\"success\": True})\n```\n\n## Proof of concept\n\nRun the affected version with `MCP_TOKEN` configured:\n\n```bash\ngit clone https://github.com/datalayer/jupyter-mcp-server\ncd jupyter-mcp-server\ngit checkout 27b91e551d8bbca2da32c334f9f13267290ff815\npython3.12 -m venv .venv\n. .venv/bin/activate\npython -m pip install -e .\nMCP_TOKEN=SCAN_MCP_TOKEN python -m jupyter_mcp_server \\\n  --transport streamable-http \\\n  --start-new-runtime false \\\n  --jupyterlab false \\\n  --mcp-token SCAN_MCP_TOKEN \\\n  --port 8083\n```\n\nFirst, show that `/mcp` rejects the browser-shaped request:\n\n```http\nPOST /mcp HTTP/1.1\nHost: attacker.example:8083\nOrigin: http://attacker.example\n\nAffected packages: pip:jupyter-mcp-server\nPatched: jupyter-mcp-server 1.0.3","url":"https://github.com/advisories/GHSA-9x8x-crjq-g64h","published_at":"2026-11-20T00:12:51Z","updated_at":"2026-11-20T00:12:52Z","fetched_at":"2026-11-21T19:15:18.416757Z","severity":"critical","cvss_score":9.3,"epss":0.00503,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"jupyter-mcp-server","vuln_id":"CVE-2026-77359","vuln_ids":["CVE-2026-77359","GHSA-9X8X-CRJQ-G64H"],"tags":["ghsa","pip","CWE-350"],"cluster_id":2091,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2333","html":"https://vulnwatch.ve1ve2.com/item/2333"}},{"id":9012,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-77359: Jupyter MCP Server is a Model Context Protocol server for Jupyter. Prior to 1.0.3, standalone streamable-http mode validates Host and Origin values for /mcp bu…","summary":"Jupyter MCP Server is a Model Context Protocol server for Jupyter. Prior to 1.0.3, standalone streamable-http mode validates Host and Origin values for /mcp but does not apply the same browser-origin controls to the state-changing /api/connect and /api/stop management routes. A malicious website can use DNS rebinding so that its hostname resolves to a loopback, LAN, VPN, or published-container MCP listener, then send a browser-shaped request that /api/connect accepts to replace runtime_url and document_url values and start a kernel client against attacker-controlled infrastructure. The attacker can thereby cause Jupyter API and WebSocket traffic to reach that infrastructure and can use /api/stop to stop the current notebook kernel. The default broad bind can increase exposure, but the vulnerability is the missing management-route origin boundary, not a lack of Host validation on /mcp. This issue is fixed in version 1.0.3.\n\nReferences:\nhttps://github.com/datalayer/jupyter-mcp-server/commit/c2e98fca2df1bbd608451ec416aaa38a4\nhttps://github.com/datalayer/jupyter-mcp-server/pull/262\nhttps://github.com/datalayer/jupyter-mcp-server/releases/tag/v1.0.3\nhttps://github.com/datalayer/jupyter-mcp-server/security/advisories/GHSA-9x8x-crjq-g64h\nhttps://github.com/datalayer/jupyter-mcp-server/security/advisories/GHSA-9x8x-crjq-g64h","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77359","published_at":"2026-11-19T17:18:59.520000Z","updated_at":"2026-11-19T20:17:54.220000Z","fetched_at":"2026-11-21T19:15:31.484669Z","severity":"critical","cvss_score":9.3,"epss":0.00503,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-77359","vuln_ids":["CVE-2026-77359","GHSA-9X8X-CRJQ-G64H"],"tags":["CWE-350"],"cluster_id":2092,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9012","html":"https://vulnwatch.ve1ve2.com/item/9012"}}]}