← All advisories
CVE-2026-129235mediumAgent hijacking2026-11-16

CVE-2026-129235: Kubeshark's MCP download_file tool wrote to any path the agent chose, and could pull captured traffic from auth-less Hubs (fixed 53.4.0)

Kubeshark, an eBPF network-observability tool for Kubernetes, ships a local stdio MCP server (kubeshark mcp). From 53.1.0 until 53.4.0 its download_file tool took a caller-supplied Hub API path and local dest and wrote the response with os.Create(dest) without any confinement. Indirect prompt injection against an agent driving kubeshark mcp could therefore write Hub-supplied bytes to ~/.ssh/authorized_keys, ~/.kube/config or ~/.bashrc, and fetch any Hub endpoint, including captured-traffic exports on default auth-disabled Hubs. The tool is registered even without --allow-destructive. Fixed in 53.4.0; Hub authentication is still off by default.

01.

What it is

callDownloadFile in cmd/mcpRunner.go passed dest straight to os.Create and appended path to the Hub API base URL with no allowlist (introduced in commit eb7dc42b, first released in v53.1.0).

The reporter (novice-22 / Urim) used export_snapshot_pcap then download_file to retrieve a captured PCAP and recover a planted Authorization: Bearer credential, and showed writes to arbitrary local paths. Reliable code execution wasn't demonstrated because the content is limited to what the Hub returns.

53.4.0 (commit a76a1920, PR #1957) confines dest to a base directory (CWD or KUBESHARK_MCP_DOWNLOAD_DIR), rejects .. in path, re-checks after resolving symlinks and opens with O_NOFOLLOW. GitHub published the advisory on 13 August 2026; NVD on 16 November 2026.

02.

How to check

  1. Run kubeshark version; 53.1.0 up to 53.3.x is affected if you've added kubeshark mcp to an AI agent or IDE.
  2. Check whether your Hub has authentication enabled (AUTH_ENABLED); if not, anything that reaches the Hub API can read captured traffic.
03.

How to fix

  1. Upgrade the kubeshark CLI to 53.4.0 or later.
  2. Run kubeshark mcp as an unprivileged user in an isolated working directory and don't let the same agent session read untrusted content.
  3. Enable Hub authentication so captured traffic (tokens, credentials, PII) isn't readable without login.
kubeshark version
grep -rn 'kubeshark' ~/.cursor/mcp.json ~/.claude.json ~/Library/Application\ Support/Claude/claude_desktop_config.json 2>/dev/null
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.