CVE-2026-39884

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:suyogs:mcp-server-kubernetes:*:*:*:*:*:node.js:*:*

History

23 Apr 2026, 17:22

Type Values Removed Values Added
CPE cpe:2.3:a:suyogs:mcp-server-kubernetes:*:*:*:*:*:node.js:*:*
First Time Suyogs
Suyogs mcp-server-kubernetes
References () https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v3.5.0 - () https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v3.5.0 - Product, Release Notes
References () https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq - () https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq - Mitigation, Vendor Advisory

15 Apr 2026, 17:17

Type Values Removed Values Added
References () https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq - () https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq -

15 Apr 2026, 04:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-15 04:17

Updated : 2026-04-23 17:22


NVD link : CVE-2026-39884

Mitre link : CVE-2026-39884

CVE.ORG link : CVE-2026-39884


JSON object : View

Products Affected

suyogs

  • mcp-server-kubernetes
CWE
CWE-88

Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')