Rightshold™ Sign up
Open betalive and open to everyoneEvidence Delivery$99 / 30 days · Offers are open — review the exact terms and the payment options shown on the service page before accepting.No token, everany ‘Rightshold token’ is not ours

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.

  1. 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.
  2. 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.
  3. 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.
  4. For browser-based clients, list their exact origins in MCP_ALLOWED_ORIGINS (comma-separated). Requests carrying any other Origin get 403.
  5. 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.
  6. 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.
  7. 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.

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.

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.

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.”

One-click setup

{
  "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
  }
}

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?

Related

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}}'