Summary
CVE-2026-52098 is a critical remote code execution vulnerability affecting Flowise, an open-source generative AI development platform used to build and deploy AI agents and LLM workflows. The issue is exposed through the /api/v1/prediction/<flowId> endpoint and allows a remote, unauthenticated attacker to execute arbitrary code on the underlying server. The flaw has been assigned a CVSS v3.1 base score of 9.8 (Critical).
Technical details
- The vulnerability is classified as improper control of generation of code (code injection).
- It is triggered via requests to the
/api/v1/prediction/<flowId>API endpoint, which is used to invoke a configured chatflow/agent and return its prediction. - The attack vector is network-based, requires no privileges, and requires no user interaction, meaning an attacker only needs network reachability to a vulnerable Flowise instance.
- Successful exploitation results in arbitrary code execution on the host running Flowise, leading to full compromise of confidentiality, integrity, and availability of the affected system.
Affected software
- Flowise version 3.1.2
Severity
- CVSS v3.1 Base Score: 9.8 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: Upgrade Flowise to a version newer than 3.1.2 once the maintainers publish a fix that addresses this issue; monitor the official FlowiseAI GitHub repository for a patched release and associated advisory.
- If no patch is yet available: Restrict network exposure of the
/api/v1/prediction/<flowId>endpoint and the Flowise management interface to trusted networks only (e.g., via VPN, allow-listing, or a reverse proxy with authentication). - Enforce API key authentication on all prediction/chatflow endpoints and ensure keys are not exposed or reused across environments.
- Monitor Flowise server logs and outbound network connections for signs of anomalous process execution or reverse-shell activity following requests to prediction endpoints.
- Review and limit the use of nodes/features that execute custom code or scripts within chatflows, as these have historically been a source of code-execution issues in Flowise.

