CVE-2026-47250: CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in Flux159 mcp-server-kubernetes
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-47250 in mcp-server-kubernetes (before 3.7.0) involves improper neutralization of argument delimiters (CWE-88) in the kubectl_generic tool. This tool forwards user-supplied flags directly to kubectl without validation or allowlisting. An attacker with limited cluster or codebase access can plant a structured JSON line in application logs that injects malicious flags such as --server and --insecure-skip-tls-verify. When an operator with privileged kubeconfig reads these logs via the MCP server, kubectl_generic sends API requests including the operator's Authorization Bearer token to the attacker's endpoint. The attacker can then replay this token to the Kubernetes API server, gaining the operator's full RBAC permissions. The vulnerability is fixed in version 3.7.0.
Potential Impact
An attacker with limited access (e.g., developer with pod-deployment permissions) can escalate privileges by causing an operator's kubeconfig token to be leaked to an attacker-controlled server. This token leak allows the attacker to impersonate the operator and gain full RBAC permissions on the Kubernetes cluster. The vulnerability compromises confidentiality and authorization but does not affect integrity or availability directly.
Mitigation Recommendations
This vulnerability is patched in mcp-server-kubernetes version 3.7.0. Users should upgrade to version 3.7.0 or later to remediate this issue. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor advisory stating the fix is included in version 3.7.0.
CVE-2026-47250: CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in Flux159 mcp-server-kubernetes
Description
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.
CVSS v3.1
Score 6.1medium
Affected software
pkg:github/flux159/mcp-server-kubernetesRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-47250 in mcp-server-kubernetes (before 3.7.0) involves improper neutralization of argument delimiters (CWE-88) in the kubectl_generic tool. This tool forwards user-supplied flags directly to kubectl without validation or allowlisting. An attacker with limited cluster or codebase access can plant a structured JSON line in application logs that injects malicious flags such as --server and --insecure-skip-tls-verify. When an operator with privileged kubeconfig reads these logs via the MCP server, kubectl_generic sends API requests including the operator's Authorization Bearer token to the attacker's endpoint. The attacker can then replay this token to the Kubernetes API server, gaining the operator's full RBAC permissions. The vulnerability is fixed in version 3.7.0.
Potential Impact
An attacker with limited access (e.g., developer with pod-deployment permissions) can escalate privileges by causing an operator's kubeconfig token to be leaked to an attacker-controlled server. This token leak allows the attacker to impersonate the operator and gain full RBAC permissions on the Kubernetes cluster. The vulnerability compromises confidentiality and authorization but does not affect integrity or availability directly.
Mitigation Recommendations
This vulnerability is patched in mcp-server-kubernetes version 3.7.0. Users should upgrade to version 3.7.0 or later to remediate this issue. No other official remediation or temporary fixes are documented. Patch status is confirmed by the vendor advisory stating the fix is included in version 3.7.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-18T22:54:18.273Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2b05db815e7002b81ec9fd
Added to database: 6/11/2026, 7:00:43 PM
Last enriched: 6/11/2026, 7:15:54 PM
Last updated: 6/11/2026, 8:10:16 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.