<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-01T01:41:55.308926+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-39884</id>
    <title>CVE-2026-39884 — MCP Server Kubernetes has Argument Injection in its port_forward tool via space-splitting</title>
    <updated>2026-10-01T01:41:55.310969+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Flux159 mcp-server-kubernetes</p>
<p>mcp-server-kubernetes is a Model Context Protocol server for Kubernetes cluster management. Versions 3.4.0 and prior contain an argument injection vulnerability in the port_forward tool in src/tools/port_forward.ts, where a kubectl command is constructed via string concatenation with user-controlled input and then naively split on spaces before being passed to spawn(). Unlike all other tools in the codebase which correctly use array-based argument passing with execFileSync(), port_forward treats every space in user-controlled fields (namespace, resourceType, resourceName, localPort, targetPort) as an argument boundary, allowing an attacker to inject arbitrary kubectl flags. This enables exposure of internal Kubernetes services to the network by injecting --address=0.0.0.0, cross-namespace targeting by injecting additional -n flags, and indirect exploitation via prompt injection against AI agents connected to the MCP server. This issue has been fixed in version 3.5.0.</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-39884"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-4xqg-gf5c-ghwq</id>
    <title>GHSA-4xqg-gf5c-ghwq — MCP Server Kubernetes has an Argument Injection in port_forward tool via space-splitting</title>
    <updated>2026-10-01T01:41:55.311061+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: mcp-server-kubernetes</p>
<p>## Summary</p>
<p>The `port_forward` tool in `mcp-server-kubernetes` constructs a kubectl command as a string and splits it on spaces before passing to `spawn()`. Unlike all other tools in the codebase which correctly use `execFileSync("kubectl", argsArray)`, `port_forward` uses string concatenation with user-controlled input (`namespace`, `resourceType`, `resourceName`, `localPort`, `targetPort`) followed by naive `.split(" ")` parsing. This allows an attacker to inject arbitrary kubectl flags by embedding spaces in any of these fields.</p>
<p>## Affected Versions</p>
<p>`&lt;= 3.4.0`</p>
<p>## Vulnerability Details</p>
<p>**File:** `src/tools/port_forward.ts` (compiled: `dist/tools/port_forward.js`)</p>
<p>The `startPortForward` function builds a kubectl command string by concatenating user-controlled input:</p>
<p>```javascript
let command = `kubectl port-forward`;
if (input.namespace) {
    command += ` -n ${input.namespace}`;
}
command += ` ${input.resourceType}/${input.resourceName} ${input.localPort}:${input.targetPort}`;
```</p>
<p>This string is then split on spaces and passed to `spawn()`:</p>
<p>```javascript
async function executeKubectlCommandAsync(command) {
    return new Promise((resolve, reject) =&gt; {
        const [cmd, ...args] = command.split(" ");
        const process = spawn(cmd, args);
```</p>
<p>Because `.split(" ")` treats every space as an argument boundary, an attacker can inject additional kubectl flags by embedding spaces in any of the user-controlled fields.</p>
<p>### Contrast with other tools</p>
<p>Every other tool…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-4xqg-gf5c-ghwq"/>
  </entry>
</feed>
