CVE-2026-61459: MCP Server Kubernetes flag injection in kubectl tools can send the cluster bearer token to an attacker server (fixed 3.9.0)
MCP Server Kubernetes before 3.9.0 contains an argument injection vulnerability in structured tools (kubectl_get, kubectl_describe, kubectl_delete) that allows attackers to bypass the assertNoDangerousFlags security check by supplying resourceType and name parameters with leading dashes.
What it is
MCP Server Kubernetes before 3.9.0 contains an argument injection vulnerability in structured tools (kubectl_get, kubectl_describe, kubectl_delete) that allows attackers to bypass the assertNoDangerousFlags security check by supplying resourceType and name parameters with leading dashes. Attackers can inject the --server flag to redirect kubectl commands to an attacker-controlled API server, causing the operator's bearer token to be transmitted externally and enabling full cluster compromise.
How to check
- Affected: mcp-server-kubernetes (npm) < 3.9.0.
- Compare your installed version with the range above (command below).
How to fix
- Upgrade mcp-server-kubernetes to 3.9.0 or later (4.2.0+ also fixes CVE-2026-134817).
npm ls mcp-server-kubernetes Sources
- highCVE-2026-102735: mcp-server-kubernetes's SSE transport did not check the Host header, leaving it open to DNS rebinding from a malicious website (fixed 4.0.8)
- highCVE-2026-134817: mcp-server-kubernetes let MCP clients pass dash-prefixed names like --filename=<path> to kubectl through tools such as exec_in_pod, kubectl_patch and kubectl_logs, reading files from the server host (fixed 4.2.0)