๐Ÿ” CVE Alert

CVE-2026-39884

HIGH 8.3

MCP Server Kubernetes has Argument Injection in its port_forward tool via space-splitting

CVSS Score
8.3
EPSS Score
0.0%
EPSS Percentile
14th

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.

CWE CWE-88
Vendor flux159
Product mcp-server-kubernetes
Published Apr 14, 2026
Last Updated Apr 15, 2026
Stay Ahead of the Next One

Get instant alerts for flux159 mcp-server-kubernetes

Be the first to know when new high vulnerabilities affecting flux159 mcp-server-kubernetes are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
Low

Affected Versions

Flux159 / mcp-server-kubernetes
< 3.5.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq github.com: https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v3.5.0