Summary
mcp-server-kubernetes is a Model Context Protocol (MCP) server for Kubernetes cluster management. In versions prior to 4.0.8, the SSE transport does not validate the Host header of incoming requests. This makes the server vulnerable to DNS rebinding (CWE-346, Origin Validation Error).
Per the CVSS vector (7.5, High), the attack is network-based and requires no authentication. It does require user interaction, such as visiting a malicious web page. Attack complexity is high. The attack targets instances reachable by the user, such as locally running ones.
Successful exploitation can have a high impact on confidentiality, integrity and availability. This can lead to unauthenticated compromise of the Kubernetes cluster managed by the MCP server. The vulnerability is not listed in the CISA KEV catalog, and no EPSS data is available.
Who is affected
Organizations and administrators running mcp-server-kubernetes with the SSE transport in versions prior to 4.0.8 to manage Kubernetes clusters, especially on workstations with cluster access.
What to do
- Upgrade mcp-server-kubernetes to version 4.0.8 or later.
- Inventory all mcp-server-kubernetes installations on workstations and servers, and identify their versions and whether the SSE transport is in use.
- Until the upgrade is applied, consider disabling the SSE transport. Check the official advisory GHSA-9j3p-gvw3-h8r8 for guidance first.
- Restrict the kubeconfig credentials used by the MCP server to the minimum required privileges.
- Review Kubernetes audit logs for unexpected actions performed with the MCP server's credentials.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- None (no login)
- User interaction
- Required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- High impact
Weakness type (CWE)
- CWE-346 Origin Validation Error
References
- github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-9j3p-gvw3-h8r8
- github.com/Flux159/mcp-server-kubernetes/commit/5620675c4fa16a2759aaa324c4046ae85b7b6e6d
- github.com/Flux159/mcp-server-kubernetes/releases/tag/v4.0.8
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.