{"answers":{"affected":"2 open source packages ship an affected version, including agentic-flow.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58195 exists.","fix":"Upgrade agentic-flow to 2.0.14 or later.","what":"CVE-2026-58195 is a high-severity vulnerability in ruvnet agentic-flow, published on 17 Jul 2026."},"fix_prompt":"Check this codebase for CVE-2026-58195 and fix it if it is affected.\n\nWhat it is: CVE-2026-58195 is a high-severity vulnerability in ruvnet agentic-flow, published on 17 Jul 2026. \nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58195 exists.\n\nAffected packages and fixed versions:\n- agentic-flow (npm): affected all versions; fixed in 2.0.14\n- agentic-flow (npm): affected all versions; fixed in 2.0.14\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-58195/ (Markdown: https://insights.sbomify.com/CVE-2026-58195/index.md)","id":"CVE-2026-58195","markdown":"https://insights.sbomify.com/CVE-2026-58195/index.md","name":"CVE-2026-58195","record":{"aliases":["GHSA-vcv2-r9jh-99m5"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Agentic-Flow is an AI agent orchestration platform. Prior to 2.0.14, agentic-flow MCP server tools in src/mcp/standalone-stdio.ts, src/mcp/fastmcp/servers/claude-flow-sdk.ts, src/mcp/fastmcp/servers/stdio-full.ts, src/mcp/fastmcp/servers/http-streaming-updated.ts, src/mcp/fastmcp/servers/http-sse.ts, src/mcp/fastmcp/servers/poc-stdio.ts, src/mcp/fastmcp/tools/agent/{execute,list,parallel}.ts, src/mcp/fastmcp/tools/swarm/orchestrate.ts, and src/mcp/fastmcp/tools/hooks/pretrain.ts interpolated attacker-influenceable tool parameters such as agent, task, name, language, and agentdb directly into shell command strings passed to execSync(), allowing arbitrary OS command execution with the privileges of the MCP server user. This issue is fixed in version 2.0.14.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Agentic-Flow: OS Command Injection in agentic-flow MCP server tools via unsanitized tool-parameter interpolation into execSync","id":"CVE-2026-58195","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2026"},"n_packages":2,"n_references":7,"next":{"headline":"ToolHive: SSRF in remote MCP server authentication discovery (host-side, bypasses container isolation)","id":"CVE-2026-58196"},"packages":[{"ecosystem":"npm","fixed":["2.0.14"],"introduced":["0"],"last_affected":[],"package":"agentic-flow","purl":null,"source":"GHSA-vcv2-r9jh-99m5"},{"ecosystem":"npm","fixed":["2.0.14"],"introduced":["0"],"last_affected":[],"package":"agentic-flow","purl":"pkg:npm/agentic-flow","source":"GHSA-vcv2-r9jh-99m5"}],"prev":{"headline":"Appium: Unauthenticated arbitrary file/directory deletion in @appium/storage-plugin","id":"CVE-2026-58192"},"products":["agentic-flow"],"published":"2026-07-17","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":"total"},"state":"PUBLISHED","updated":"2026-07-17","vendors":["ruvnet"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2026-58195/"}