The mcp-server-kubernetes package contains a vulnerability in its exec_in_pod tool where user-supplied string commands are executed via a shell without input validation. This allows shell metacharacters to be interpreted, enabling command injection. The flaw can be exploited directly by users with access or indirectly through prompt injection attacks involving AI agents. A fix is available in version 2.9.8.