Skip to main content
VulnerabilityPublished Updated

CVE-2026-39884: MCP Server Kubernetes Has Argument Injection

Affects mcp-server-kubernetesSource GCVE Database

0
Compare
Authoritative record:CVE-2026-39884· High 8.3

Not known to be exploited · CVSS 8.3 High : upgrade to 3.5.0 soon.

Data as of 30 Oct 2026, 07:30 UTC

CVSS 3.1 base score
8.3High
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewmcp-server-kubernetespkg:brew/mcp-server-kubernetesOther threatsAffected
  • >=2.9.1 <3.5.0
Fixed in
  • 3.5.0

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

Community reviews

Loading reviews…