{"vuln_id":"GHSA-24pw-rf5p-mgp7","aliases":["CVE-2026-77318"],"description":"Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP mode","published_at":"2026-11-20T00:12:14Z","modified_at":"2026-11-20T00:15:05.450904Z","first_seen_at":"2026-11-21T19:15:19.318419Z","severity":"high","severity_source":"ghsa","cvss_score":7.3,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:H/VA:L/SC:H/SI:H/SA:L","cwe":["CWE-306"],"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-24pw-rf5p-mgp7"},"matched_alias":null,"items":[{"id":10688,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-24pw-rf5p-mgp7: Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP mode","summary":"Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP mode\n\nStandalone `streamable-http` mode in `datalayer/jupyter-mcp-server` requires `MCP_TOKEN` for `/mcp`, but the custom management routes mounted on the same application do not enforce that token. An unauthenticated network caller can invoke `PUT /api/connect`, choose the Jupyter backend URL and token fields, reset the server context, and make the MCP server start a kernel client against attacker-controlled infrastructure. The same missing authentication affects the state-changing `DELETE /api/stop` route.\n\nThe intended authentication boundary is documented in the security guide and enforced during startup:\n\n```text\ndocs/docs/reference/security/index.mdx:15\nAll MCP endpoints require Bearer token authentication.\n\ndocs/docs/reference/security/index.mdx:25\nStarting with version 1.0.0, MCP client authentication is required for the streamable-http transport.\n```\n\nThe CLI enforces that boundary for the MCP endpoint:\n\n```python\n# jupyter_mcp_server/CLI.py:203-209\nif transport == \"streamable-http\" and not mcp_token and not insecure_mcp_noauth:\n    raise click.UsageError(\n        \"streamable-http transport requires MCP client authentication. \"\n        \"Set --mcp-token / MCP_TOKEN, or pass --insecure-mcp-noauth to \"\n        \"explicitly allow unauthenticated access.\"\n    )\n```\n\n```python\n# jupyter_mcp_server/CLI.py:285-290\nif transport == \"streamable-http\":\n    if mcp_token:\n        from jupyter_mcp_server.server import RuntimeTokenVerifier\n        mcp._token_verifier = RuntimeTokenVerifier(mcp_token)\n        logger.info(\"MCP endpoint token authentication enabled (using MCP_TOKEN)\")\n```\n\nThe vulnerable route is `jupyter_mcp_server/server.py:143-187`:\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 unauthenticated and state-changing:\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:\n\n```bash\ngit clone https://github.com/datalayer/jupyter-mcp-server\n\n\nAffected: PyPI:jupyter-mcp-server\n\nFixed in: 1.0.3\n\nReferences:\nhttps://github.com/datalayer/jupyter-mcp-server/security/advisories/GHSA-24pw-rf5p-mgp7\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-77318\nhttps://github.com/datalayer/jupyter-mcp-server/pull/262\nhttps://github.com/datalayer/jupyter-mcp-server/commit/c2e98fca2df1bbd608451ec416aaa38a4d246fc5\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-24pw-rf5p-mgp7","published_at":"2026-11-20T00:12:14Z","updated_at":"2026-11-20T00:15:05.450904Z","fetched_at":"2026-11-21T19:15:55.946105Z","severity":"high","cvss_score":7.3,"epss":0.00505,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"jupyter-mcp-server","vuln_id":"CVE-2026-77318","vuln_ids":["CVE-2026-77318","GHSA-24PW-RF5P-MGP7"],"tags":["osv","pypi","fix-available"],"cluster_id":2093,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10688","html":"https://vulnwatch.ve1ve2.com/item/10688"}},{"id":2334,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-24pw-rf5p-mgp7 / CVE-2026-77318: Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP mode","summary":"Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP mode\n\nStandalone `streamable-http` mode in `datalayer/jupyter-mcp-server` requires `MCP_TOKEN` for `/mcp`, but the custom management routes mounted on the same application do not enforce that token. An unauthenticated network caller can invoke `PUT /api/connect`, choose the Jupyter backend URL and token fields, reset the server context, and make the MCP server start a kernel client against attacker-controlled infrastructure. The same missing authentication affects the state-changing `DELETE /api/stop` route.\n\nThe intended authentication boundary is documented in the security guide and enforced during startup:\n\n```text\ndocs/docs/reference/security/index.mdx:15\nAll MCP endpoints require Bearer token authentication.\n\ndocs/docs/reference/security/index.mdx:25\nStarting with version 1.0.0, MCP client authentication is required for the streamable-http transport.\n```\n\nThe CLI enforces that boundary for the MCP endpoint:\n\n```python\n# jupyter_mcp_server/CLI.py:203-209\nif transport == \"streamable-http\" and not mcp_token and not insecure_mcp_noauth:\n    raise click.UsageError(\n        \"streamable-http transport requires MCP client authentication. \"\n        \"Set --mcp-token / MCP_TOKEN, or pass --insecure-mcp-noauth to \"\n        \"explicitly allow unauthenticated access.\"\n    )\n```\n\n```python\n# jupyter_mcp_server/CLI.py:285-290\nif transport == \"streamable-http\":\n    if mcp_token:\n        from jupyter_mcp_server.server import RuntimeTokenVerifier\n        mcp._token_verifier = RuntimeTokenVerifier(mcp_token)\n        logger.info(\"MCP endpoint token authentication enabled (using MCP_TOKEN)\")\n```\n\nThe vulnerable route is `jupyter_mcp_server/server.py:143-187`:\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 unauthenticated and state-changing:\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:\n\n```bash\ngit clone https://github.com/datalayer/jupyter-mcp-server\n\n\nAffected packages: pip:jupyter-mcp-server\nPatched: jupyter-mcp-server 1.0.3","url":"https://github.com/advisories/GHSA-24pw-rf5p-mgp7","published_at":"2026-11-20T00:12:14Z","updated_at":"2026-11-20T00:12:16Z","fetched_at":"2026-11-21T19:15:18.416758Z","severity":"high","cvss_score":7.3,"epss":0.00505,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"jupyter-mcp-server","vuln_id":"CVE-2026-77318","vuln_ids":["CVE-2026-77318","GHSA-24PW-RF5P-MGP7"],"tags":["ghsa","pip","CWE-306"],"cluster_id":2093,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2334","html":"https://vulnwatch.ve1ve2.com/item/2334"}},{"id":9009,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-77318: Jupyter MCP Server is a Model Context Protocol server for Jupyter. Prior to 1.0.3, standalone streamable-http mode can enforce MCP_TOKEN on /mcp while leaving…","summary":"Jupyter MCP Server is a Model Context Protocol server for Jupyter. Prior to 1.0.3, standalone streamable-http mode can enforce MCP_TOKEN on /mcp while leaving the state-changing /api/connect and /api/stop management routes unauthenticated. An unauthenticated network caller can use /api/connect to replace runtime_url and document_url values and their tokens, reset ServerContext, and start a kernel client against attacker-controlled infrastructure, causing the server to send Jupyter API and WebSocket traffic to that backend. The caller can also use /api/stop to stop the current notebook kernel. This boundary failure does not require explicit insecure no-auth mode and occurs outside normal MCP JSON-RPC tool dispatch. This issue is fixed in version 1.0.3.\n\nReferences:\nhttps://github.com/datalayer/jupyter-mcp-server/commit/c2e98fca2df1bbd608451ec416aaa38a4d246fc5\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-24pw-rf5p-mgp7\nhttps://github.com/datalayer/jupyter-mcp-server/security/advisories/GHSA-24pw-rf5p-mgp7","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77318","published_at":"2026-11-19T17:18:59.027000Z","updated_at":"2026-11-19T19:17:32.883000Z","fetched_at":"2026-11-21T19:15:31.484667Z","severity":"high","cvss_score":7.3,"epss":0.00505,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-77318","vuln_ids":["CVE-2026-77318","GHSA-24PW-RF5P-MGP7"],"tags":["CWE-306"],"cluster_id":2094,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/9009","html":"https://vulnwatch.ve1ve2.com/item/9009"}}]}