Skip to main content

Jupyter MCP Server EUVDEUVD-2026-139650

| CVE-2026-137189 CRITICAL
Origin Validation Error (CWE-346)
2026-11-30 security-advisories@github.com GHSA-f8rf-rcrx-h6r9
9.3
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach server bound to 0.0.0.0
  2. Delivery
    Send PUT /api/connect with forged Host: localhost
  3. Exploit
    Bypass ManagementRouteSecurityMiddleware check
  4. Execution
    Submit attacker code_sandbox_url/document_url
  5. Persist
    set_config overwrites live backend
  6. Impact
    Server connects kernel to attacker infrastructure

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
Exploitation Conditions

Full unauthenticated takeover requires the server to be started in --insecure-mcp-noauth mode (which the vendor CLI explicitly marks 'NOT recommended for production') while bound to its default 0.0.0.0 interface so it is network-reachable; the attack is then a single HTTP request to /api/connect or /api/stop carrying a forged 'Host: localhost' (or 127.0.0.1/::1) header. The key LIMIT: in the default --mcp-token mode, /api/connect and /api/stop still enforce a valid bearer token after the Host check, so the spoof alone only reaches /api/healthz (status/info disclosure) and cannot hijack configuration. No user interaction, authentication, or DNS rebinding is needed - just the one forged header.

Impact

Signals align toward genuine priority but with an important scoping caveat. The vuln.today decision label is act_now and the vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, 9.3) indicates a remote, low-complexity, no-interaction, no-privilege attack with high impact to confidentiality, integrity and availability of the vulnerable system. The GHSA advisory contains a proof-of-concept that the reporter ran against a live server (curl with a forged 'Host: localhost' header), confirming set_config() overwrote the live backend URL - so a public PoC reference exists, though the structured input does not flag it as verified working exploit code. There is no CISA KEV listing and no EPSS score in the supplied data, so neither active-exploitation nor statistical exploitation-probability signals are available to corroborate the CVSS/decision rating. The single most important caveat: the full critical impact (unauthenticated backend/config hijack) applies ONLY to servers started with --insecure-mcp-noauth, a mode the vendor's own CLI labels 'NOT recommended for production'. In the default --mcp-token mode the state-changing routes /api/connect and /api/stop still require a valid bearer token after the Host check, so the spoof alone only reaches /api/healthz - a lower-severity status/info-disclosure gap. The CVSS vector reflects the insecure-mode worst case and does not encode this configuration dependency; defenders must confirm which mode they run before treating this as a 9.3.

Exploit ScenarioDerived

A server running jupyter-mcp-server in --insecure-mcp-noauth mode binds to 0.0.0.0, so a remote attacker on the network sends a single HTTP PUT to /api/connect carrying a forged 'Host: localhost' header plus an attacker-controlled payload (code_sandbox_url, document_url, tokens). The middleware trusts the spoofed Host header, the connect handler runs, and the server rewrites its live backend configuration to point at attacker infrastructure, causing it to attach a Jupyter kernel to systems the attacker controls. A PoC demonstrating exactly this is published in the GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 30, 2026

Host-header spoofing in Jupyter MCP Server prior to 2.1.3 lets a remote caller bypass the middleware that is supposed to restrict the management routes (/api/connect, /api/stop, /api/healthz) to localhost, because the check reads Starlette's parsed URL hostname (derived from the client-supplied Host header) instead of the real TCP peer. When the server runs in --insecure-mcp-noauth mode on its default 0.0.0.0 bind, a single unauthenticated HTTP request carrying 'Host: localhost' rewrites the live Jupyter backend configuration (code_sandbox_url, document_url, tokens) and points the server at attacker-controlled infrastructure; in the default --mcp-token mode the state-changing routes still enforce a bearer token, so the bypass only exposes /api/healthz for status/information disclosure. The vendor rates this 9.3, the GHSA documents a working curl-based proof-of-concept against a real server, and no CISA KEV listing or confirmed in-the-wild exploitation has been reported.

RemediationAI

Vendor-released patch: upgrade jupyter-mcp-server to 2.1.3 (release https://github.com/datalayer/jupyter-mcp-server/releases/tag/v2.1.3, fix commit 5db55d551f929a19b2acb6248385fc87383b419b), which replaces the Host-header string comparison with a check of the actual ASGI TCP peer and returns HTTP 421 for non-local clients; there is no backport for earlier 2.x releases. Until upgrading, stop starting the server in --insecure-mcp-noauth mode, since that mode's entire security guarantee rests on the broken check, and run with --mcp-token so a valid bearer token is still required on /api/connect and /api/stop (the trade-off is that /api/healthz remains reachable via a forged Host header and every client must now present a token). Additionally bind the service to 127.0.0.1 instead of 0.0.0.0 where remote MCP access is not needed, or front it with a reverse proxy or firewall rule that only forwards connections from loopback and rejects external traffic to /api/connect, /api/stop and /api/healthz - noting that a proxy which rewrites the Host header can itself reintroduce ambiguity if it does not also control the source address, so restrict by peer IP, not header value.

Affected VersionsENISA

jupyter-mcp-server < 2.1.3

Affected Packages

pypi jupyter-mcp-server fix: 2.1.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a classic origin-validation error (CWE-346) in ManagementRouteSecurityMiddleware in jupyter_mcp_server/server.py. The middleware introduced to fix GHSA-9x8x-crjq-g64h (CVE-2026-77359/CVE-2026-77318) compared request.url.hostname against localhost/127.0.0.1/::1, but Starlette builds URL.netloc from scope['headers'] whenever a syntactically valid Host header is present, falling back to scope['server'] only when the header is missing or malformed. Since neither request.client nor scope['client'] was ever referenced in that file (the pinned starlette==1.6.0 behaves this way), any hostname string the attacker supplies satisfies the check. The server binds 0.0.0.0 by default in utils.py, so the middleware is the only network gate. The upstream fix adds _is_local_peer(request), which inspects request.client.host against ('127.0.0.1', '::1') and returns HTTP 421 for any non-local TCP peer, and adds a regression test asserting that a forged 'Host: localhost' arriving from 203.0.113.5 is rejected even though _is_local_hostname still returns True. Note the split impact model: configuration hijack requires --insecure-mcp-noauth, whereas --mcp-token mode preserves token enforcement on connect/stop and leaves only the health endpoint reachable.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 9.3 CRITICAL
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
vuln.today AI 9.8 CRITICAL

A single forged-Host request remotely bypasses the localhost check with no auth or interaction (AV:N/AC:L/PR:N/UI:N); worst-case impact assumes --insecure-mcp-noauth mode, where backend-config hijack yields high C/I/A.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 30, 2026 - 20:05 EUVD
CVE Published
Nov 30, 2026 - 19:17 cve.org
CRITICAL 9.3

DescriptionCVE.org

Jupyter MCP Server is a Model Context Protocol server for Jupyter. Prior to 2.1.3, ManagementRouteSecurityMiddleware in jupyter_mcp_server/server.py checks request.url.hostname rather than the actual TCP peer before permitting access to /api/connect, /api/stop, and /api/healthz. Starlette derives that hostname from the client-supplied Host header, so a remote caller can supply a localhost Host value to pass the check. The server binds to all network interfaces by default. In --insecure-mcp-noauth mode, the caller can replace the active Jupyter backend configuration; in --mcp-token mode the state-changing routes still require a valid bearer token, while the health route remains reachable. This issue is fixed in 2.1.3.

Technical POC Analysis

CWE-346 Origin Validation Error.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A critical vulnerability in Jupyter MCP Server (prior to 2.1.3) allows remote attackers to bypass localhost restrictions and, when the server is run in insecure mode, hijack the live Jupyter backend configuration, potentially redirecting sensitive operations to attacker-controlled infrastructure. Organizations using this product in insecure deployments face severe risk of data compromise and service disruption, while even default installations may leak status information.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: restrict network access to management routes (/api/connect, /api/stop, /api/healthz) to localhost only via firewall or reverse proxy rules; avoid running in --insecure-mcp-noauth mode; enforce token authentication on all exposed interfaces; and deploy a Web Application Firewall (WAF) to block requests with spoofed Host headers (e.g., 'Host: localhost') from external sources.

Threat Intelligence Overview

EPSS Score
0.4%
Top 60% exploitable
Prevalence
Low
niche developer MCP server for Jupyter, limited production footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy