News · Kubeshark · 2 min read
Event date: · Published:
Kubeshark patches MCP server flaws letting AI agents trigger full Kubernetes cluster takeover
GitHub published two advisories for Kubeshark's MCP server on November 16, 2026, covering a path validation flaw and a high severity argument injection bug that can lead to full Kubernetes cluster compromise.
GitHub published two security advisories on November 16, 2026, detailing vulnerabilities in the Model Context Protocol (MCP) server built by Kubeshark, a Kubernetes observability tool. The flaws let an attacker redirect a privileged Kubeshark component to a malicious container image, potentially compromising an entire Kubernetes cluster from a single injected tool argument, according to GitHub's GHSA-8vf2-hxg5-crqh advisory.
What the advisories disclose
- GitHub published both advisories within about ten minutes of each other, at 22:17:32 UTC and 22:18:58 UTC on November 16, 2026, as a coordinated disclosure.
- GHSA-8vf2-hxg5-crqh (CVE-2026-129236, High, CVSS v3.1 7.2): the
start_kubesharktool does not bound itspod_regexparameter, so a value starting with--set=is parsed as a Helm flag, letting an attacker inject overrides that redirect the worker, hub and front container images to an attacker-controlled registry. - GHSA-gj7r-p794-hhq5 (CVE-2026-129235, Moderate, CVSS v3.1 5.3), detailed in the download_file advisory: the MCP
download_filetool writes fetched bytes to a caller-supplied destination path with no validation, able to overwrite files such as~/.ssh/authorized_keysor~/.kube/config. - Because Kubeshark's worker component runs as a privileged DaemonSet with host filesystem access, the image-redirect bug can escalate to full Kubernetes cluster-admin compromise when the operator runs the MCP server with the
--allow-destructiveflag. - Both vulnerabilities were reported by the same researcher, credited as novice-22 (Urim), through private coordinated disclosure.
What it means for people who build with AI
These flaws show how giving an AI agent command-building MCP tools can turn a small input-sanitization gap into a takeover of the infrastructure it runs on. A single crafted tool argument was enough to redirect container images and reach cluster-admin level access. Anyone wiring an MCP server into Kubernetes or another privileged system should audit how tool parameters reach underlying commands, and whether operator flags like --allow-destructive widen what an agent-triggered call can do.
Fix and availability
Both vulnerabilities affect the Go module github.com/kubeshark/kubeshark in pseudo-versions before v53.4.0 and are fixed in the v53.4.0 pseudo-version. The patch appends pod_regex after a literal -- separator so it is always parsed as a positional argument rather than a flag.
Sources
- Kubeshark: MCP start_kubeshark argument injection via pod_regex -> image redirect -> cluster takeover (GitHub Advisory Database, November 16, 2026, official)
- Kubeshark: MCP download_file writes fetched bytes to an unvalidated destination path (GitHub Advisory Database, November 16, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.