CVE-2025-59376: mcp-kubernetes-server has a Command Injection vulnerability
mcp-kubernetes-server through 0.1.11 does not enforce its --disable-write and --disable-delete protections when commands are chained. A caller can pair a read-only kubectl command with a delete or scale command and change the cluster. No patched release exists. Use --disable-kubectl or an allow-list proxy.
Published Sep 15, 2025 · Updated Sep 25, 2025 · Analysis Nov 1, 2026
What an attacker can do
The read-only switches are meant to keep an AI client from changing a cluster. The server decides whether an operation is a write or delete by looking at the first token only. A command such as kubectl version; kubectl delete pod NAME passes the check because it starts with a read-like call, and the shell then runs both parts.
The public write-up shows the same pattern against servers started with --disable-delete (a forced pod delete) and --disable-write (a deployment scale), sent as a tool call to the streamable HTTP endpoint.
Any party that can call the server, including an LLM client steered by prompt injection from text such as pod logs, can make state-changing calls with the server kubeconfig identity. The CVSS rating here is Medium, with low integrity impact and no confidentiality impact, because this entry covers only the bypass of the write and delete limits. The same chaining is also the root of the arbitrary command execution tracked in CVE-2025-59377, which gives more than cluster changes.
Who is affected
Affected: mcp-kubernetes-server through 0.1.11 from PyPI. It matters when you rely on --disable-write or --disable-delete to keep the server read-only. Check the version:
pip show mcp-kubernetes-serverCheck how the process is launched, and which service account or kubeconfig it uses, to see what a bypass could change.
mcp-kubernetes-server
- Ecosystem
- PyPI
- Affected
- <= 0.1.11
- Fixed in
- No patched version yet
- Check
pip show mcp-kubernetes-server
How to fix it
The advisory says no patched release is available. Its mitigations are to start the server with --disable-kubectl and/or --disable-helm, which blocks those execution paths completely, and to put the server behind an allow-list proxy that limits the permitted subcommands.
In addition, give the kubeconfig or service account a read-only RBAC role, so that a chained write is refused by the cluster itself. That limits the damage whatever the tool does. Watch the project repository for a fixed release.
How to tell if you were hit
In Kubernetes audit logs, look for delete, scale or patch requests from the service account the MCP server uses, at times when the server was configured read-only. In MCP or HTTP logs, look for kubectl commands that contain a semicolon, &&, | or backticks. Beam records agent shell commands and MCP tool calls, and its rules can flag chained kubectl commands.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
mcp-kubernetes-server does not correctly enforce the --disable-write / --disable-delete protections when commands are chained. The server only inspects the first token to decide whether an operation is write/delete, which allows a read-like command to be followed by a write action using shell metacharacters (e.g., kubectl version; kubectl delete pod <name>). A remote attacker who can invoke the server may therefore bypass the intended write/delete restrictions and perform state-changing operations against the Kubernetes cluster.
Affected versions: through 0.1.11 (no patched release available as of now).
Mitigations:
- Run with
--disable-kubectland/or--disable-helmto fully block those execution paths. - Put the server behind an allow-list proxy restricting allowed subcommands.
Credited to cai0duque.
Questions
- Is there a patched version?
No. The advisory states there is no patched release as of its writing and lists versions through 0.1.11 as affected.
- How is this different from CVE-2025-59377?
This entry covers the bypass of write and delete restrictions through chaining, rated Medium. CVE-2025-59377 covers arbitrary OS command execution through shell=True, rated Critical. Both come from the same unsafe command handling.
- What blocks the attack?
The advisory recommends running with --disable-kubectl and/or --disable-helm, or placing an allow-list proxy in front of the server that restricts subcommands.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-102943
Dagu MCP DAG specification read bypasses path containment and workspace isolation
medium6.5Nov 10, 2026CVE-2026-102610
fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026
