{"id":"MSF-multi--http--flowise_mcp_rce","name":"Flowise MCP Server Remote Code Execution","description":"Flowise versions from 2.2.7 prior to 3.1.2 are vulnerable to remote code execution through the Custom MCP (Model Context Protocol) node configuration. The vulnerability exists in the /api/v1/node-load-method/customMCP endpoint, which accepts arbitrary command and argument configurations for MCP server initialization. An authenticated attacker can abuse the npx --yes flag to fetch and execute a malicious npm package from an attacker-controlled HTTP server, achieving arbitrary command execution on the Flowise host. This module creates a malicious npm package tar archive in memory, serves it via Metasploit's built-in HTTP server, then triggers the vulnerable endpoint to download and execute the package via npx. To interact with the obtained shell, use the command: sessions -i <id> (for example: sessions -i 1).","cves":["CVE-2026-56274"],"author":"cn-panda, ABDUL JAFAROV","published":"2026-06-23","platform":"Unix","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/multi/http/flowise_mcp_rce.rb","path":"modules/exploits/multi/http/flowise_mcp_rce.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"flowise_mcp_rce.rb","vulnerabilities":[{"id":"CVE-2026-56274","state":"PUBLISHED","title":"Flowise - Remote Code Execution via MCP Security Bypass in validateCommandFlags and validateArgsForLocalFileAccess","titleSource":"CVE Program","description":"Flowise before 3.1.2 contains multiple OS command injection vulnerabilities in the Custom MCP Server feature due to incomplete command-flag validation and a regex bypass in local file access restrictions. An attacker with a Flowise account of any role, or API access with view/update permissions for chatflows, can configure a malicious MCP server to bypass the validateCommandFlags blocklist (for example, 'docker build' is not blocked, and 'npx --yes' is not blocked while only '-y' is) and the validateArgsForLocalFileAccess checks, resulting in execution of arbitrary commands on the Flowise host.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-56274","cvss":{"version":"4.0","baseScore":8.7,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-56274"},"updatedAt":"2026-06-24T11:17:02.895Z","retrievedAt":"2026-11-25T16:15:43.184Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-multi--http--flowise_mcp_rce.png?v=2","url":"https://exploitbin.com/exploits/MSF-multi--http--flowise_mcp_rce","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--flowise_mcp_rce/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--flowise_mcp_rce/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}