CVE-2025-65719: Open Source Kubectl MCP Server vulnerable to arbitrary code execution via user interaction with crafted HTML page
kubectl-mcp-server before 1.2.0 (npm and pip) runs an unauthenticated HTTP endpoint that passes input to a shell. A malicious web page opened in the browser of someone running the server can send commands to it and run code with the server's cluster access. Upgrade to 1.2.0.
Published May 12, 2026 · Updated Oct 27, 2026 · Analysis Nov 3, 2026
What an attacker can do
Per the OX Security research as summarized by secondary sources, the server binds an HTTP endpoint on the local machine and builds kubectl commands with Python's subprocess using shell=True. Attacker-controlled text therefore becomes shell commands (CWE-94 in the data). There is no authentication at any step.
The attack does not need network access to the developer's machine. The victim only has to visit a malicious site while the server is running. The page's browser-side request reaches the localhost endpoint with a crafted payload; DNS rebinding is named as another route. The sources do not explain how same-origin policy or CORS was bypassed, and I could not read the OX Security posts, which returned 403.
The server holds the user's kubeconfig access, so command execution means the attacker acts with that user's cluster rights, and also runs shell commands on the workstation: reading files, SSH keys and cloud credentials. The CVSS vector lists no user interaction, but the description says a page visit is needed. One summary says the maintainers see the tool as a local application; the fix came in version 1.2.0 anyway.
Who is affected
Affected: kubectl-mcp-server before 1.2.0, in both the npm and pip packages. The advisory text names v1.1.1. Only machines where the server is running (an HTTP-capable mode) are exposed while it runs. Check the installed version:
pip show kubectl-mcp-server
npm ls -g kubectl-mcp-serverkubectl-mcp-server
- Ecosystem
- npm
- Affected
- < 1.2.0
- Fixed in
- 1.2.0
- Check
npm ls kubectl-mcp-server
kubectl-mcp-server
- Ecosystem
- PyPI
- Affected
- < 1.2.0
- Fixed in
- 1.2.0
- Check
pip show kubectl-mcp-server
How to fix it
Upgrade to kubectl-mcp-server 1.2.0 in either ecosystem:
pip install --upgrade kubectl-mcp-server
npm install -g [email protected]A secondary source says the fix shipped in January 2026. Until you upgrade, stop the server when you browse untrusted sites, and do not expose it on a network address. The OX Security guidance also advises deny-by-default tool execution, an allowlist of approved tools, and a manual approval step for tools that start subprocesses.
How to tell if you were hit
Look for unexpected child processes spawned by the kubectl-mcp-server process, such as sh -c with commands other than kubectl. Review shell history, outbound connections from the workstation, and Kubernetes audit logs for actions by your kubeconfig identity that you did not run, such as secret reads or new pods and role bindings. Browser history showing unknown sites visited while the server ran is a lead. The sources give no log signature.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
An issue in Open Source Kubectl MCP Server v1.1.1 allows attackers to execute arbitrary code on a victim system via user interaction with a crafted HTML page.
Credited to vinodkone.
Questions
- Does CVE-2025-65719 require user interaction?
The CVSS vector says none, but the description says the victim interacts with a crafted HTML page. In practice, the user visits a malicious site while the server is running.
- Is it exploited in the wild?
No source says so, and the entry has no KEV flag. The weakness was disclosed publicly by OX Security with a working attack description.
- Which version fixes it?
kubectl-mcp-server 1.2.0, for both npm and pip. Versions before 1.2.0 are listed as vulnerable.
References
Read for this analysis:
- https://github.com/advisories/GHSA-94gr-w3q5-rfqr
- https://policylayer.com/mcp-incidents/ox-security-kubectl-mcp-archon-os-rce-cve-2025-65719
- https://nvd.nist.gov/vuln/detail/CVE-2025-65719
- https://www.ox.security/blog/cve-2025-65719-critical-rce-in-kubectl-mcp-server
- https://www.ox.security/blog/kubectl-mcp-server-remote-code-execution
- https://github.com/pypa/advisory-database/tree/main/vulns/kubectl-mcp-server/PYSEC-2026-371.yaml
- https://pypi.org/project/kubectl-mcp-server
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Other MCP servers and tools vulnerabilities
All Other MCP servers and tools entriesCVE-2026-102943
Dagu MCP DAG specification read bypasses path containment and workspace isolation
medium6.5Nov 10, 2026CVE-2026-102610
fast-agent: `fast-agent serve` binds HTTP to 0.0.0.0 with no authentication by default; with --shell this is unauthenticated remote command execution
medium6.4Nov 9, 2026CVE-2026-63655
tsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS
high7.5Nov 9, 2026CVE-2026-76892
tsParticles: Malformed JSON requests can terminate the @tsparticles/mcp-server HTTP process
high8.7Nov 9, 2026CVE-2026-76893
tsParticles: A single anonymous MCP session can monopolize HTTP mode and deny new clients
medium6.9Nov 9, 2026CVE-2026-77604
Code Graph RAG: MCP paginated read_file path traversal / arbitrary file read
high7.5Nov 9, 2026
