VDB
KO
CRITICAL 9.8

GHSA-wmg3-h8mf-wgvr

mcp-server-kubernetes argument injection can expose Kubernetes cluster credentials

Quick fix

GHSA-wmg3-h8mf-wgvr — mcp-server-kubernetes: upgrade to the fixed version with the command below.

pip install --upgrade 'mcp-server-kubernetes>=3.9.0'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / mcp-server-kubernetes
Introduced in: 0 Fixed in: 3.9.0
Fix pip install --upgrade 'mcp-server-kubernetes>=3.9.0'

References