{"answers":{"affected":"2 open source packages ship an affected version, including mcp-server-kubernetes.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47250 exists.","fix":"Upgrade mcp-server-kubernetes to 3.7.0 or later.","what":"CVE-2026-47250 is a medium-severity command injection vulnerability in Flux159 mcp-server-kubernetes, published on 11 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-47250 and fix it if it is affected.\n\nWhat it is: CVE-2026-47250 is a medium-severity command injection vulnerability in Flux159 mcp-server-kubernetes, published on 11 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-47250 exists.\n\nAffected packages and fixed versions:\n- mcp-server-kubernetes (npm): affected all versions; fixed in 3.7.0\n- mcp-server-kubernetes (npm): affected all versions; fixed in 3.7.0\n\nTask:\n1. 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.\n2. 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.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-47250/ (Markdown: https://insights.sbomify.com/CVE-2026-47250/index.md)","id":"CVE-2026-47250","markdown":"https://insights.sbomify.com/CVE-2026-47250/index.md","name":"CVE-2026-47250","record":{"aliases":["GHSA-6mx4-4h42-r8vh"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["privilege_escalation","data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Kubernetes MCP server","requires_auth":"none","summary":"Attackers can inject kubectl flags to exfiltrate operator bearer tokens, enabling privilege escalation and unauthorized cluster access.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"description":"mcp-server-kubernetes is a Model Context Protocol server for Kubernetes cluster management. Prior to version 3.7.0, the kubectl_generic tool in mcp-server-kubernetes passes user-supplied flags directly to kubectl without any allowlist, enabling a privilege escalation attack within Kubernetes environments. An attacker who already has limited cluster or codebase access, for example, a developer with pod-deployment permissions but not cluster-admin credentials, can plant a single structured JSON line in an application's log output. When an operator with a privileged kubeconfig uses the MCP server to read those logs and their AI agent follows the injected instruction, kubectl_generic is called with --server=https://attacker.example.com and --insecure-skip-tls-verify=true. kubectl sends all API requests, including the Authorization: Bearer \u003ctoken\u003e header from the operator's kubeconfig to the attacker's endpoint. The captured token can then be replayed directly against the real Kubernetes API server, granting the attacker the full RBAC permissions of the operator's service account. This issue has been patched in version 3.7.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"mcp-server-kubernetes: kubectl-generic flag injection enables Kubernetes bearer token exfiltration","id":"CVE-2026-47250","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":2,"n_references":2,"next":{"headline":"libheif has an incomplete fix for CVE-2026-3949: integer overflow bypass in vvdec_push_data2","id":"CVE-2026-47251"},"packages":[{"ecosystem":"npm","fixed":["3.7.0"],"introduced":["0"],"last_affected":[],"package":"mcp-server-kubernetes","purl":null,"source":"GHSA-6mx4-4h42-r8vh"},{"ecosystem":"npm","fixed":["3.7.0"],"introduced":["0"],"last_affected":[],"package":"mcp-server-kubernetes","purl":"pkg:npm/mcp-server-kubernetes","source":"GHSA-6mx4-4h42-r8vh"}],"prev":{"headline":"Klever-Go KVM: Hash-array amplification in P2P resolver request handling","id":"CVE-2026-47249"},"products":["mcp-server-kubernetes"],"published":"2026-06-11","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-11","vendors":["Flux159"]},"summary":"Attackers can inject kubectl flags to exfiltrate operator bearer tokens, enabling privilege escalation and unauthorized cluster access.","url":"https://insights.sbomify.com/CVE-2026-47250/"}