{"id":"CVE-2025-59528","published":"2025-09-22T19:54:58Z","modified":"2025-09-22T20:24:09Z","title":"Flowise has Remote Code Execution vulnerability","vendor":"FlowiseAI","product":"Flowise","tier":"core","eol":null,"affectedVersions":[{"vendor":"FlowiseAI","product":"Flowise","versions":["= 3.0.5"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-09-22T20:23:40.363660Z","from":"CISA ADP","provenance":"source"},"description":{"text":"Flowise is a drag & drop user interface to build a customized large language model flow. In version 3.0.5, Flowise is vulnerable to remote code execution. The CustomMCP node allows users to input configuration settings for connecting to an external MCP server. This node parses the user-provided mcpServerConfig string to build the MCP server configuration. However, during this process, it executes JavaScript code without any security validation. Specifically, inside the convertToValidJSONString function, user input is directly passed to the Function() constructor, which evaluates and executes the input as JavaScript code. Since this runs with full Node.js runtime privileges, it can access dangerous modules such as child_process and fs. This issue has been patched in version 3.0.6.","provenance":"source","from":"CVE.org"},"summary":{"text":"The Flowise product from FlowiseAI contains a code injection flaw in its CustomMCP node, where the user-supplied mcpServerConfig string is evaluated as JavaScript through the Function() constructor inside the convertToValidJSONString function, without any security validation. An attacker who can submit configuration to this node over the network, with no authentication or user interaction required, can execute arbitrary code with full Node.js runtime privileges, including access to modules such as child_process and fs.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:13:40Z"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.91767,"percentile":0.9982,"date":"2026-11-22","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-04-05","exploitedFirstSeen":"2026-04-07","ransomware":false,"evidence":[{"url":"https://www.linkedin.com/feed/update/urn:li:activity:7446686314562850817/","date":"2026-04-07"},{"url":"https://expel.com/blog/the-ai-cve-exploitation-evidence-story-headlines-are-scarier-than-reality/","date":"2026-08-27"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-3gcm-f6qx-ff7p","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L132","tags":["x_refsource_MISC"]},{"url":"https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L220","tags":["x_refsource_MISC"]},{"url":"https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L262-L270","tags":["x_refsource_MISC"]},{"url":"https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/controllers/nodes/index.ts#L57-L78","tags":["x_refsource_MISC"]},{"url":"https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/routes/node-load-methods/index.ts#L5","tags":["x_refsource_MISC"]},{"url":"https://github.com/FlowiseAI/Flowise/blob/5930f1119c655bcf8d2200ae827a1f5b9fec81d0/packages/server/src/services/nodes/index.ts#L91-L94","tags":["x_refsource_MISC"]},{"url":"https://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.0.6","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"npm","package":"flowise","vulnerableRanges":[">=3.0.5, <3.0.6"],"patched":["3.0.6"],"from":["GHSA-3gcm-f6qx-ff7p"],"provenance":"source"}],"advisories":[{"id":"GHSA-3gcm-f6qx-ff7p","url":"https://github.com/advisories/GHSA-3gcm-f6qx-ff7p","severity":"CRITICAL","ecosystem":"npm","package":"flowise","vulnerableRanges":[">=3.0.5, <3.0.6"],"patched":["3.0.6"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2025-29246","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-29246","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":52440,"url":"https://www.exploit-db.com/exploits/52440","title":"Flowise 3.0.4 - Remote Code Execution (RCE)","type":"webapps","platform":"multiple","date":"2025-10-31","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2025-10-31"},"pocGithub":{"count":11,"skipped":2,"earliest":"2026-04-13","earliestUrl":"https://github.com/UsifAraby/CVE-2025-59528-POC","repos":[{"name":"UsifAraby/CVE-2025-59528-POC","url":"https://github.com/UsifAraby/CVE-2025-59528-POC","stars":1,"created":"2026-04-13"},{"name":"vanhari/CVE-2025-59528","url":"https://github.com/vanhari/CVE-2025-59528","stars":1,"created":"2026-04-13"},{"name":"maradonam18/-CVE-2025-59528-PoC","url":"https://github.com/maradonam18/-CVE-2025-59528-PoC","stars":1,"created":"2026-04-15"},{"name":"arensballiu/Flowise-RCE-CVE-2025-59528","url":"https://github.com/arensballiu/Flowise-RCE-CVE-2025-59528","stars":1,"created":"2026-04-15"},{"name":"mananispiwpiw/CVE-2025-59528-PoC","url":"https://github.com/mananispiwpiw/CVE-2025-59528-PoC","stars":1,"created":"2026-05-01"}]},"metasploit":[{"name":"Flowise JS Injection RCE","module":"exploit/multi/http/flowise_js_rce","type":"exploit","disclosureDate":"2025-09-13","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/flowise_js_rce.rb"}],"nuclei":[{"id":"CVE-2025-59528","name":"Flowise - Remote Code Execution","severity":"critical","path":"http/cves/2025/CVE-2025-59528.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-59528.yaml"}],"first":{"date":"2025-09-13","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/flowise_js_rce.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2025-09-13","kind":"exploit-public","label":"First public exploit: Metasploit; later: Exploit-DB 2025-10-31, PoC-in-GitHub 2026-04-13","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/flowise_js_rce.rb","provenance":"source"},{"date":"2025-09-22","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2025-59528","provenance":"source"},{"date":"2026-04-07","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.linkedin.com/feed/update/urn:li:activity:7446686314562850817/","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":72.0,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":5.0,"detail":"added 231 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.96,"detail":"percentile 0.9982"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 11 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}