Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mcp-kubernetes-server
  4. ›
  5. CVE-2025-59376

CVE-2025-59376: mcp-kubernetes-server has a Command Injection vulnerability

September 15, 2025 (updated September 25, 2025)

mcp-kubernetes-server does not correctly enforce the --disable-write / --disable-delete protections when commands are chained. The server only inspects the first token to decide whether an operation is write/delete, which allows a read-like command to be followed by a write action using shell metacharacters (e.g., kubectl version; kubectl delete pod <name>). A remote attacker who can invoke the server may therefore bypass the intended write/delete restrictions and perform state-changing operations against the Kubernetes cluster.

Affected versions: through 0.1.11 (no patched release available as of now).

Mitigations:

  • Run with --disable-kubectl and/or --disable-helm to fully block those execution paths.
  • Put the server behind an allow-list proxy restricting allowed subcommands.

References

  • github.com/advisories/GHSA-hjm5-xgj8-vwj6
  • github.com/feiskyer/mcp-kubernetes-server
  • github.com/feiskyer/mcp-kubernetes-server/blob/78957b6c1a3982080cf6fcaac6f6e9014116a71c/src/mcp_kubernetes_server/main.py
  • github.com/william31212/CVE-Requests-1896609
  • nvd.nist.gov/vuln/detail/CVE-2025-59376

Code Behaviors & Features

Detect and mitigate CVE-2025-59376 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.1.11

Solution

Unfortunately, there is no solution available yet.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

pypi/mcp-kubernetes-server/CVE-2025-59376.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 08 Oct 2025 00:20:43 +0000.