All vulnerabilities

Servers and applications

CVE-2026-12821

Authenticated arbitrary file write in Flowise `S3 Directory` document loader via unsanitized S3 object keys

Severity
High 7.2
Published
29 Jul 2026
Last changed
4 Aug 2026
Added to UpHeron
1 Nov 2026
Fixed in
3.1.3
Exploit chance
0.5% in the next 30 daysHigher than 43% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Path traversal (CWE-22)CWE-73
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Change data · Take it down
CVSS vector
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
Also known as
GHSA-88pr-878c-24wf
Sources
Project advisories (GitHub)

Description

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). I recommend fixing both sinks in the same patch.

  • Routes exposed: packages/server/src/routes/documentstore/index.ts:41,45 (/api/v1/document-store/loader/preview, /api/v1/document-store/loader/process/:loaderId)
  • Both…
From FlowiseAI/Flowise's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
FlowiseServers and applications · github:flowiseai/flowise
  • Every version before 3.1.3

About Flowise

Build AI Agents, Visually

From its GitHub repository.
Archived
Yes, no longer maintainedGitHub
Weekly downloads (npm)
6,604npm, 15 Nov 2026
Docker Hub pulls
7,390,661Docker Hub, 15 Nov 2026
GitHub stars
55,573GitHub, 15 Nov 2026
Forks
25,094GitHub, 15 Nov 2026
Latest release
[email protected]GitHub, 15 Nov 2026
Released
29 Jul 2026GitHub
First published on GitHub
31 Mar 2023GitHub

References