Advisory

PYSEC-2026-3685

Also known as: CVE-2026-61459, GHSA-wmg3-h8mf-wgvr

Summary

mcp-server-kubernetes argument injection can expose Kubernetes cluster credentials

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-08-19 11:56 UTC
Modified
2026-08-19 12:45 UTC

Affected packages and fixes

mcp-server-kubernetes

PyPI · All systems

Affected

  • introduced 0, fixed 3.9.0 (ecosystem)

Fixed versions

3.9.0

Fix

  • Fixed version 3.9.0
    pip install --upgrade mcp-server-kubernetes==3.9.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences