PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-39884 Flux159 CVE debrief

A vulnerability in mcp-server-kubernetes versions 3.4.0 and prior allows for argument injection in the port_forward tool, enabling exposure of internal Kubernetes services, cross-namespace targeting, and indirect exploitation via prompt injection. Kubernetes administrators and developers using mcp-server-kubernetes, especially those with exposure to internal Kubernetes services, should assess their deployment and take necessary actions to mitigate the vulnerability. The vulnerability is caused by string concatenation with user-controlled input in the port_forward tool, which is then passed to spawn(). This allows an attacker to inject arbitrary kubectl flags, potentially leading to

Vendor
Flux159
Product
mcp-server-kubernetes
CVSS
HIGH 8.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-04-15
Original CVE updated
2026-10-26
Advisory published
2026-04-15
Advisory updated
2026-10-26

Who should care

Kubernetes administrators and developers using mcp-server-kubernetes, especially those with exposure to internal Kubernetes services, should assess their deployment and take necessary actions to mitigate the vulnerability.

Why it matters

The vulnerability in mcp-server-kubernetes allows for argument injection in the port_forward tool, enabling exposure of internal Kubernetes services, cross-namespace targeting, and indirect exploitation via prompt injection. Kubernetes administrators and developers should assess their deployment and take necessary actions to mitigate the vulnerability.

  • Exposure of internal Kubernetes services to the network
  • Cross-namespace targeting via additional -n flags
  • Indirect exploitation via prompt injection against AI agents connected to the MCP server
  • Verification of affected versions and remediation priority

Technical summary

The mcp-server-kubernetes package is vulnerable to argument injection in the port_forward tool due to improper handling of user-controlled input. This allows an attacker to inject arbitrary kubectl flags, potentially leading to exposure of internal Kubernetes services, cross-namespace targeting, and indirect exploitation via prompt injection. The vulnerability is caused by string concatenation with user-controlled input in the port_forward tool, which is then passed to spawn(). The affected versions are 3.4.0 and prior, and the fix is in version 3.5.0.

Defensive priority

High priority for Kubernetes administrators and developers using mcp-server-kubernetes, especially those with exposure to internal Kubernetes services.

Recommended defensive actions

  • Upgrade to version 3.5.0 or later
  • Review and restrict access to the port_forward tool
  • Monitor for suspicious activity in Kubernetes clusters
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by string concatenation with user-controlled input in the port_forward tool, which is then passed to spawn(). This allows an attacker to inject arbitrary kubectl flags. The affected versions are 3.4.0 and prior, and the fix is in version 3.5.0. Kubernetes administrators and developers should verify their deployments and take necessary actions to mitigate the vulnerability. The port_forward tool is used for forwarding traffic from a local port to a port on a Kubernetes resource. The vulnerability can be used

Sources and references

Verified primary and authoritative sources

  • CVE-2026-39884 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-39884

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-39884 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-39884

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Flux159/mcp-server-kubernetes/releases/tag/v3.5.0

    [email protected] - Product, Release Notes

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Flux159/mcp-server-kubernetes/security/advisories/GHSA-4xqg-gf5c-ghwq

    [email protected] - Mitigation, Vendor Advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.