Arbitrary Argument Injection Affecting mcp-server-kubernetes package, versions >=1.0.0 <3.5.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MCPSERVERKUBERNETES-16083991
  • published16 Apr 2026
  • disclosed14 Apr 2026
  • creditTharVid

Introduced: 14 Apr 2026

NewCVE-2026-39884  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade mcp-server-kubernetes to version 3.5.0 or higher.

Overview

mcp-server-kubernetes is a MCP server for interacting with Kubernetes clusters via kubectl

Affected versions of this package are vulnerable to Arbitrary Argument Injection through the startPortForward function in src/tools/port_forward.ts. An attacker can inject additional kubectl flags by supplying crafted namespace, resourceType, or resourceName values when starting a port-forward, causing the tool to run kubectl with attacker-controlled arguments. This can redirect the port-forward to unintended resources or alter kubectl behavior, leading to unauthorized access to cluster resources and disruption of the user’s port-forward session.

CVSS Base Scores

version 4.0
version 3.1