CVE-2026-91934
Flowise before 3.1.4 Remote Code Execution via SQL Database Chain
Refuses creating files in /etc/chromium and inside flowise-ui/build by node processes to mitigate CVE-2026-91934.
High 8.7Vetted
EPSS 0.7%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
At a glance
CVE-2026-91934 is a high (CVSS 8.7) vulnerability in Flowise, published 15 September 2026. A vetted upatch, cve-2026-91934-file-block, blocks it on running Linux machines with shirudo until Flowise is upgraded.
- Severity
- High 8.7 CVSS 4.0
- Chance of exploitation
- 0.7% in the next 30 days (EPSS, 24 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Weakness
- CWE-22
- Affected software
- Flowise (FlowiseAI)
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
CVE-2026-91934 (GHSA-pwfj-wh95-7mwp), published on 15 September 2026,
affects Flowise (flowise and flowise-components npm packages) before
3.1.4. In packages/components/nodes/chains/SqlDatabaseChain/SqlDatabaseChain.ts,
getSQLDBChain accepts a user-supplied SQLite file path (url) and passes
it to TypeORM's DataSource (or, in 3.1.3, validates only the initial path
while still allowing arbitrary SQL statements on the SQLite connection).
An authenticated user who configures or runs a Chatflow with a Sql Database Chain
node can make Flowise create a new SQLite database file at an arbitrary path:
in /etc/chromium/*.conf (sourced as a shell script by the Chromium launcher
when Puppeteer runs) for remote code execution, or in flowise-ui/build/
for stored XSS.
Official description
Flowise versions before 3.1.4 fail to validate file paths in the SQL Database Chain node when connecting to SQLite databases, allowing authenticated attackers to write arbitrary files. Attackers can write malicious SQLite databases to system directories or inject files into the web root to execute commands or perform stored XSS attacks.
Affected versions
Application vulnerability: flowise and flowise-components versions
through 3.1.3 are affected; version 3.1.4 fixes the issue by restricting
SQLite paths with validateSQLitePath and restricting SQLite queries in
getSQLDBChain with assertReadOnlySqlStatement.
Kernels: the program uses the inode_create LSM hook prototype that takes
const struct mnt_idmap *idmap as its first argument, as Linux 7.4 and
current mainline do.
Sources
More references from NVD (2)
Mitigation
One BPF LSM program returns -EPERM to processes whose executable is
named node:
| Hook | Refused |
|---|---|
lsm/inode_create |
Creating a file directly inside etc/chromium or flowise-ui/build |
The program checks the parent directory's name and its parent's name first
(etc/chromium or flowise-ui/build), and only when one matches checks
whether the current task's executable is node. A refusal from an earlier
BPF LSM program on the same hook is passed on.
The refused per-CPU array counts refusals at key 0.
Side effects
- A
nodeprocess cannot create new files directly in/etc/chromiumor inflowise-ui/buildat runtime. Flowise never writes to/etc/chromium, andflowise-ui/buildcontains static frontend assets built at package publish time. - Package managers or build scripts that invoke
nodeto build or unpack files directly intoflowise-ui/buildwhile the upatch is loaded will receiveEPERM;npm installextracts tarballs without creating files in/etc/chromium, though installingflowise-uiwhile the upatch is loaded may be blocked ifnodecreates files inflowise-ui/build. - Not covered: writes to other directories on the filesystem, or overwriting
an existing file in
/etc/chromiumorflowise-ui/buildwithout creating a new inode.
Preemption model and cost
The program keeps no state beyond the per-CPU refusal counter, which it
updates with an atomic add (__sync_fetch_and_add), so it is safe under
every preemption model, including PREEMPT_LAZY, preemptible RCU and
PREEMPT_RT. On every inode_create outside directories named chromium
or build, a run costs one comparison of the parent dentry's d_name.len.
The policy
87 lines of BPF C, attached at lsm/inode_create.
// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#define EPERM 1
char _license[] SEC("license") = "Dual BSD/GPL";
enum {
REFUSED_CREATE,
NR_COUNTERS,
};
struct {
__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
__uint(max_entries, NR_COUNTERS);
__type(key, __u32);
__type(value, __u64);
} refused SEC(".maps");
static __always_inline void count(__u32 key)
{
__u64 *value = bpf_map_lookup_elem(&refused, &key);
if (value)
__sync_fetch_and_add(value, 1);
}
static __always_inline bool name_is(const struct dentry *dentry,
const char *want, __u32 want_len)
{
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
char buf[16] = {};
if (!dentry || BPF_CORE_READ(dentry, d_name.len) != want_len ||
want_len > sizeof(buf) - 1)
return false;
if (bpf_probe_read_kernel_str(buf, sizeof(buf), name) < 0)
return false;
for (__u32 i = 0; i < sizeof(buf) - 1; i++) {
if (i == want_len)
return true;
if (buf[i] != want[i])
return false;
}
return false;
}
static __always_inline bool is_target_dir(const struct dentry *dir)
{
const struct dentry *parent = BPF_CORE_READ(dir, d_parent);
if (name_is(dir, "chromium", 8) && name_is(parent, "etc", 3))
return true;
if (name_is(dir, "build", 5) && name_is(parent, "flowise-ui", 10))
return true;
return false;
}
static __always_inline bool current_is_node(void)
{
struct task_struct *task = bpf_get_current_task_btf();
const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
return name_is(exe, "node", 4);
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
SEC("lsm/inode_create")
int BPF_PROG(cve_2026_91934_create, const struct mnt_idmap *idmap,
struct inode *dir, struct dentry *dentry, umode_t mode, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!is_target_dir(BPF_CORE_READ(dentry, d_parent)) || !current_is_node())
return 0;
count(REFUSED_CREATE);
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-91934"
description = "Refuses creating files in /etc/chromium and inside flowise-ui/build by node processes to mitigate CVE-2026-91934"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-91934-file-block.bpf.c"
[upatches.tree]
id = "cve-2026-91934-file-block"
fixes = ["CVE-2026-91934"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 15 Sept 2026CVECVE published
- 25 Nov 2026Pull requestPull request #69 openedAdd CVE-2026-91934: Refuses creating files in /etc/chromium and inside flowise-ui/build by noderomanlab
- 25 Nov 2026CIUpdate upatch.devpassed
- 25 Nov 2026CICIpassed
- 25 Nov 2026MergeMerged #69romanlab
- 25 Nov 2026CIUpdate upatch.devcancelled
No human review is recorded on GitHub for this upatch yet.
Evidence
On Flowise 3.1.2 (flowise-components 3.1.2 on Node.js 20.19.0), the loaded upatch refused the SqlDatabaseChain SQLite file creation in /etc/chromium while loaded, and allowed it before loading and after unloading.
- Tested
- 25 Nov 2026
- Target
- Flowise 3.1.2 (flowise-components 3.1.2) on Node.js 20.19.0, SqlDatabaseChain node with SQLite, loopback only
- Kernel
- 7.4-shirudo-ci-20261123
- Architecture
- x86_64
- Distribution
- Ubuntu 26.04
| State | SqlDatabaseChain creates SQLite file in /etc/chromium |
|---|---|
| Before loading | yes (HTTP 200) |
| Upatch loaded | no (HTTP 500) |
| After unloading | yes (HTTP 200) |
tools-test.log Output of tools/test --setup before, while and after the upatch was loaded.
tools/test --setup, 2026-11-25T13:59:55Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-91934 setup done FLOWISE_URL=http://127.0.0.1:3000 FLOWISE_DB=/opt/upatch-payload/cve-2026-91934/flowise-data/database.sqlite FLOWISE_TARGET_DIR=/etc/chromium before reached SqlDatabaseChain created /etc/chromium/upatch-probe-2b26d62e4400.conf (HTTP 200); removed it loaded blocked SqlDatabaseChain failed to create /etc/chromium/upatch-probe-0f5696ea9a2a.conf (HTTP 500) after reached SqlDatabaseChain created /etc/chromium/upatch-probe-2e319d1e186c.conf (HTTP 200); removed it PASS: reached before, blocked while loaded, reached again after
Use it
Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-91934shirudo bpm push build/packages/cve-2026-91934-1.0.0.bee oci://<registry>/<namespace>/cve-2026-91934 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-91934-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>