NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Other MCP servers and tools

CVE-2025-65719: Open Source Kubectl MCP Server vulnerable to arbitrary code execution via user interaction with crafted HTML page

criticalCVSS 3.1 9.8GHSA-94gr-w3q5-rfqr

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-server

kubectl-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

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 entries