CVE-2026-134817
CVE-2026-134817 · mcp-server-kubernetes before 4.2.0 Argument Injection via Flag-Shaped Positional Operands
CVSS 7.1 · High · EPSS 0.4% · Public exploit · Fix available
Compare with your installed version
Affected products and known fixed versions are public information. Compare them with your installed version.
- mcp-server-kubernetesUpdate to 4.2.0
Assess your server’s risks
The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.
Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.
curl -fsSL https://patchfirst.dev/check.sh | shChannels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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 exec_in_pod, kubectl_patch, and kubectl_logs. 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.
- Published
- Updated
Affected products and versions
mcp-server-kubernetes
- Versions
- ≥ 0, < 4.2.0: Affected (semver)
Update to 4.2.0
Original sources
- https://github.com/Flux159/mcp-server-kubernetes/pull/390
- https://github.com/Flux159/mcp-server-kubernetes/commit/588d4949b0233974c3966a7d24d532be11e56d0d
- https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v4.2.0
- https://github.com/Flux159/mcp-server-kubernetes/blob/v4.1.9/src/tools/exec_in_pod.ts#L105
- https://www.vulncheck.com/advisories/mcp-server-kubernetes-before-4.2.0-argument-injection-via-flag-shaped-positional-operands
- https://nvd.nist.gov/vuln/detail/CVE-2026-134817