# CVE-2026-134817: mcp-server-kubernetes before 4.2.0 Argument Injection via Flag-Shaped Positional Operands

Source: https://aplosec.si/cve/CVE-2026-134817/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-134817

High 7.1 · Reported · Fixed in 4.2.0 · CWE-88 · npm

# mcp-server-kubernetes before 4.2.0 Argument Injection via Flag-Shaped Positional Operands

CVE-2026-134817 · published 2026-11-22

In plain words: this type of bug lets someone run their own commands on the server (command injection). A fixed release is listed.

## Summary

CVE-2026-134817 affects mcp-server-kubernetes (npm) < 4.2.0: Argument Injection via Flag-Shaped Positional Operands (CWE-88). Fixed in 4.2.0. CVSS 4.0 base score 7.1 (High), assigned by VulnCheck. Published 2026-11-22 by VulnCheck. Credit: Zachariah Mithani (AploSec).

mcp-server-kubernetes before 4.2.0 contains an argument injection vulnerability that allows remote MCP clients to inject kubectl flags by supplying dash-prefixed values as positional operands in tools such as exec_in_pod, kubectl_patch, and kubectl_logs. Attackers connected over SSE or Streamable HTTP transport can supply values like --filename to make kubectl read files from the server host, bypassing file-read restrictions.

## Evidence

Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.

## Remediation

Upgrade mcp-server-kubernetes to 4.2.0 or later. Releases in the affected range (< 4.2.0) are vulnerable. See the linked advisory for details on affected release lines.

## Timeline

- 2026-11-22 CVE published

## References

- [Releasehttps://github.com/Flux159/mcp-server-kubernetes/releases/tag/v4.2.0](https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v4.2.0)

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/mcp-server-kubernetes-before-4.2.0-argument-injection-via-flag-shaped-positional-operands](https://www.vulncheck.com/advisories/mcp-server-kubernetes-before-4.2.0-argument-injection-via-flag-shaped-positional-operands)

- [Fix pull requesthttps://github.com/Flux159/mcp-server-kubernetes/pull/390](https://github.com/Flux159/mcp-server-kubernetes/pull/390)

- [Fix commithttps://github.com/Flux159/mcp-server-kubernetes/commit/588d4949b0233974c3966a7d24d532be11e56d0d](https://github.com/Flux159/mcp-server-kubernetes/commit/588d4949b0233974c3966a7d24d532be11e56d0d)

- [Vulnerable codehttps://github.com/Flux159/mcp-server-kubernetes/blob/v4.1.9/src/tools/exec_in_pod.ts#L105](https://github.com/Flux159/mcp-server-kubernetes/blob/v4.1.9/src/tools/exec_in_pod.ts#L105)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-134817](https://www.cve.org/CVERecord?id=CVE-2026-134817)

- [NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-134817](https://nvd.nist.gov/vuln/detail/CVE-2026-134817)

**Severity:** High 7.1 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-134817)

**Package:** mcp-server-kubernetes

**Ecosystem:** npm

**Affected:** < 4.2.0

**Fixed:** 4.2.0

**Weakness:** CWE-88

**CNA:** VulnCheck

**Credit:** Zachariah Mithani (AploSec) finder
