Description
MCP Server Kubernetes before 3.9.0 contains an argument injection vulnerability in structured tools (kubectl_get, kubectl_describe, kubectl_delete) that allows attackers to bypass the assertNoDangerousFlags security check by supplying resourceType and name parameters with leading dashes. Attackers can inject the --server flag to redirect kubectl commands to an attacker-controlled API server, causing the operator's bearer token to be transmitted externally and enabling full cluster compromise.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Flux159 | mcp-server-kubernetes | < 3.9.0 | 3.9.0 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- mcp-server-kubernetes 3.8.x - Argument Injection EDB-52638 · remote · Aug 11, 2026
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | mcp-server-kubernetes | < 3.9.0 | 3.9.0 | GHSA-wmg3-h8mf-wgvr |
| PyPI | mcp-server-kubernetes | < 3.9.0 | 3.9.0 | PYSEC-2026-3685 |
References
- mcp-server-kubernetes 3.9.0 Release Notes release-notes
- Researcher Disclosure exploit technical-description issue-tracking
- Pull Request issue-tracking patch
- Patch Commit patch
- https://www.vulncheck.com/advisories/mcp-server-kubernetes-argument-injection-via-kubectl-structured-tools third-party-advisory