k8s-mcp-server auth bypass in SSE tool calls
reza-gholizade k8s-mcp-server
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/reza-gholizade/k8s-mcp-server Go |
|
|
Original description
k8s-mcp-server manages Kubernetes clusters through the Model Context Protocol. Prior to 1.1.0, SERVER_MODE defaults to SSE, with the listener on 0.0.0.0:8080, but main.go creates the SSE server without an authentication option or context function. The GET /sse handler creates a sessionId that is only a correlation value, and the POST /message handler accepts a loadable sessionId without an authorization or Origin check before dispatching tools/call; consequently, any client able to reach the port can enumerate and invoke registered Kubernetes tools without credentials. Read-only mode is disabled by default, leaving write-capable Kubernetes tools available to run with the server's configured cluster privileges. This issue is fixed in version 1.1.0.
From the CVE record · GitHub_M
References
- github.com/reza-gholizade/k8s-mcp-server/security/advisories/GHSA-m932-63jc-4jqq
- github.com/reza-gholizade/k8s-mcp-server/issues/131
- github.com/reza-gholizade/k8s-mcp-server/pull/134
- github.com/reza-gholizade/k8s-mcp-server/commit/817d81005369837e0c034962785851ca4dec9a76
- github.com/reza-gholizade/k8s-mcp-server/releases/tag/v1.1.0
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/130xxx/CVE-2026-130007.json
- nvd.nist.gov/vuln/detail/CVE-2026-130007
- github.com/reza-gholizade/k8s-mcp-server