Horizon Alert
Summary of the vulnerability and why it matters
This advisory addresses a critical vulnerability in Flowise, a tool used to build custom large language model flows. The flaw allows authenticated users to execute arbitrary JavaScript code, which can lead to system command execution on the server if not properly configured. This could enable unauthorized access and control of the Flowise host environment.
- Unauthenticated code execution in Flowise.
- Allows remote command execution on servers.
- Confirm relevance and exposure; address if impacted.
Attack Path
How an attacker could exploit the issue
An attacker with authenticated access can exploit this vulnerability by sending a crafted POST request to the `/api/v1/node-custom-function` endpoint. This request allows them to submit arbitrary JavaScript code, which Flowise then executes within a NodeVM sandbox. If the `E2B_APIKEY` is not configured, this sandbox can be bypassed, granting the attacker access to system commands and ultimately leading to remote code execution on the server.
- Authenticated access is required.
- Submit arbitrary JavaScript via API.
- Leads to authenticated remote code execution.
Live Threat
Current exploitation, exposure, and threat context
When Flowise is deployed without proper configuration, authenticated users or API keys could submit arbitrary JavaScript. This code could then be executed on the Flowise server host, leading to remote code execution.
- Server host system commands at risk.
- Unauthenticated arbitrary JavaScript execution.
- Compromised server and potential data access.
Priority actions
Operational Fix
Recommended remediation, mitigation, and detection steps
Application owners and platform teams are likely responsible for addressing this vulnerability. The first practical step involves identifying all instances of Flowise, assessing their reachability and criticality, and confirming the accountable owner before planning remediation.
- Identify Flowise deployment owners.
- Verify network reachability and criticality.
- Plan remediation based on risk.