mcp-server-kubernetes argument injection can expose Kubernetes cluster credentials
PYSEC-2026-3685 · CVE-2026-61459 · GHSA-wmg3-h8mf-wgvr
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
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.
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-61459
- WEB https://github.com/Flux159/mcp-server-kubernetes/issues/328
- WEB https://github.com/Flux159/mcp-server-kubernetes/pull/329
- WEB https://github.com/Flux159/mcp-server-kubernetes/commit/d7890f50a4567bf5d9842541ba6f41e180227f9a
- PACKAGE https://github.com/Flux159/mcp-server-kubernetes
- WEB https://github.com/Flux159/mcp-server-kubernetes/releases/tag/3.9.0
- WEB https://www.vulncheck.com/advisories/mcp-server-kubernetes-argument-injection-via-kubectl-structured-tools
- PACKAGE https://pypi.org/project/mcp-server-kubernetes
- ADVISORY https://github.com/advisories/GHSA-wmg3-h8mf-wgvr
Ready to move
Start Securing
Free, no credit card | First findings in minutes