<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Thu, 01 Oct 2026 01:41:52 +0000</lastBuildDate>
    <item>
      <title>CVE-2026-39884 — MCP Server Kubernetes has Argument Injection in its port_forward tool via space-splitting</title>
      <link>https://db.gcve.eu/vuln/cve-2026-39884</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Flux159 mcp-server-kubernetes&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Flux159 mcp-server-kubernetes&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2026-39884</guid>
    </item>
    <item>
      <title>GHSA-4xqg-gf5c-ghwq — MCP Server Kubernetes has an Argument Injection in port_forward tool via space-splitting</title>
      <link>https://db.gcve.eu/vuln/ghsa-4xqg-gf5c-ghwq</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: mcp-server-kubernetes&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;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(&amp;#34;kubectl&amp;#34;, argsArray)`, `port_forward` uses string concatenation with user-controlled input (`namespace`, `resourceType`, `resourceName`, `localPort`, `targetPort`) followed by naive `.split(&amp;#34; &amp;#34;)` parsing. This allows an attacker to inject arbitrary kubectl flags by embedding spaces in any of these fields.&lt;/p&gt;
&lt;p&gt;## Affected Versions&lt;/p&gt;
&lt;p&gt;`&amp;lt;= 3.4.0`&lt;/p&gt;
&lt;p&gt;## Vulnerability Details&lt;/p&gt;
&lt;p&gt;**File:** `src/tools/port_forward.ts` (compiled: `dist/tools/port_forward.js`)&lt;/p&gt;
&lt;p&gt;The `startPortForward` function builds a kubectl command string by concatenating user-controlled input:&lt;/p&gt;
&lt;p&gt;```javascript
let command = `kubectl port-forward`;
if (input.namespace) {
    command += ` -n ${input.namespace}`;
}
command += ` ${input.resourceType}/${input.resourceName} ${input.localPort}:${input.targetPort}`;
```&lt;/p&gt;
&lt;p&gt;This string is then split on spaces and passed to `spawn()`:&lt;/p&gt;
&lt;p&gt;```javascript
async function executeKubectlCommandAsync(command) {
    return new Promise((resolve, reject) =&amp;gt; {
        const [cmd, ...args] = command.split(&amp;#34; &amp;#34;);
        const process = spawn(cmd, args);
```&lt;/p&gt;
&lt;p&gt;Because `.split(&amp;#34; &amp;#34;)` treats every space as an argument boundary, an attacker can inject additional kubectl flags by embedding spaces in any of the user-controlled fields.&lt;/p&gt;
&lt;p&gt;### Contrast with other tools&lt;/p&gt;
&lt;p&gt;Every other tool…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; npm: mcp-server-kubernetes&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;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(&amp;#34;kubectl&amp;#34;, argsArray)`, `port_forward` uses string concatenation with user-controlled input (`namespace`, `resourceType`, `resourceName`, `localPort`, `targetPort`) followed by naive `.split(&amp;#34; &amp;#34;)` parsing. This allows an attacker to inject arbitrary kubectl flags by embedding spaces in any of these fields.&lt;/p&gt;
&lt;p&gt;## Affected Versions&lt;/p&gt;
&lt;p&gt;`&amp;lt;= 3.4.0`&lt;/p&gt;
&lt;p&gt;## Vulnerability Details&lt;/p&gt;
&lt;p&gt;**File:** `src/tools/port_forward.ts` (compiled: `dist/tools/port_forward.js`)&lt;/p&gt;
&lt;p&gt;The `startPortForward` function builds a kubectl command string by concatenating user-controlled input:&lt;/p&gt;
&lt;p&gt;```javascript
let command = `kubectl port-forward`;
if (input.namespace) {
    command += ` -n ${input.namespace}`;
}
command += ` ${input.resourceType}/${input.resourceName} ${input.localPort}:${input.targetPort}`;
```&lt;/p&gt;
&lt;p&gt;This string is then split on spaces and passed to `spawn()`:&lt;/p&gt;
&lt;p&gt;```javascript
async function executeKubectlCommandAsync(command) {
    return new Promise((resolve, reject) =&amp;gt; {
        const [cmd, ...args] = command.split(&amp;#34; &amp;#34;);
        const process = spawn(cmd, args);
```&lt;/p&gt;
&lt;p&gt;Because `.split(&amp;#34; &amp;#34;)` treats every space as an argument boundary, an attacker can inject additional kubectl flags by embedding spaces in any of the user-controlled fields.&lt;/p&gt;
&lt;p&gt;### Contrast with other tools&lt;/p&gt;
&lt;p&gt;Every other tool…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-4xqg-gf5c-ghwq</guid>
    </item>
  </channel>
</rss>
