What happened
Before 4.0.8 the SSE transport of mcp-server-kubernetes did not validate the Host header, allowing a DNS-rebinding attack in which a browser-reachable attacker page can call the MCP server's Kubernetes-management endpoints as if it were a trusted local client (CVSS 7.5, CWE-346, C/H/A all High).
Why it matters
An LLM agent's Kubernetes MCP tool has near-cluster-admin authority. A DNS-rebinding bypass of the transport origin check lets a web page drive those cluster-management tools without the operator noticing, enabling cluster-level actions from a browser.
Attack vector
The SSE transport does not validate the Host header of incoming requests, making it vulnerable to DNS rebinding (CWE-346). An attacker's page DNS name resolves to the MCP server on the loopback/private network after the browser has been tricked, so the agent's cluster-management MCP tools can be invoked cross-origin.
Affected systems
Flux159 mcp-server-kubernetes < 4.0.8 (fixed in 4.0.8)
Mitigation
Upgrade to v4.0.8 (advisory GHSA-9j3p-gvw3-h8r8).