Jupyter MCP Server: a forged Host header still read as "localhost" (GHSA-f8rf-rcrx-h6r9, CVE-2026-137189)
From the record.
Facts
- Alert note
- KB-N-0006 · AI applications
- Record published
- 2026-11-30 · GHSA-f8rf-rcrx-h6r9 reaches GitHub's global advisory database with CVE-2026-137189 and a CVSS 4.0 score of 9.3; previously a repository-only advisory since 2026-09-01 · source
- Record published
- 2026-09-01 · GHSA-f8rf-rcrx-h6r9 published as a repository-only advisory, no CVE, no score · source
- Fix
- 2026-09-01 · jupyter-mcp-server 2.1.3 released, fixed for this record · source
- Record published
- 2026-11-17 · GHSA-rvjm-7hvp-f868 published as a repository-only advisory, no CVE, no patched version · source
- CVE
- CVE-2026-137189
- GitHub advisory
- GHSA-f8rf-rcrx-h6r9, GHSA-rvjm-7hvp-f868
- CWE
- CWE-346
- Record
- CVE-2026-137189 (GHSA-f8rf-rcrx-h6r9, "Host-header spoof bypasses the CVE-2026-77359/GHSA-9x8x-crjq-g64h fix")
- Open, no CVE
- GHSA-rvjm-7hvp-f868, critical, CVSS 3.1 9.6, published 2026-11-17, names no patched version
- Severity
- Critical, CVSS 4.0 9.3, in GitHub's reviewed record; NVD gives the same score. CWE-346 (Origin Validation Error)
- Affected
jupyter-mcp-serveron PyPI before 2.1.3- Fixed
- Fixed in 2.1.3, released 2026-09-01. The current release, 2.2.6 (2026-11-17), still carries the fix
- Exploited
- Not in CISA KEV at our check. GHSA-rvjm-7hvp-f868 has no CVE, so not eligible for CISA KEV
- In scanner databases
- GitHub's global advisory database, OSV (under both the GHSA and the CVE ID), PyPI's own vulnerability data and NVD all carry CVE-2026-137189, as of 2026-11-30. GHSA-rvjm-7hvp-f868 has no CVE and is in none of them
- Checked
- 2026-12-01 ~06:40 UTC
- Next review
- 2026-12-08
What happened
The project's advisory for GHSA-f8rf-rcrx-h6r9 says the fix for an earlier record (CVE-2026-77359/GHSA-9x8x-crjq-g64h) added a check that a request's Host header names localhost, 127.0.0.1 or ::1 before letting it reach three management routes: /api/connect, /api/stop and /api/healthz. That check read the parsed URL built from the client-supplied Host header, not the real network connection, so one request with Host: localhost passed it regardless of where it actually came from. Fixed in 2.1.3, which added a check of the real TCP peer address alongside it. GHSA-f8rf-rcrx-h6r9 was a repository-only record from 2026-09-01, with no CVE and no score, until 2026-11-30, when GitHub's global advisory database picked it up with CVE-2026-137189 and a CVSS 4.0 score of 9.3.
Who is affected
jupyter-mcp-server before 2.1.3, run with --transport streamable-http: the advisory's own proof of concept starts the server with --insecure-mcp-noauth --transport streamable-http, and the CLI's own help text says the default transport is stdio, which does not open this listener. In --insecure-mcp-noauth mode, a passing request could replace the server's active Jupyter backend through /api/connect. With --mcp-token set, /api/connect and /api/stop still required a valid bearer token after the Host check passed; only /api/healthz was reachable through the spoof in that mode.
Am I affected?
The version is the check.
pip show jupyter-mcp-server
Read Version:. 2.1.3 or later, including the current 2.2.6: fixed for this record. Earlier than 2.1.3: affected. No such distribution, or the command is not found: jupyter-mcp-server is not installed in that interpreter; check the virtual environment or container the server actually runs in, for example docker exec YOUR-CONTAINER pip show jupyter-mcp-server.
The fix does not depend on how the listener is reached, but reachability does. Until 2.2.2 (2026-09-21), the streamable-http listener bound 0.0.0.0, every network interface, by default, whatever version was running. From 2.2.3 (2026-09-26), a pip or source install defaults to loopback (127.0.0.1) unless --host or the HOST environment variable says otherwise. The project's own Dockerfile sets HOST=0.0.0.0, and still does in the image behind the current 2.2.6 and latest tags, so the official image stays open to the network by default regardless of the package version inside it.
docker exec YOUR-CONTAINER env | grep ^HOST=
No HOST line, or HOST=0.0.0.0: bound to every interface the container has. HOST=127.0.0.1: bound to loopback only, not reached by a published port in Docker's ordinary bridge networking. Its commit says why: "Docker forwards a published port to the container's eth0 address, not to its loopback, so the documented -p 4040:4040 recipe accepted nothing," and "the --network=host recipe was unaffected." So --network=host, or a setup sharing the network namespace with the host or another container, is the exception: there, a loopback bind still receives outside traffic.
A refusal from outside proves nothing. A fixed version's management routes also return a 421 to a request whose Host header or real network origin is not local, so a blocked probe from outside looks the same whether the install is fixed or not. The version is what tells you.
Fix, and what the upgrade does not do
Upgrade to 2.1.3 or later; the current release is 2.2.6. The GitHub release notes of 2.1.3 list two unrelated pull requests and do not name this fix by title; the fix commit (5db55d55) is in that release's commit range all the same.
Upgrading the package does not change HOST=0.0.0.0 in the official Docker image: pass -e HOST=127.0.0.1, and keep the published port off a public interface, if you want the container itself off the network too. A pip or source install made before 2.2.3 that relied on the old default to accept connections from other hosts, with no --host or HOST ever set, stops accepting them once you upgrade, unless you now pass --host 0.0.0.0 (or set HOST=0.0.0.0) yourself. Upgrading also does not undo a configuration change a forged request already made before you patched: if --insecure-mcp-noauth ran reachable from any network on a version before 2.1.3, check the server's configured code_sandbox_url and document_url for a value you did not set, and review which kernels it started.
GHSA-rvjm-7hvp-f868, open since 2026-11-17 with no CVE and no patched version, is a separate record; upgrading for GHSA-f8rf-rcrx-h6r9 does not fix it.
Sources
Primary records first. Record identifiers link from the facts box. Opened 2026-12-01 between 06:05 and 06:40 UTC. GitHub advisory data: CC BY 4.0.
Records and release notes
- GitHub global advisory API, GHSA-f8rf-rcrx-h6r9, accessed 2026-12-01
- Repository advisory API, GHSA-f8rf-rcrx-h6r9, datalayer/jupyter-mcp-server, accessed 2026-12-01
- Repository advisory API, GHSA-rvjm-7hvp-f868, datalayer/jupyter-mcp-server, accessed 2026-12-01
- CVE record CVE-2026-137189, CVE program API, accessed 2026-12-01
- NVD, CVE-2026-137189, secondary, accessed 2026-12-01
- OSV, GHSA-f8rf-rcrx-h6r9 and CVE-2026-137189, accessed 2026-12-01
- CISA Known Exploited Vulnerabilities catalog, JSON feed, catalog 2026.11.30, accessed 2026-12-01
- PyPI JSON API, jupyter-mcp-server, accessed 2026-12-01
- jupyter-mcp-server git, fix commit 5db55d551f929a19b2acb6248385fc87383b419b, accessed 2026-12-01
- jupyter-mcp-server git, release notes of v2.1.3, accessed 2026-12-01
- jupyter-mcp-server git, release notes of v2.2.3 (bind-address default changed to loopback), accessed 2026-12-01
- jupyter-mcp-server git, server.py, utils.py, cli/commands/serve.py and Dockerfile at v2.2.6 (current release), accessed 2026-12-01
- Docker Hub API, datalayer/jupyter-mcp-server tags, accessed 2026-12-01
Corrections
No corrections.
Report an error to contact@arviser.com.
How this page was made: Claude Opus 5.5, an AI model, wrote this note from the sources listed. A separate AI agent checked it against the sources. Vadim Nareyko approved the template on 27 November and did not review this note before publication.
Text and data on this page: CC BY 4.0. Quoted third-party material keeps its own terms.