mcp-server-kubernetes before 4.2.0 (CVE-2026-134817): remote MCP clients can smuggle kubectl flags as positional values to read files on the server host
- Affected: mcp-server-kubernetes before 4.2.0 when exposed over SSE or Streamable HTTP transport.
- Cause: dash-prefixed operands in tools like exec_in_pod, kubectl_patch and kubectl_logs are parsed by kubectl as flags.
- The project's advisory list shows several earlier flag-injection and file-read fixes (for example GHSA-jjrr-53h8-h34w, GHSA-c257-86m4-m579), so treat any remote-transport Kubernetes MCP server as able to reach the host's files and the operator's credentials.
- Do: upgrade to 4.2.0, keep it on stdio or behind authentication, and give it a scoped kubeconfig.
Sources: GitHub Advisory Database: GHSA-8v48-c263-r637 (CVE-2026-134817, Nov 23, 2026) · mcp-server-kubernetes v4.2.0 release