CVE-2026-39884: MCP Server Kubernetes Has Argument Injection
Affects mcp-server-kubernetesSource GCVE Database
Not known to be exploited · CVSS 8.3 High : upgrade to 3.5.0 soon.
Data as of 30 Oct 2026, 07:30 UTC
- Patch
- Available – fixed in 3.5.0
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 14 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade mcp-server-kubernetes to 3.5.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewmcp-server-kubernetespkg:brew/mcp-server-kubernetesOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- github.com/Flux159/mcp-server-kubernetes/releases/tag/v3.5.0 (opens in a new tab)
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/39xxx/CVE-2026-39884.json (opens in a new tab)
- github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-39884 (opens in a new tab)