{"id":"CVE-2026-40933","published":"2026-04-21T21:00:35Z","modified":"2026-04-22T13:20:11Z","title":"Flowise: Authenticated RCE Via MCP Adapters","vendor":"FlowiseAI","product":"Flowise","tier":"tail","description":{"text":"Flowise is a drag & drop user interface to build a customized large language model flow. Prior to 3.1.0, due to unsafe serialization of stdio commands in the MCP adapter, an authenticated attacker can add an MCP stdio server with an arbitrary command, achieving command execution. The vulnerability lies in a bug in the input sanitization from the “Custom MCP” configuration in http://localhost:3000/canvas - where any user can add a new MCP, when doing so - adding a new MCP using stdio, the user can add any command, even though your code have input sanitization checks such as validateCommandInjection and validateArgsForLocalFileAccess, and a list of predefined specific safe commands - these commands, for example \"npx\" can be combined with code execution arguments (\"-c touch /tmp/pwn\") that enable direct code execution on the underlying OS. This vulnerability is fixed in 3.1.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.12168,"percentile":0.96257,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-c9gw-hvqq-f33r","tags":["x_refsource_CONFIRM"]},{"url":"https://www.ox.security/blog/mcp-supply-chain-advisory-rce-vulnerabilities-across-the-ai-ecosystem","tags":["x_refsource_MISC"]},{"url":"https://www.ox.security/blog/the-mother-of-all-ai-supply-chains-critical-systemic-vulnerability-at-the-core-of-the-mcp","tags":["x_refsource_MISC"]}],"priority":{"score":26.3,"factors":[{"name":"EPSS percentile","points":19.25},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"flowiseai","affectedVersions":[{"vendor":"FlowiseAI","product":"Flowise","versions":["< 3.1.0"]},{"vendor":"FlowiseAI","product":"flowise-components","versions":["< 3.1.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-04-22T13:20:05.790341Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"flowise","vulnerableRanges":["<3.1.0"],"patched":["3.1.0"],"from":["GHSA-c9gw-hvqq-f33r"],"provenance":"source"},{"ecosystem":"npm","package":"flowise-components","vulnerableRanges":["<3.1.0"],"patched":["3.1.0"],"from":["GHSA-c9gw-hvqq-f33r"],"provenance":"source"}],"summary":{"text":"The Flowise drag-and-drop LLM flow builder contains a flaw in its \"Custom MCP\" configuration in the canvas interface, where input sanitization for stdio MCP server commands can be bypassed. An authenticated user with low privileges, reachable over the network and requiring no user interaction, can add a stdio MCP server using an allowed command such as npx with code-execution arguments, achieving arbitrary command execution on the underlying operating system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:38:48Z"},"euvd":{"id":"EUVD-2026-24489","exploited":false,"provenance":"source"}}