Skip to content
MediumVulnerabilityLLM-specific

GHSA-6mx4-4h42-r8vh: MCP Server Kubernetes: kubectl-generic flag injection enables Kubernetes bearer token exfiltration

Published
Record updated
View JSON
Affected
  • mcp-server-kubernetes <= 3.6.2
Fixed in
3.7.0
  • released May 20, 2026, 16 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

The kubectl_generic tool in mcp-server-kubernetes passes user-supplied flags and args straight to kubectl with no allowlist. An attacker with limited access can plant a JSON log line that an AI agent follows, causing kubectl to send the operator's Authorization: Bearer token to an attacker endpoint via --server and --insecure-skip-tls-verify=true. The captured token can then be replayed against the real Kubernetes API server, granting the operator's service account RBAC permissions.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.