Skip to main content
VulnerabilityPublished

CVE-2026-39884: Flux159 mcp-server-kubernetes · Argument Injection

Affects Flux159 mcp-server-kubernetesSource CVE Database V5

0
Compare

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

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
8.3High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 17% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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 30 Oct 2026.

What to do

Upgrade mcp-server-kubernetes and flux159/mcp-server-kubernetes to 3.5.0.

Affected software

ProductAffectedFixed in
Flux159mcp-server-kubernetesAffected
  • <3.5.0
Fixed in
  • 3.5.0
GitHubflux159/mcp-server-kubernetespkg:github/flux159/mcp-server-kubernetesOther threatsAffected
  • <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.

AI-suggested

A fix for this vulnerability is available in mcp-server-kubernetes version 3.5.0. Users should upgrade to version 3.5.0 or later to remediate this issue. Patch status is not explicitly stated beyond the fix in 3.5.0, so users should refer to the vendor's official release notes or advisories for confirmation and detailed upgrade instructions.

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…