mcp-server-kubernetes before 4.2.0 allows kubectl flag injection through operands (CVE-2026-134817)
Summary
mcp-server-kubernetes before 4.2.0 passed some caller values into kubectl positional arguments without checking for a leading dash. Remote MCP clients connected over SSE or Streamable HTTP could supply values such as --filename, which kubectl treats as a flag, to read files from the server host. The CVSS vectors in the GitHub advisory include PR:L, meaning low privileges are required; the sources do not say what access that involves. Version 4.2.0 adds flag-shaped operand checks to the remaining tools and other argument hardening.
Severity
Timeline
The fix adding flag-shaped operand checks to the remaining kubectl tools was merged into main.
VulnCheck dated its advisory for the issue.
The GitHub advisory GHSA-8v48-c263-r637 was published.
How it happened
Tools such as exec_in_pod, kubectl_patch and kubectl_logs placed caller values into positional kubectl arguments. A dash-prefixed value was then parsed as a kubectl flag. Per the advisories, a client on SSE or Streamable HTTP transport could use --filename to make kubectl read files from the server host, bypassing file-read restrictions. The CVSS vector in the GitHub advisory lists PR:L, so low privileges are a stated prerequisite; the sources do not describe how they are obtained. An earlier change had already added the check to kubectl_get, kubectl_describe, kubectl_delete, kubectl_scale and kubectl_generic.
How to check your app
- all affected versions: Check whether the installed mcp-server-kubernetes version is earlier than 4.2.0.
- all affected versions: Before 4.2.0: Check whether the server accepts remote MCP clients over SSE or Streamable HTTP transport.
- all affected versions: Before 4.2.0: Check which remote clients can reach the server with low privileges, the prerequisite (PR:L) in the CVSS vectors. The sources do not say how those privileges are granted.
Sources
Corrections and updates
Cite this entry
- Title
- mcp-server-kubernetes before 4.2.0 allows kubectl flag injection through operands (CVE-2026-134817)
- Added
- Nov 23, 2026
- URL
- https://vibeincidents.com/incidents/mcp-server-kubernetes-cve-2026-134817/
- Suggested citation
VibeIncidents. "mcp-server-kubernetes before 4.2.0 allows kubectl flag injection through operands (CVE-2026-134817)." Nov 23, 2026. https://vibeincidents.com/incidents/mcp-server-kubernetes-cve-2026-134817/