Differential lab reproducing CVE-2026-130007: unauthenticated MCP tools/call over k8s-mcp-server's SSE transport, with pinned vulnerable and patched builds as controls.
Differential lab for GHSA-m932-63jc-4jqq
/ CVE-2026-130007: k8s-mcp-server
<= 1.0.25 runs its default SSE transport on 0.0.0.0:8080 with no authentication,
no session-token validation and no Origin check. GET /sse mints a correlation
sessionId for anyone; POST /message?sessionId=... dispatches MCP tools/call
requests with the server's Kubernetes cluster privileges. Read-only mode is off by
default, so the registered tool set includes deleteResource, helmUninstall,
rolloutRestart and friends. CWE-306. CVSS 4.0 7.9
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H. Patched in 1.1.0.
RESULT vuln-build pass k8s-mcp-server v1.0.25 commit=64421d06eb05
RESULT fixed-build pass k8s-mcp-server v1.1.0 commit=3e4f918103ed
RESULT vuln-bind pass LISTEN *:18099 - all interfaces, no auth option exists
RESULT vuln/sse-noauth pass GET /sse 200, sessionId minted with zero auth headers
RESULT vuln/initialize pass POST /message HTTP 202
RESULT vuln/tools-list pass POST /message HTTP 202
RESULT vuln/origin-ignored pass POST with Origin: https://evil.example HTTP 202
RESULT vuln/write-tools pass 22 tools enumerated, write tools: createResource, createResourceYAML, deleteResource, helmInstall, helmRollback, helmUninstall, helmUpgrade, rolloutRestart
RESULT vuln/tools-call pass handler executed: in-handler cluster error 'dial tcp 127.0.0.1:1 connection refused' - RPC passed every gate
RESULT fixed-failclosed pass refuses to start: 'MCP_AUTH_TOKEN must contain at least 32 characters for HTTP transports'
RESULT fixed-401 pass GET /sse HTTP 401 (unauthorized), POST /message HTTP 401
SUCCESS CVE-2026-130007 k8s-mcp-server missing-auth-on-sse unauthenticated tools/call dispatched to the Kubernetes tool handler on the vulnerable build; the patched build fails closed without a token and answers 401 without one
Recorded on macOS arm64, Go 1.27.4, Python 3.14. No Docker, no cluster.
tools/call getAPIResources against a dummy non-routable cluster
(KUBERNETES_SERVER=https://127.0.0.1:1) returns HTTP 202 and then, over the SSE
stream, the JSON-RPC error failed to retrieve API resources: Get "https://127.0.0.1:1/api"...: dial tcp 127.0.0.1:1: connect: connection refused.
That error text is the proof. An authentication gate answers 401/403 at the HTTP layer before the handler runs. A dispatched RPC reaches the tool handler, which then fails on its own cluster connection - which is exactly what the lab observes. The RPC passed every gate the server has. With a live kubeconfig, the same request returns real cluster data; the lab never connects to one.
v1.0.25,
v1.1.0), verifying each tag's commit before compiling. Binary identity is
re-checked at runtime via go version -m.LISTEN *:PORT), then drives a complete MCP session over the wire
with zero credentials and a hostile Origin header: initialize,
notifications/initialized, tools/list, tools/call.MCP_AUTH_TOKEN refuses to
start in HTTP mode at all (fail closed), and 1.1.0 with a token answers
401 Unauthorized (WWW-Authenticate: Bearer) to unauthenticated requests.python3 cve-2026-130007-k8smcp-sse-noauth-Abraxas-Labs.py
or directly:
cd lab && ./run.sh
Requires Go (brew install go), git, curl, lsof. The first run clones the
upstream repository and compiles both versions (about a minute). The cluster target
is always the non-routable https://127.0.0.1:1; nothing is sent to any cluster.
Upgrade to 1.1.0, which requires MCP_AUTH_TOKEN (32+ characters) for HTTP
transports, validates Origin, binds to 127.0.0.1 by default and defaults to
stdio. If you cannot upgrade: firewall the port, run stdio mode, or put an
authenticating proxy in front. Turn on read-only mode if you do not need write
operations.