CVE-2026-46442: CWE-94: Improper Control of Generation of Code ('Code Injection') in FlowiseAI Flowise
Flowise is a drag & drop user interface to build a customized large language model flow. Prior to version 3.1.2, POST /api/v1/node-custom-function lacks route-level authorization, allowing any authenticated user or API key to submit arbitrary JavaScript to the Custom JS Function node. When E2B_APIKEY is not configured — the common deployment case — Flowise executes this code inside a NodeVM sandbox. This sandbox can be escaped, allowing an attacker to reach the host process object and execute system commands via child_process. The result is authenticated remote code execution on the Flowise server host. This issue has been patched in version 3.1.2.
AI Analysis
Technical Summary
CVE-2026-46442 is a critical vulnerability in Flowise (prior to version 3.1.2) involving improper control of code generation (CWE-94). The POST /api/v1/node-custom-function API endpoint does not enforce route-level authorization, allowing authenticated users or API keys to submit arbitrary JavaScript to the Custom JS Function node. If the E2B_APIKEY is not set, the code runs inside a NodeVM sandbox that can be escaped, permitting attackers to access the host process object and execute system commands via child_process, leading to authenticated remote code execution on the server host. This issue is fixed in Flowise version 3.1.2.
Potential Impact
An attacker with authentication or a valid API key can execute arbitrary system commands on the Flowise server host, resulting in full remote code execution capabilities. This compromises the confidentiality, integrity, and availability of the affected system. The vulnerability is critical due to the ease of exploitation and the high impact on the server.
Mitigation Recommendations
Upgrade Flowise to version 3.1.2 or later, where this vulnerability has been patched. No other mitigations are specified. Patch status is confirmed fixed in version 3.1.2.
CVE-2026-46442: CWE-94: Improper Control of Generation of Code ('Code Injection') in FlowiseAI Flowise
Description
Flowise is a drag & drop user interface to build a customized large language model flow. Prior to version 3.1.2, POST /api/v1/node-custom-function lacks route-level authorization, allowing any authenticated user or API key to submit arbitrary JavaScript to the Custom JS Function node. When E2B_APIKEY is not configured — the common deployment case — Flowise executes this code inside a NodeVM sandbox. This sandbox can be escaped, allowing an attacker to reach the host process object and execute system commands via child_process. The result is authenticated remote code execution on the Flowise server host. This issue has been patched in version 3.1.2.
CVSS v4.0
Score 9.4critical
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-46442 is a critical vulnerability in Flowise (prior to version 3.1.2) involving improper control of code generation (CWE-94). The POST /api/v1/node-custom-function API endpoint does not enforce route-level authorization, allowing authenticated users or API keys to submit arbitrary JavaScript to the Custom JS Function node. If the E2B_APIKEY is not set, the code runs inside a NodeVM sandbox that can be escaped, permitting attackers to access the host process object and execute system commands via child_process, leading to authenticated remote code execution on the server host. This issue is fixed in Flowise version 3.1.2.
Potential Impact
An attacker with authentication or a valid API key can execute arbitrary system commands on the Flowise server host, resulting in full remote code execution capabilities. This compromises the confidentiality, integrity, and availability of the affected system. The vulnerability is critical due to the ease of exploitation and the high impact on the server.
Mitigation Recommendations
Upgrade Flowise to version 3.1.2 or later, where this vulnerability has been patched. No other mitigations are specified. Patch status is confirmed fixed in version 3.1.2.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T22:18:22.831Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a26e468e29bf47b501e313b
Added to database: 6/8/2026, 3:48:56 PM
Last enriched: 6/8/2026, 4:04:52 PM
Last updated: 6/8/2026, 8:32:18 PM
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.