CVE-2026-130007 — Vulnerability in reza-gholizade/k8…mcp-server
k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.66%). Schedule for your next planned update.
Does your project use an affected github.com/reza-gholizade/k8s-mcp-server version?
Paste your go.sum to check it for CVE-2026-130007 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
When k8s-mcp-server runs in its default SSE transport mode, the MCP tools/call
endpoint is dispatched with no authentication, session token, or Origin check.
Any client that can reach the listening port can enumerate and invoke the
server's Kubernetes tools (including destructive/write tools) without credentials,
executing with the server's configured cluster privileges.
Affected
Commit be87a6dd72bb6ec1d4886b8548843b99a4638b12 (Merge PR #130) MCP library: github.com/mark3labs/mcp-go v0.57.0 Default mode: sse (SERVER_MODE default), default port 8080, bind 0.0.0.0
Root cause (static trace: handleSSE -> handleMessage -> tools/call)
- main.go L129:
server.NewSSEServer(s)is created with no auth option and no contextFunc; L130sse.Start(":"+port)binds all interfaces (0.0.0.0). - mcp-go sse.go handleSSE (GET /sse): no auth header check; the server mints a sessionId for any caller. The sessionId is a correlation value, not a credential.
- handleMessage (POST /message): the only gates are method==POST and a loadable
sessionId. No Authorization/Bearer/token/Origin/CSRF check before
s.server.HandleMessage(ctx, rawMessage)dispatches to the tools/call handler. - Only
Access-Control-Allow-Origin: *is present (CORS relaxation, not auth). Write tools (Create/Delete/RolloutRestart, Helm Install/Upgrade/Uninstall/Rollback) are all registered unless-read-onlyis set (default readOnly=false).
Runtime reproduction (no auth headers on any request)
Started: k8s-mcp-server -mode sse -port 8080 with a dummy non-routable
KUBERNETES_SERVER=https://127.0.0.1:1 (no real cluster touched).
GET /sse -> HTTP 200; server mints /message?sessionId=93b3... POST /message initialize -> HTTP 202; result returned over SSE POST /message tools/list -> HTTP 202; FULL tool list returned (incl. destructive) POST /message tools/call getAPIResources -> HTTP 202; handler EXECUTED: error -32603 "... Get https://127.0.0.1:1/api...: dial tcp 127.0.0.1:1: connect"
The tools/call response is NOT HTTP 401/403 but an in-handler cluster-connection
error, proving the RPC passed any authorization gate and reached the
getAPIResources handler. With a valid kubeconfig, the same path returns real
cluster data. ss -ltnp confirms LISTEN *:8080 (all interfaces, externally exposed).
Impact
An unauthenticated attacker with network reach to the port can enumerate tools and invoke Kubernetes operations with the server's privileges — cluster read and, with default readOnly=false, state-changing operations (Create/Delete/Helm). CWE-306 (Missing Authentication for Critical Function).
Why this is a defect, not by-design
Default mode is HTTP (sse) on 0.0.0.0:8080, containerized deployment is the normal scenario, and there is no "trusted client only" / auth-required note in the docs. MCP HTTP transports are expected to be loopback-only or gated; this one is neither.
Suggested fix
- Add an authorization gate before tools/call on the HTTP transports: e.g. WithSSEContextFunc to validate an Authorization bearer/token, or fail-closed when no token is configured in HTTP mode.
- Default the bind to 127.0.0.1 and require explicit opt-in for external binding.
- Document that HTTP mode must sit behind an authenticating proxy; recommend STDIO by default.
Reproduction was done against the actual built binary and the shipped SSE path (not an extract).
Credit
bebold6133
Advisory Timeline
- First published November 19, 2026 (7 days ago).
- Last revised November 19, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/reza-gholizade/k8s-mcp-server@v1.1.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/reza-gholizade/k8s-mcp-server Go · Affected: All versions | 1.1.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-306
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
References
- https://github.com/reza-gholizade/k8s-mcp-server/security/advisories/GHSA-m932-63jc-4jqqWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-130007ADVISORY
- https://github.com/reza-gholizade/k8s-mcp-server/issues/131WEB
- https://github.com/reza-gholizade/k8s-mcp-server/pull/134WEB
- https://github.com/reza-gholizade/k8s-mcp-server/commit/817d81005369837e0c034962785851ca4dec9a76WEB
- https://github.com/reza-gholizade/k8s-mcp-serverPACKAGE
- https://github.com/reza-gholizade/k8s-mcp-server/releases/tag/v1.1.0WEB
Frequently Asked Questions
- What is CVE-2026-130007?
- k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool execution. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2026-130007?
- CVE-2026-130007 affects github.com/reza-gholizade/k8s-mcp-server. It has a 0.7% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-130007 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 46.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-108262HIGH
DDEV incomplete tar symlink traversal fix allows host file overwrite - Incomplete fix of CVE-2026-32885
- CVE-2026-102340HIGH
Telepresence: Traffic Manager gRPC has no auth — any pod claims arbitrary namespace and intercepts services, receiving victim environment secrets