From d51d56930928b38c54cc1b23bb10fed69b6bad6f Mon Sep 17 00:00:00 2001 From: ruv Date: Thu, 18 Jun 2026 10:24:32 -0400 Subject: [PATCH] =?UTF-8?q?chore(deps):=20bump=20agentic-flow=20^2.0.13=20?= =?UTF-8?q?=E2=86=92=20^2.0.14=20for=20CWE-78=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream agentic-flow 2.0.14 fixes CWE-78 OS command injection in its MCP server tools (standalone-stdio, http-sse, http-streaming-updated, stdio-full, claude-flow-sdk, poc-stdio, plus fastmcp tools/agent/swarm sinks). Attacker-influenceable MCP tool parameters (agent, task, name, language, agentdb args) were template-interpolated into shell command strings passed to execSync(); a value like x"; touch INJECTED; echo " broke out of the surrounding quotes. The fix routes every shell-out through execFileSync('npx', argv, { shell: false }) so argv elements hit execve(2) without shell parsing. This commit bumps the root agentic-flow dep to ^2.0.14 and refreshes package-lock.json. Verified post-install: node_modules/agentic-flow is at 2.0.14 with zero execSync() call sites remaining in dist/mcp/standalone-stdio.js. Upstream commit: agentic-flow a0f9c2b Advisory: CWE-78 / OS Command Injection in MCP server tools Co-Authored-By: RuFlo --- package-lock.json | 17 +++++++++-------- package.json | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index fddaffcb0f..f99d845734 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "claude-flow", - "version": "3.11.0", + "version": "3.12.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "claude-flow", - "version": "3.11.0", + "version": "3.12.3", "license": "MIT", "dependencies": { "@claude-flow/cli-core": "3.7.0-alpha.5", @@ -15,6 +15,7 @@ "@claude-flow/shared": "3.0.0-alpha.8", "@noble/ed25519": "2.3.0", "@ruvector/rabitq-wasm": "0.1.0", + "agentic-flow": "^2.0.14", "semver": "7.7.3", "zod": "3.25.76" }, @@ -46,7 +47,7 @@ "@ruvector/router-linux-x64-gnu": "^0.1.30", "@ruvector/sona": "^0.1.5", "agentdb": "^3.0.0-alpha.16", - "agentic-flow": "^2.0.13" + "agentic-flow": "^2.0.14" } }, "node_modules/@anthropic-ai/claude-agent-sdk": { @@ -3961,9 +3962,9 @@ "license": "MIT" }, "node_modules/agentic-flow": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/agentic-flow/-/agentic-flow-2.0.13.tgz", - "integrity": "sha512-VN3OVYUweVtCE4ARzxwf0Qf22Z3+6dgYWukKvnE5qlBIa5FEPjD5rRN4Fz5mecQ+88+0fnFgJ/00lb6MVhWsNQ==", + "version": "2.0.14", + "resolved": "https://registry.npmjs.org/agentic-flow/-/agentic-flow-2.0.14.tgz", + "integrity": "sha512-8+AQhXI0P0mK26mZ8zsTQkhUhRsPWYP52Diwzr3Nk0dUNXd+pBjzdyQDfFxttGIymBfMqvRr8VRBd+bZLSYWcg==", "hasInstallScript": true, "license": "MIT", "optional": true, @@ -3977,6 +3978,7 @@ "@ruvector/ruvllm": "^0.2.3", "@ruvector/tiny-dancer": "^0.1.17", "@supabase/supabase-js": "^2.78.0", + "@xenova/transformers": "^2.17.2", "axios": "^1.12.2", "dotenv": "^16.4.5", "express": "^5.1.0", @@ -3988,7 +3990,7 @@ "ruvector-onnx-embeddings-wasm": "^0.1.2", "tiktoken": "^1.0.22", "ulid": "^3.0.1", - "ws": "^8.18.3", + "ws": "^8.20.0", "yaml": "^2.8.1", "zod": "^3.25.76" }, @@ -4003,7 +4005,6 @@ "@rollup/rollup-darwin-arm64": "^4.59.0", "@ruvector/attention": "^0.1.4", "@ruvector/sona": "^0.1.4", - "@xenova/transformers": "^2.17.2", "agentdb": "^3.0.0-alpha.14", "better-sqlite3": "^11.10.0", "onnxruntime-node": "^1.23.2", diff --git a/package.json b/package.json index 1f3fe307cf..e4b9d5e5fb 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "@ruvector/router-linux-x64-gnu": "^0.1.30", "@ruvector/sona": "^0.1.5", "agentdb": "^3.0.0-alpha.16", - "agentic-flow": "^2.0.13" + "agentic-flow": "^2.0.14" }, "overrides": { "ruvector": "^0.2.27",