---
id: CVE-2026-134817
title: >-
  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, …
summary: >-
  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, …
severity: high
cvss: 7.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N'
cwe:
  - CWE-88
published: '2026-11-22'
updated: '2026-11-23'
sourceUpdated: '2026-11-23T15:17:40.767'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-134817'
references:
  - url: >-
      https://github.com/Flux159/mcp-server-kubernetes/blob/v4.1.9/src/tools/exec_in_pod.ts#L105
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/Flux159/mcp-server-kubernetes/commit/588d4949b0233974c3966a7d24d532be11e56d0d
    label: disclosure@vulncheck.com
  - url: 'https://github.com/Flux159/mcp-server-kubernetes/pull/390'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v4.2.0'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/mcp-server-kubernetes-before-4.2.0-argument-injection-via-flag-shaped-positional-operands
    label: disclosure@vulncheck.com
tags:
  - nvd
  - exploit-available
  - cve.org
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/googlesky/CVE-2026-134817'
  checkedAt: '2026-12-02T22:21:46.802Z'
exploitAvailable: true
ingestedAt: '2026-11-23T20:22:04.253Z'
vendor: Flux159
product: mcp-server-kubernetes
affected:
  - mcp-server-kubernetes < 4.2.0
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-23T15:08:45.906213Z'
epss: 0.00776
epssPercentile: 0.57029
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
