Flowise
CVE-2025-61913
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to Flowise instance
-
DeliveryBuild flow with ReadFile/WriteFile tool
-
ExploitSupply absolute/traversal file path
-
ExecutionRead secrets or write to startup/SSH path
-
ImpactAchieve RCE on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated Flowise account (PR:L) with the ability to create or modify a flow that includes the ReadFileTool or WriteFileTool nodes; the attacker then passes an arbitrary absolute or traversal path to the file_path parameter, which in versions < 3.0.8 is handed directly to NodeFileStore with no workspace-boundary or path validation. Limiting factors: exploitation needs valid credentials and access to the flow builder, so instances that disable open registration and restrict tool availability reduce exposure; however, the public PoC shows that on default deployments allowing self-registration this barrier is minimal. RCE is not guaranteed by the flaw itself but is achievable via arbitrary file write to sensitive locations (SSH keys, cron, startup scripts) or by exfiltrating the Flowise encryption key/database. |
| Impact | This is a genuine high-priority issue, not a CVSS-inflated one. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H = 9.9) describes a network-reachable, low-complexity flaw needing only low-privilege authentication, with a scope change reflecting that arbitrary file read/write escapes the application boundary into the host OS filesystem. Multiple corroborating signals raise confidence: a publicly available PoC (verified against the latest Flowise Docker image), two GitHub Security Advisories, and a vendor patch in 3.0.8. EPSS and CISA KEV data were not provided in the input, so probabilistic exploitation likelihood and confirmed in-the-wild status are unknown; the presence of public exploit code does NOT equate to active exploitation. The one caveat is that exploitation requires an authenticated account (PR:L) and the ability to build/run a flow that includes ReadFileTool/WriteFileTool - but on instances allowing self-registration (as the PoC demonstrates), that barrier is effectively trivial, which is why real-world risk should be treated as high despite the authentication requirement. |
| Exploit ScenarioDerived | An attacker registers or obtains a low-privileged account on an exposed Flowise instance, builds an agent flow using ReadFileTool/WriteFileTool, and supplies an absolute path (e.g. /root/.flowise/encryption.key, /etc/passwd, or /root/.ssh/id_rsa) that is passed directly to the file store with no path validation. Reading the encryption key and SQLite database exposes stored secrets, while arbitrary file write (to SSH authorized_keys, cron, or startup scripts) escalates to remote command execution on the host. A public PoC confirmed against the latest Flowise Docker image already exists. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 30, 2026
Arbitrary file read and write in Flowise versions prior to 3.0.8 allows an authenticated attacker with access to the flow builder to read or overwrite any file the Flowise process can reach, including secrets such as /root/.flowise/encryption.key and database.sqlite in Docker deployments, or /etc/shadow and SSH private keys on bare-metal installs. The issue is rated 9.9 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, CWE-22) and publicly available exploit code exists, so the barrier is mainly the need for a valid account and the ability to add the vulnerable file tools to a flow; command execution is achievable through arbitrary file write to sensitive paths rather than being guaranteed by the traversal alone. No CISA KEV listing or confirmed in-the-wild exploitation has been reported, but default deployments that permit open self-registration are effectively wide open to this chain.
RemediationAI
The primary fix is to upgrade to Flowise 3.0.8 or later - npm install flowise@3.0.8 and flowise-components@3.0.8, or pull a rebuilt flowiseai/flowise image tagged 3.0.8 or newer - which is the vendor-released patch containing commit 1fb12cd93143592a18995f63b781d25b354d48a3; after upgrading, re-open existing flows and set an explicit 'Workspace Path', keep 'Enforce Workspace Boundaries' enabled (it defaults to true), and apply the new Max File Size and Allowed Extensions restrictions. See https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-j44m-5v8f-gc9c and https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-jv9m-vf54-chjj for details. If you cannot patch immediately, the most effective compensating controls are to disable open self-registration and restrict the flow-builder role to trusted operators, and to remove or stop using the ReadFileTool and WriteFileTool nodes in any exposed flow (trade-off: loss of file-based agent functionality, which may break existing automations). Additionally, run Flowise as a non-root user in a container with only the required directories bind-mounted read-only (for example omit /root/.flowise from writable mounts, which protects encryption.key and database.sqlite but may break legitimate persistence), block the Flowise UI/API port from untrusted networks with a reverse proxy or firewall, and rotate any secrets, SSH keys, or Flowise encryption keys that may already reside on a host where untrusted users had builder access. Note that no combination of these workarounds fully restores the pre-patch read/write isolation, so upgrading remains the only complete remediation.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-22 improper limitation of a pathname to a restricted directory. Flowise ships two LangChain-style tools, ReadFileTool and WriteFileTool, in packages/components/nodes/tools/ReadFile/ReadFile.ts and packages/components/nodes/tools/WriteFile/WriteFile.ts, each extending StructuredTool and delegating to the NodeFileStore class from langchain/stores/file/node. Their zod schema accepted a single user-supplied file_path string and passed it straight into store.readFile()/writeFile() with no canonicalization, no check that the resolved path stayed under a configured base directory, no extension allow-list, and no file-size cap. An attacker who controls a flow (authenticated, PR:L) therefore supplies an absolute path or traversal sequence and the tool happily operates outside its intended workspace. The 3.0.8 fix replaces NodeFileStore with a new SecureFileStore (packages/components/src/SecureFileStore) configured via FileSecurityConfig, which introduces a workspacePath root, an enforceWorkspaceBoundaries boolean that defaults to true, a maxFileSize limit (default 10 MB) and an allowedExtensions allow-list; the tool schema itself moves from 'basePath' to 'workspacePath' and bumps the node version to 2.0, and when no workspace path is given and boundaries are enforced it falls back to ~/.flowise, while explicitly disabling boundaries logs a security warning and constructs an unsecured store. The affected supply-chain artifacts are the npm packages flowise and flowise-components (both CPE-mapped as cpe:2.3:a:flowiseai:flowise:*:*:*:*:*:*:*:*).
Know when Flowise gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Network-reachable tool with low-privileged auth (PR:L) and no user interaction; unvalidated path read/write breaks the app boundary to the host OS (S:C) enabling full file read, write, and RCE (C/I/A:H).
Primary rating from NVD.
CVSS VectorNVD
DescriptionNVD
Flowise is a drag & drop user interface to build a customized large language model flow. In versions prior to 3.0.8, WriteFileTool and ReadFileTool in Flowise do not restrict file path access, allowing authenticated attackers to exploit this vulnerability to read and write arbitrary files to any path in the file system, potentially leading to remote command execution. Flowise 3.0.8 fixes this vulnerability.
Executive ViewAI
Flowise deployments prior to 3.0.8 are exposed to a critical arbitrary file read/write issue that an authenticated flow-builder user can use to reach application and host secrets, and publicly available exploit code exists. Because default configurations may permit open self-registration, organizations with exposed or lightly governed Flowise instances face potential credential theft, data tampering, and follow-on command execution through writable sensitive paths; no CISA KEV listing has been reported. Leadership should treat this as an urgent exposure requiring patch verification, access restriction, and secret rotation.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)NVD
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Flowise versions before 3.0.1 allow unauthenticated access to the Custom MCPs feature, which is designed to execute OS c
FlowiseAI Flowise version 2.2.6 contains an arbitrary file upload vulnerability in the /api/v1/attachments endpoint. Una
Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per
Flowise is a drag & drop user interface to build a customized large language model flow. Rated critical severity (CVSS 9
Authenticated users can upload arbitrary files to Flowise 3.0.7 due to missing validation, enabling persistent storage o
Unrestricted file upload in Flowise LLM workflow builder before 3.0.13 via /api/v1/attachments endpoint allows unauthent
Missing authentication on NVD data endpoint in Flowise before 3.0.13 allows unauthenticated access to internal vulnerabi
Authenticated remote code execution in FlowiseAI Flowise (v3.0.1 up to but not including 3.0.8, and later versions when
Remote code execution in Flowise before 3.1.3 arises because its Pyodide Python-code validator (validatePythonCodeForDat
Remote code execution in FlowiseAI Flowise before 3.1.3 lets an attacker execute arbitrary OS commands as the Flowise pr
Remote command execution in Flowise <= 3.1.2 lets an authenticated user break out of the vm2/@flowiseai/nodevm JavaScrip
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB