Answers · MCP security
We run k8s-mcp-server (the ginnux/k8s-mcp-server image) in SSE mode so an assistant can inspect and change our Kubernetes cluster. What is CVE-2026-130007, which version fixes it, and what do we need to set after upgrading?
Last updated
TL;DR: Before version 1.1.0, yes. CVE-2026-130007 (GHSA-m932-63jc-4jqq, high, CVSS 4.0 7.9, published November 19, 2026) affects the Go module github.com/reza-gholizade/k8s-mcp-server before 1.1.0. In SSE mode, which was the standard mode on port 8080 and listened on all interfaces, the server checked no token, session credential or Origin before running tools/call. Anyone who could reach the port could open a session, list every tool and call them with the server's own cluster permissions, including createResource, deleteResource, rolloutRestart and the Helm install, upgrade, uninstall and rollback tools unless the server was started with --read-only. A session ID was handed to any caller, so it was never a credential. Version 1.1.0 (released August 31, 2026) makes stdio the standard transport, binds SSE and streamable-http to 127.0.0.1 unless SERVER_HOST says otherwise, rejects browser origins not listed in MCP_ALLOWED_ORIGINS, and refuses to start an HTTP transport unless MCP_AUTH_TOKEN holds at least 32 characters, which every MCP request must then send as a bearer token. Upgrade, set that token, and pass it from your client.
What should I check, step by step?
1. Check what you run: the Go module and the ginnux/k8s-mcp-server image before 1.1.0 are affected. Docker Hub showed tags 1.1.0 and latest pushed August 31, 2026; a pinned 1.0.x tag or an old cached latest is still exposed.
- If you use SSE or streamable-http, set MCP_AUTH_TOKEN to a random value of at least 32 characters (the README suggests openssl rand -hex 32). Version 1.1.0 exits with "Refusing to start" when the token is missing or shorter, so an upgrade without it stops the server rather than leaving it open.
- Send Authorization: Bearer with that token from every MCP client. Apart from CORS preflight requests and /healthz, which returns no MCP data, every request without it gets 401.
- HTTP modes now listen on 127.0.0.1. In a pod behind a Service, or anywhere another machine must connect, set SERVER_HOST=0.0.0.0 on purpose, and keep the port reachable only from the clients that need it.
- For browser-based clients, list their exact origins in MCP_ALLOWED_ORIGINS (comma-separated). Requests carrying any other Origin get 403.
- Recheck copied manifests: the README's Deployment example sets SERVER_MODE=sse without MCP_AUTH_TOKEN, and its Docker section still describes SSE as the image's standard mode, while the current Dockerfile sets SERVER_MODE=stdio.
- Start with --read-only (and --no-helm if you don't need Helm) unless the assistant must change the cluster, and give the server's service account or kubeconfig only the RBAC it needs. Every tool runs with those permissions.
- If an affected version listened where untrusted hosts could reach it, review the Kubernetes audit log for actions by the server's identity that nobody asked for, and rotate the credentials it held.
What is CVE-2026-130007 in k8s-mcp-server?
GitHub's advisory GHSA-m932-63jc-4jqq (CVE-2026-130007, high, CVSS 4.0 7.9, CWE-306 missing authentication for critical functionality, published November 19, 2026) covers versions before 1.1.0. The report traces it to the SSE server being created with no authentication option and started on :8080, all interfaces, as the standard mode.
- The flow it describes: GET /sse gives any caller a session ID; POST /message with that ID accepts initialize, tools/list and tools/call with no Authorization, token, Origin or CSRF check; the only CORS header was Access-Control-Allow-Origin: *. In the reproduction, a tools/call for getAPIResources reached the handler and tried to contact the cluster. With a real kubeconfig, the advisory says, the same request returns cluster data.
- Impact as stated: an unauthenticated attacker with network reach to the port can list tools and run Kubernetes operations with the server's privileges, including state-changing ones, because write tools were registered unless --read-only was set. Because the listener was on all interfaces, that could mean any machine on the same network as a laptop running it, or any workload able to reach the pod or Service in a cluster.
How does k8s-mcp-server 1.1.0 fix CVE-2026-130007?
The fix is pull request 134, which locks down the MCP HTTP transports, merged August 19, 2026 (commit 817d810), and released as 1.1.0 on August 31, 2026. The Go module proxy and Docker Hub both list 1.1.0 from that day, months before the advisory went public.
- In the current code, SSE and streamable-http are wrapped in one handler that checks Origin first (403 if present and not allowlisted), then requires Authorization: Bearer matching MCP_AUTH_TOKEN with a constant-time comparison (401 otherwise). Startup refuses an HTTP mode when the token is under 32 characters. The listen host comes from SERVER_HOST or --host and is 127.0.0.1 unless set, and the mode comes from SERVER_MODE or --mode and is stdio unless set.
- The handler's own comment states the lesson: session IDs are routing identifiers and must never be treated as authentication credentials.
Why does an MCP server with Kubernetes access need its own authentication?
An MCP server that holds a kubeconfig or service-account token turns any request it accepts into a cluster action under that identity. Kubernetes RBAC sees the server, not the person or agent behind the request, so if the server doesn't authenticate its callers, nothing upstream does either.
- The MCP transport specification (2025-11-25) says Streamable HTTP servers must validate Origin to prevent DNS rebinding, should bind only to localhost when running locally, and should authenticate all connections. Version 1.1.0 now does all three; before it, the standard setup did none.
- Even with the fix, a bearer token proves only that the caller knows the token. Write tools still act with whatever RBAC the server has, so keep that narrow, and put a person's approval in front of deletes, rollbacks and Helm changes the assistant proposes.
How do I ask Rightshold about this (free, no key)?
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code, then ask: “Before my assistant runs deleteResource or any Helm uninstall or rollback through k8s-mcp-server, ask me to approve that exact call, with the kind, name and namespace in the request, and wait for my yes or no.”
{
"tool": "request_human_approval",
"arguments": {
"action": {
"tool": "deleteResource",
"mcp_server": "k8s-mcp-server",
"server_version": "1.1.0",
"kind": "Deployment",
"name": "<deployment name>",
"namespace": "<namespace>"
},
"summary": "Delete one Kubernetes Deployment through k8s-mcp-server",
"expires_in_minutes": 30
}
}- Needs a key for your account. It hashes the action details and returns an approval id and a one-time token for the owner. Only the account owner can decide it, with an account key; delegated agent keys are refused, so the assistant can't approve its own request. Anyone can check the signed decision free with verify_human_approval, including that the action matches what was approved.
- It doesn't check your server version, test whether the port is reachable or stop a call a client sends straight to k8s-mcp-server. It only covers calls your agent or harness routes through it first, so upgrade, set MCP_AUTH_TOKEN and narrow the server's RBAC as well.
Rightshold isn't affiliated with the k8s-mcp-server project or the Kubernetes project. It doesn't scan MCP server code, probe your cluster or check RBAC, and an approval record isn't a finding that a call is safe. Advisory details are as published in GitHub's advisory database (GHSA-m932-63jc-4jqq), the fix as described in pull request 134, the 1.1.0 release notes and the project's main.go and http_security.go, settings as described in the project's README and Dockerfile, release dates as listed by the Go module proxy and Docker Hub, and the transport rules as written in the MCP specification, all read November 21, 2026; advisories get updated, so confirm fixed versions on the linked pages.
What are the sources?
- GitHub Advisory: GHSA-m932-63jc-4jqq / CVE-2026-130007, missing authentication on k8s-mcp-server's SSE/HTTP transport
- k8s-mcp-server pull request 134: securing the MCP HTTP transports
- k8s-mcp-server release 1.1.0
- k8s-mcp-server source: http_security.go
- k8s-mcp-server README (SSE and streamable-http modes, read-only mode, Docker)
- Docker Hub: ginnux/k8s-mcp-server tags
- MCP specification 2025-11-25: Transports (Streamable HTTP security warning)
Related
- Is it safe to run an MCP server in HTTP mode without authentication?
- Can an MCP session ID or state handle be used to authenticate a user?
- Protecting a local MCP server from DNS rebinding
Not legal advice. JSON · Markdown · All answers
Get a free API key in one call
No card and no email needed. 100 free credits; the license and policy checks stay free without a key.
curl -s -X POST https://www.rightshold.com/v1/accounts/signup -H "Content-Type: application/json" -d '{"accept_terms":true}'
export RIGHTSHOLD_API_KEY=rs_... # the api_key from the reply (shown once)
curl -s https://www.rightshold.com/v1/licenses/check -H "Authorization: Bearer $RIGHTSHOLD_API_KEY" \
-H "Content-Type: application/json" -d '{"license":"MIT","intended_use":{"commercial_use":true}}'
