A critical OS command injection vulnerability has been discovered in Flowise, the popular open-source AI agent and LLM workflow orchestration platform. The flaw exists in the Custom MCP Server feature and allows authenticated attackers to achieve remote code execution on the host system.
All versions of Flowise before 3.1.2 are vulnerable.
The vulnerability resides in Flowise's Custom MCP (Model Context Protocol) node, which allows users to configure stdio MCP servers that launch as child processes. Two validation mechanisms are bypassed:
docker build is not blocked, and npx --yes passes
while only -y was explicitly blocked.validateArgsForLocalFileAccess checks.An attacker with a Flowise account (any role) or API access with view/update permissions for chatflows can configure a malicious MCP server to execute arbitrary commands on the Flowise host server.
Until a patched version is released, organizations running Flowise should:
This is the third command-injection CVE targeting the same Custom MCP feature this year, following CVE-2026-40933 (CVSS 9.9) and CVE-2025-59528 (CVSS 10.0). Each fix narrowed the attack surface incrementally, and each time researchers found a new bypass.