Flowise allows authenticated users to write files anywhere on the server

HighSE Fix-First Score 43/100GHSA-88pr-878c-24wfSE-AIV-01624Reading or writing files it should notAI apps and chat interfacesMade public 4 Aug 2026

Download as PDF

What this means

An attacker with preview permission in Flowise can write files to any location on the server where the Flowise process has permission to write. This could overwrite critical system or application files, inject malicious code, or disrupt service. If the Flowise process runs with high privileges, an attacker could compromise the entire server.

SecurityElites Manager Brief: the decision in one minute

Flowise versions before 3.1.3 allow authenticated users to write files outside the intended directory on the server. This can lead to data corruption, code injection, or system compromise. All Flowise deployments must be upgraded to 3.1.3 immediately.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team responsible for Flowise deployments.
Likely effortAbout 15 minutes per deployment: download and install version 3.1.3 and restart the Flowise service. It may take longer if you run multiple Flowise instances or if you need to verify the fix across a large environment.

Questions to ask your team or supplier

  • Has anyone used the S3 Directory or S3 File document loader in our Flowise instances in the past few months? If so, who and when?
  • What filesystem permissions does the Flowise process run with, and are there any critical or sensitive files that it can write to?
  • Do we have file integrity monitoring or audit logging in place that would have detected if files were written outside the expected Flowise directories?

Message you can forward to the owning team

Security notice: Flowise allows authenticated users to write files anywhere on the server (GHSA-88pr-878c-24wf)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to flowise-components 3.1.3, flowise 3.1.3 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/ghsa-88pr-878c-24wf-flowise-allows-authenticated-users-to-write-files-anywhere-on/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01624

What is at stake in your AI setup

  • Model files and weights stored on the server could be overwritten or corrupted, disrupting AI pipeline operation
  • Training or retrieval data used by document loaders could be replaced with malicious content, poisoning model outputs
  • System configuration files or scripts could be injected with malicious code if written to startup or initialization paths
  • API keys or credentials for AI services and cloud providers stored on disk could be overwritten or leaked

Map where your company uses AI

Who is exposed

  • Flowise servers running version 3.1.2 or earlier with S3 document loaders enabled
  • Teams using the S3 Directory or S3 File loader with unstructured file processing
  • Any user with documentStores:preview-process permission in affected Flowise instances
  • Systems where the Flowise process runs with elevated privileges on the host

Upgrades you need

SoftwareAffected versionsMove to
flowise-components
npm
Every version before 3.1.33.1.3 or later
flowise
npm
Every version before 3.1.33.1.3 or later

Am I affected?

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

SecurityElites Developer Brief: the technical picture

Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user 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 readNone
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh

Read from the official severity rating: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Kind of coding mistake

  • CWE-22: file paths can escape the allowed folder
  • CWE-73

If you cannot upgrade today

  • Temporarily disable the S3 Directory and S3 File document loaders in Flowise configuration until you can upgrade to version 3.1.3
  • Restrict the documentStores:preview-process permission to only trusted users with a business need
  • Run the Flowise process with minimal file system permissions so an attacker cannot write to critical directories even if this bug is exploited

Signs it may already have been used against you

  • Review Flowise audit logs for preview-process actions on S3 Directory or S3 File loaders in the timeframe before the upgrade
  • Search the host filesystem for files created outside the Flowise temp directory (typically /tmp or similar) in the same timeframe
  • Check system file integrity tools or file access logs for unexpected writes to system directories or configuration files
  • Look for any files with suspicious paths like those containing ../ sequences in Flowise logs or S3 object keys that were processed

SecurityElites Fix Guide: step by step

  1. Find all Flowise installationsList every server or container running Flowise in your environment. Check your deployment tools, container registries, and infrastructure as code for every instance.
  2. Check the current version of flowise and flowise-componentsOn each Flowise server, run npm list flowise flowise-components or check package.json. Record the installed version of each package.
  3. Back up the systemTake a snapshot or backup of each Flowise server before making changes. This protects you if something goes wrong during the upgrade.
  4. Upgrade flowise and flowise-components to version 3.1.3Update both packages to exactly version 3.1.3 using your package manager. Follow your normal deployment process for installing updates.
  5. Restart the Flowise serviceRestart each Flowise instance after the upgrade completes. Wait for it to come back online and verify it starts without errors.
  6. Verify the fix is in placeOn each server, confirm that flowise and flowise-components are now at version 3.1.3 by running npm list flowise flowise-components again.
  7. Review access logs for suspicious activityCheck Flowise logs and server file system logs from before the upgrade date to see if S3 loaders were used to write files outside expected directories. Look for files created outside the Flowise temp directory.
  8. Revoke and reset credentials if exposedIf you find evidence of exploitation, change all S3 credentials, AWS keys, and any other secrets that the Flowise process can access. Review what files were written and remove any that should not exist.

How to confirm it is fixed: Confirm that both flowise and flowise-components are at version 3.1.3 or later by running npm list flowise flowise-components and that the Flowise service has restarted successfully.

SecurityElites Quick Fixes: copy and paste

Upgrade flowise-components with npmupgrade

npm install flowise-components@3.1.3
npm ls flowise-components

Upgrade flowise with npmupgrade

npm install flowise@3.1.3
npm ls flowise

Check installed versions of flowise packagesfor this issue

npm list flowise flowise-components

Check flowise version in package.jsonfor this issue

grep -A 2 '"flowise"\|"flowise-components"' package.json

Keep file access inside one directory (Python)general hardening

from pathlib import Path

BASE = Path("/srv/app/data").resolve()

def safe_path(name: str) -> Path:
    p = (BASE / name).resolve()
    if not p.is_relative_to(BASE):
        raise ValueError("path outside allowed directory")
    return p

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 (GHSA-88pr-878c-24wf) 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-components (npm): must be 3.1.3 or later
   - flowise (npm): must be 3.1.3 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 versions of flowise and flowise-components need to be installed to fix this issue?A good answer: Both flowise and flowise-components must be upgraded to version 3.1.3 or later.
What permission does an attacker need in Flowise to exploit this bug?A good answer: An authenticated user must have the documentStores:preview-process permission to trigger the S3 loaders and control the S3 object keys.
What is the main risk if this bug is exploited on a production server?A good answer: An attacker can write files anywhere on the server that the Flowise process has write access to, potentially overwriting system files, injecting code, or disrupting service.
What should you check if you suspect this bug was exploited before you patched it?A good answer: Review Flowise preview logs and filesystem logs for unexpected files created outside the temp directory, and reset any credentials that the Flowise process can access.

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 allows authenticated users to write files anywhere on the server (GHSA-88pr-878c-24wf)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01624 https://securityelites.com/ai-vulnerabilities/ghsa-88pr-878c-24wf-flowise-allows-authenticated-users-to-write-files-anywhere-on/

### Why this matters
An attacker with preview permission in Flowise can write files to any location on the server where the Flowise process has permission to write. This could overwrite critical system or application files, inject malicious code, or disrupt service. If the Flowise process runs with high privileges, an attacker could compromise the entire server.

### What to do
1. Find all Flowise installations
2. Check the current version of flowise and flowise-components
3. Back up the system
4. Upgrade flowise and flowise-components to version 3.1.3
5. Restart the Flowise service
6. Verify the fix is in place
7. Review access logs for suspicious activity
8. Revoke and reset credentials if exposed

Full steps: https://securityelites.com/ai-vulnerabilities/ghsa-88pr-878c-24wf-flowise-allows-authenticated-users-to-write-files-anywhere-on/

### Done when
- [ ] flowise-components is at 3.1.3 or later everywhere it is installed
- [ ] flowise is at 3.1.3 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm that both flowise and flowise-components are at version 3.1.3 or later by running npm list flowise flowise-components and that the Flowise service has restarted successfully.
- [ ] 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

  • 4 Aug 2026: Made public
  • 2 Dec 2026: Published

Official record

## Summary Flowise on current `main` allows an authenticated user with `documentStores:preview-process` permission to trigger the `S3 Directory` document loader with attacker-controlled S3 object keys. The loader joins each returned S3 key with a temporary directory using `path.join(tempDir, key)` and writes the object bytes to disk **without validating traversal sequences such as `../`**. Cleanup later removes only the original temporary directory, so files written outside that directory persist on the host filesystem. This yields **arbitrary file write** with the privileges of the Flowise server process. A related variant exists in the `S3File` loader when `fileProcessingMethod = unstructured` (same root cause; its cleanup behavior turns it into a mixed arbitrary write/delete/DoS primitive). ## Affected component - `packages/components/nodes/documentloaders/S3Directory/S3Directory.ts` - line **191**: `filePath = path.join(tempDir, key)` (unsanitized) - line **213**: recursive `mkdirSync` creates parent path - line **216**: `writeFileSync` writes attacker-controlled bytes - line **289**: cleanup only removes the original `tempDir`

Weakness type: CWE-22, CWE-73

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/GHSA-88pr-878c-24wf

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.