Cyber Posture

CVE-2026-39884

High

Published: 15 April 2026

Published
15 April 2026
Modified
23 April 2026
KEV Added
Patch
CVSS Score 8.3 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
EPSS Score 0.0004 11.7th percentile
Risk Priority 17 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2026-39884 is a high-severity Argument Injection (CWE-88) vulnerability in Suyogs Mcp-Server-Kubernetes. Its CVSS base score is 8.3 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked at the 11.7th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

This vulnerability is AI-related — categorised as AI Agent Protocols and Integrations; in the LLM/Generative AI Risks risk domain.

The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).

Threat & Defense at a Glance

What attackers do: exploitation maps to Exploit Public-Facing Application (T1190) and 1 other technique. What defenders deploy: see the NIST 800-53 controls recommended below.
Threat & Defense Details

Mitigating Controls (NIST 800-53 r5)AI

prevent

Directly prevents argument injection by requiring validation of user-controlled inputs (namespace, resourceType, resourceName, ports) before constructing and executing kubectl commands.

prevent

Ensures timely patching of the specific flaw in port_forward.ts fixed in version 3.5.0, eliminating the vulnerable string concatenation and spawn() usage.

prevent

Limits damage from injected kubectl flags (e.g., service exposure or cross-namespace attacks) by enforcing least privilege on low-privileged (PR:L) accounts running the mcp-server.

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1059.004 Unix Shell Execution
Adversaries may abuse Unix shell commands and scripts for execution.
Why these techniques?

Argument injection into kubectl command construction via string concatenation and space splitting directly enables remote exploitation of the public-facing MCP server (T1190) and Unix shell command execution through injected arguments (T1059.004).

Confidence: HIGH · MITRE ATT&CK Enterprise v18.1

NVD 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…

more

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.

Deeper analysisAI

CVE-2026-39884 is an argument injection vulnerability affecting mcp-server-kubernetes, a Model Context Protocol server for Kubernetes cluster management. Versions 3.4.0 and prior are vulnerable in the port_forward tool located at src/tools/port_forward.ts, where a kubectl command is constructed through string concatenation with user-controlled input from fields such as namespace, resourceType, resourceName, localPort, and targetPort. This input is then split on spaces before being passed to spawn(), unlike other tools in the codebase that properly use array-based argument passing with execFileSync(). The flaw, classified under CWE-88, carries a CVSS v3.1 base score of 8.3 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L).

An attacker with low privileges (PR:L) can exploit this over the network with low complexity by injecting arbitrary kubectl flags through spaces in the controlled fields. This allows exposure of internal Kubernetes services to the network via flags like --address=0.0.0.0, cross-namespace targeting by injecting additional -n flags, and indirect exploitation through prompt injection against AI agents connected to the MCP server.

The issue has been addressed in version 3.5.0, as detailed in the project's GitHub release notes and security advisory GHSA-4xqg-gf5c-ghwq, which recommend upgrading to the patched version for mitigation.

Notably, the vulnerability has relevance to AI/ML environments due to its potential for prompt injection attacks targeting AI agents interacting with the MCP server, though no real-world exploitation has been reported.

Details

CWE(s)

Affected Products

suyogs
mcp-server-kubernetes
≤ 3.5.0

AI Security AnalysisAI

AI Category
AI Agent Protocols and Integrations
Risk Domain
LLM/Generative AI Risks
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Matched keywords: mcp, model context protocol, prompt injection, ai, mcp

CVEs Like This One

CVE-2025-66404Same product: Suyogs Mcp-Server-Kubernetes
CVE-2026-25134Shared CWE-88
CVE-2026-24126Shared CWE-88
CVE-2026-27947Shared CWE-88
CVE-2026-26194Shared CWE-88
CVE-2026-22582Shared CWE-88
CVE-2026-2298Shared CWE-88
CVE-2026-35585Shared CWE-88
CVE-2026-26514Shared CWE-88
CVE-2026-40938Shared CWE-88

References