CVE-2026-134817: Kubernetes MCP flaw lets clients read files

The mcp-server-kubernetes tool before version 4.2.0 contains an argument injection flaw, tracked as CVE-2026-134817, that lets a remote client inject kubectl flags and make kubectl read files from the server host. The fix is to update to version 4.2.0 or later, as of 23 November 2026.
Model Context Protocol (MCP) servers let AI agents and other clients call tools on a host, and mcp-server-kubernetes exposes Kubernetes operations such as running commands in pods, patching resources and reading pod logs. According to the CVE record published by MITRE, the tools exec_in_pod, kubectl_patch and kubectl_logs accept positional operands and pass them to kubectl without enough sanitisation. A remote MCP client connected over Server-Sent Events or Streamable HTTP transport can supply dash-prefixed values, such as --filename, which kubectl then treats as a flag instead of a resource name.
How the flaw works
Argument injection is different from ordinary command injection: the attacker does not run a shell command directly, but changes how the intended command is interpreted. Here, supplying a value like --filename makes kubectl read a file from the server host, bypassing the file-read restrictions the MCP server is meant to enforce. That can expose files on the host to a remote client that should only have been able to work with Kubernetes resources, as reported by VulDB.
The flaw is listed as High severity, with a CVSS 3.1 score of 7.1, in the cve.now listing of CVEs published on 22 November 2026, which also records the fix version as 4.2.0. No exploitation in the wild has been reported in the available sources.
What to do
Operators should update mcp-server-kubernetes to 4.2.0 or later, where the input validation has been corrected. Until then, they should restrict which clients can reach the MCP server over the network, limit the Kubernetes permissions held by the account the server runs under, and avoid exposing MCP endpoints to untrusted clients or agent inputs.
Frequently asked questions
What is CVE-2026-134817? It is an argument injection flaw in mcp-server-kubernetes before 4.2.0 that lets a remote MCP client inject kubectl flags and read files from the server host.
Which versions are affected? Versions before 4.2.0 are affected; update to 4.2.0 or later to fix it.
Does the flaw give full cluster control? The CVE record describes file reads from the server host through kubectl flag injection. It does not describe full cluster takeover on its own.