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

> An attacker can bypass write and delete restrictions in the Kubernetes MCP server by using chained commands, leading to unauthorized command execution.

- **Severity:** Low 3.7 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 15 Sep 2025
- **Updated:** 15 Sep 2025
- **Also known as:** GHSA-hjm5-xgj8-vwj6, PYSEC-2026-1619

## What is CVE-2025-59376?

CVE-2025-59376 is a low-severity command injection vulnerability in feiskyer mcp-kubernetes-server, published on 15 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

feiskyer mcp-kubernetes-server through 0.1.11 does not consider chained commands in the implementation of --disable-write and --disable-delete, e.g., it allows a "kubectl version; kubectl delete pod" command because the first word (i.e., "version") is not a write or delete operation.

Weakness: CWE-863 (Incorrect Authorization), CWE-77 (Improper Neutralization of Special Elements used in a Command)

## Which versions are affected by CVE-2025-59376?

3 open source packages ship an affected version, including mcp-kubernetes-server. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `mcp-kubernetes-server` | PyPI | All versions to 0.1.11 | None |
| `mcp-kubernetes-server` | PyPI | All versions to 0.1.11 | None |
| `mcp-kubernetes-server` | PyPI | All versions to 0.1.11 | None |

Products: Feisky Mcp-Kubernetes-Server.

## How do I fix CVE-2025-59376?

No fix has been published for CVE-2025-59376 yet. Limit exposure of the affected software until one is available.

## Is CVE-2025-59376 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59376 exists.

Public exploit code:

- CVE-2025-59376, CVE-2025-59377 (github_poc): https://github.com/william31212/CVE-Requests-1896609

## Other vulnerabilities in feiskyer mcp-kubernetes-server

- [CVE-2025-59377](https://insights.sbomify.com/CVE-2025-59377/): mcp-kubernetes-server has an OS Command Injection vulnerability (low 3.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-59376 and fix it if it is affected.

What it is: CVE-2025-59376 is a low-severity command injection vulnerability in feiskyer mcp-kubernetes-server, published on 15 Sep 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59376 exists.

Affected packages and fixed versions:
- mcp-kubernetes-server (PyPI): affected all versions up to 0.1.11; no fix listed
- mcp-kubernetes-server (PyPI): affected all versions up to 0.1.11; no fix listed
- mcp-kubernetes-server (PyPI): affected all versions up to 0.1.11; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-59376/ (Markdown: https://insights.sbomify.com/CVE-2025-59376/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-59376
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-59376
- OSV: https://osv.dev/vulnerability/CVE-2025-59376

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-59376/
Summaries are generated and may contain mistakes; the official description above is the record.
