GHSA-4xqg-gf5c-ghwq · Severity: high · Ecosystem: npm — MCP Server Kubernetes has an Argument Injection in port_forward tool via space-splitting
mcp-server-kubernetes is a Model Context Protocol server for Kubernetes cluster management. Versions 3.4.0 and prior contain an argument injection vulnerability in the port_forward tool in src/tools/port_forward.ts, where a kubectl command is constructed via string concatenation with user-controlled input and then naively split on spaces before being passed to spawn(). Unlike all other tools in the codebase which correctly use array-based argument passing with execFileSync(), port_forward treats every space in user-controlled fields (namespace, resourceType, resourceName, localPort, targetPort) as an argument boundary, allowing an attacker to inject arbitrary kubectl flags. This enables exposure of internal Kubernetes services to the network by injecting --address=0.0.0.0, cross-namespace targeting by injecting additional -n flags, and indirect exploitation via prompt injection against AI agents connected to the MCP server. This issue has been fixed in version 3.5.0.
Conclusion & alert: CVE-2026-39884 is rated Low Risk (37.3/100): CVSS High severity, with low exploitation likelihood (EPSS 0.04%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-04-24 | 0.05% | 0.04% | -0.01% |
| 2 | 2026-04-20 | 0.05% | 0.05% | +0.01% |
| 3 | 2026-04-15 | — | 0.05% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.3 | 3.1 | HIGH |
|
2.8 | 5.5 | [email protected] |
| 8.1 | 3.1 | HIGH |
|
2.8 | 5.2 | [email protected] |
GHSA-4xqg-gf5c-ghwq · Severity: high · Ecosystem: npm — MCP Server Kubernetes has an Argument Injection in port_forward tool via space-splitting
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| suyogs | mcp-server-kubernetes | < 3.5.0 | cpe:2.3:a:suyogs:mcp-server-kubernetes:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v3.5.0 | Product Release Notes |
| https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq | Mitigation Vendor Advisory |