Skip to main content

Flowise CVE-2025-61913

CRITICAL
Path Traversal (CWE-22)
2025-10-08 security-advisories@github.com
9.9
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Flowise instance
  2. Delivery
    Build flow with ReadFile/WriteFile tool
  3. Exploit
    Supply absolute/traversal file path
  4. Execution
    Read secrets or write to startup/SSH path
  5. Impact
    Achieve 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
Patch available 13.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

npm flowise fix: 3.0.8
npm flowise-components fix: 3.0.8

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

NVD PRIMARY 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
13.0%
Top 4% exploitable
Prevalence
Medium
popular open-source LLM flow-builder, common in AI dev but not ubiquitous enterprise infra
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 13.0%
Patch available Yes
Active threat Yes
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

83
Low Medium High Critical
KEV: 0
EPSS: +13
CVSS: +50
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)NVD

cpe:2.3:a:flowiseai:flowise:*:*:*:*:*:*:*:*
CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2025-8943 CRITICAL POC
9.8 Aug 14

Flowise versions before 3.0.1 allow unauthenticated access to the Custom MCPs feature, which is designed to execute OS c

CVE-2025-26319 CRITICAL POC
9.8 Mar 04

FlowiseAI Flowise version 2.2.6 contains an arbitrary file upload vulnerability in the /api/v1/attachments endpoint. Una

CVE-2026-56274 HIGH POC
8.7 Jun 23

Remote code execution in Flowise before 3.1.2 allows any authenticated user (or API caller with chatflow view/update per

CVE-2025-58434 CRITICAL POC
9.8 Sep 12

Flowise is a drag & drop user interface to build a customized large language model flow. Rated critical severity (CVSS 9

CVE-2025-61687 HIGH POC
8.8 Oct 06

Authenticated users can upload arbitrary files to Flowise 3.0.7 due to missing validation, enabling persistent storage o

CVE-2026-30821 CRITICAL POC
9.8 Mar 07

Unrestricted file upload in Flowise LLM workflow builder before 3.0.13 via /api/v1/attachments endpoint allows unauthent

CVE-2026-30824 CRITICAL POC
9.8 Mar 07

Missing authentication on NVD data endpoint in Flowise before 3.0.13 allows unauthenticated access to internal vulnerabi

CVE-2025-34267 HIGH POC
8.4 Oct 14

Authenticated remote code execution in FlowiseAI Flowise (v3.0.1 up to but not including 3.0.8, and later versions when

CVE-2026-70470 CRITICAL POC
9.5 Aug 04

Remote code execution in Flowise before 3.1.3 arises because its Pyodide Python-code validator (validatePythonCodeForDat

CVE-2026-69264 CRITICAL POC
9.4 Aug 04

Remote code execution in FlowiseAI Flowise before 3.1.3 lets an attacker execute arbitrary OS commands as the Flowise pr

CVE-2026-73483 CRITICAL POC
9.4 Aug 13

Remote command execution in Flowise <= 3.1.2 lets an authenticated user break out of the vm2/@flowiseai/nodevm JavaScrip

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy