On this page
People run Jupyter MCP Server to integrate an AI assistant in their Jupyter notebooks. On older than 2.1.3 you can run the server as a network service and anyone who can connect to the port can forge the request origin, bypass the check that you have to be local to use the management controls and in no-auth mode, point your notebooks at their backend. So your AI assistant runs code on their Jupyter server using your files and credentials. So the record dropped today, CVE-2026-137189, and it's a big one - 9.3, critical.
And that's the second time it's been the story for these routes. CVE-2026-77359 came first. It was a DNS rebinding attack, where a site the victim visited could call the management routes /api/connect, /api/stop and /api/healthz, since those routes missed the browser-origin checks the main endpoint carried. So they added some middleware which restricts calls on those routes to local calls only. The CVE-2026-137189 is the bypass of that by independent researcher Syed Anas Mohiuddin. Middleware looks to request.url.hostname to determine if the caller is local. The value is generated by the web framework using the Host header. The Host header is generated by the party submitting the request. Send a request anywhere in the network with a "Host: localhost" header. It passes the local check. No binding. No cheesy website. All one header.
The researcher ran it against the real server in --insecure-mcp-noauth mode. There was a PUT request to /api/connect. The attacker had forged the Host header and there was an attacker payload inside. The server had the live settings swapped out with attacker's code sandbox + document urls, then a kernel was attached to the attacker's systems. That's one forged header in that mode. That's all there is.
How to fix
Upgrade to 2.1.3 or later:
pip install --upgrade "jupyter-mcp-server>=2.1.3"
If you can you should go for the current release rather than stopping at 2.1.3 (if your setup support it). Now, 2.1.3 doesn't drop the Host check. It adds another one behind it, based on the actual TCP connection this time. Not 127.0.0.1 or ::1? Then it's a 421 for you: "Request must originate from localhost." And yeah, check how the server starts while you're at it. If --insecure-mcp-noauth is set on the command line or in the service unit. You should enable the token with --mcp-token before serving the port beyond your own machine. All network interfaces are bound by default by the server so a port that you think is local is actually a network port.
Who is not in scope
So there's another configuration. Run Jupyter MCP Server using stdio against your own local AI client and you don't even have a http listener, so no management routes to spoof. Well, the mistake is with stand-alone HTTP transport. Jupyter itself isn't the problem, by the way. Neither is the token check sitting on the main /mcp endpoint. If you already have 2.1.3 or higher. You've got peer check.
The token split mode is important. /api/connect and /api/stop continued to require a valid bearer token in --mcp-token mode after the forged header went through. Thus spoofing itself did not give away the server. Only /api/healthz was still available as status. It's the token that was under control. The full hijack? That only happens in no-auth mode, the mode the tool itself warns you not to run in production. And the safety of that mode hung on one header check. The check that failed.
One check to run now
Print the version you actually run:
pip show jupyter-mcp-server
Anything less than 2.1.3 is covered. Then look at the launch command for the flag which controls the degree to which this is a big deal (so find the service unit or the container command or your shell history for --insecure-mcp-noauth) Three things together make the case to fix today: the server in no-auth mode, a build below 2.1.3, and a port reachable from other machines. When patched, a forged localhost request to the server from another machine results in a 421 response and "Request must originate from localhost.". The patch includes a regression test that validates this response.
What this is not
Just to be clear, Jupyter notebooks aren't flawed here, and the token check on the main endpoint didn't break. "known exploited" is not the attribute the current sources list for this bug. It was a local only guard that read the name supplied by the caller rather than the connection the caller came in with.
HOL's assessment
A localhost check reading a header is reading a label, not an identity. A label is printed by the requester for being trusted. And HOL keeps spotting this exact shape in this month's local MCP servers, you know? A management surface bolted on beside the main protocol, guarded either by a check meant for the main surface or by some value the caller gets to choose. This one's fix does it properly, though - it checks the connection. Worth asking about every local AI server you run, honestly: what does its local-only check read, for real? The data record for this issue can be found at the HOL Guard evidence page for CVE-2026-137189 with its data sources. If you're running agents against local servers like this one, HOL Guard will validate the range of access and execution by agents. For where to download it, see the download section further down.
Where to download Guard
Guard is free and Open source. Guard Desktop is at https://hol.org/guard/install for macOS 13+ on Apple Silicon, Windows x64 and Linux x86_64. The download needs no terminal, and a one-command terminal installation sits on the same page. After installing, hol-guard doctor will tell you that daemon is started and the intercept layer is up and working.
Related HOL coverage covers the same trust question in the LiteLLM MCP stdio command injection, CVE-2026-136535, and in the Microsoft Agent Framework PyPI compromise.
CVE-2026-137189: is it a new vulnerability?
Or a bypass to a previous fix? It's a bypass. CVE-2026-77359 The missing origin checking of management routes (resolved by introducing local only middleware) The CVE-2026-137189 is that the middleware uses the client specified Host header instead of the actual connection and so it gets through the forged header. 2.1.3 is the connection check, which runs after the header check.
What builds does it affect?
What plug it up? All jupyter-mcp-server < 2.1.3 if it uses the standalone HTTP transport. For 2.1.3 or higher use pip install --upgrade "jupyter-mcp-server>=2.1.3" and run with --mcp-token (instead of --insecure-mcp-noauth) to any port which can be accessed by another machine.
Sources
Project advisory GHSA-f8rf-rcrx-h6r9, datalayer/jupyter-mcp-server Fix commit 5db55d5, datalayer/jupyter-mcp-server Earlier advisory GHSA-9x8x-crjq-g64h (CVE-2026-77359) HOL Guard evidence page for CVE-2026-137189