CRITICAL 9.8 PyPI

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes