CVE-2026-134817: mcp-server-kubernetes before 4.2.0 Argument Injection via Flag-Shaped Positional Operands
mcp-server-kubernetes before 4.2.0 contains an argument injection vulnerability that allows remote MCP clients to inject kubectl flags by supplying dash-prefixed values as positional operands in tools such as execinpod, kubectlpatch, and kubectllogs. Attackers connected over SSE or Streamable HTTP transport can supply values like --filename to make kubectl read files from the server host, bypassing file-read restrictions.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
mcp-server-kubernetesto a version that resolves this vulnerability.Fixed in 4.2.0