CVE-2026-61459
mcp-server-kubernetes: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CVE-2026-61459)
Affected
- pypi/mcp-server-kubernetes
0.1.0..* - pypi/mcp-server-kubernetes
0.1.1..* - pypi/mcp-server-kubernetes
0.1.2..* - pypi/mcp-server-kubernetes
0.1.3..* - pypi/mcp-server-kubernetes
0.1.6..*
Description
MCP Server Kubernetes before 3.9.0 contains an argument injection vulnerability in structured tools (kubectl_get, kubectl_describe, kubectl_delete) that allows attackers to bypass the assertNoDangerousFlags security check by supplying resourceType and name parameters with leading dashes. Attackers can inject the --server flag to redirect kubectl commands to an attacker-controlled API server, causing the operator's bearer token to be transmitted externally and enabling full cluster compromise.
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
0.1.00.1.10.1.20.1.30.1.6Metrics
Show all metrics
Weakness classes (CWE)
CWE-88Base
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.
cwe.mitre.org →
References & sources
- https://github.com/Flux159/mcp-server-kubernetes/releases/tag/3.9.0release-notes
- https://github.com/Flux159/mcp-server-kubernetes/issues/328exploittechnical-description
- https://github.com/Flux159/mcp-server-kubernetes/pull/329issue-tracking
- https://github.com/Flux159/mcp-server-kubernetes/commit/d7890f50a4567bf5d9842541ba6f41e180227f9apatch
- https://www.vulncheck.com/advisories/mcp-server-kubernetes-argument-injection-via-kubectl-structured-toolsthird-party-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-61459advisory
- https://github.com/Flux159/mcp-server-kubernetespackage
- https://pypi.org/project/mcp-server-kubernetespackage
- https://github.com/advisories/GHSA-wmg3-h8mf-wgvradvisory