Flowise can run attacker code when connecting to databases

CriticalSE Fix-First Score 51/100CVE-2026-69251SE-AIV-01649Remote code executionAI apps and chat interfacesMade public 4 Aug 2026

Download as PDF

What this means

An attacker who can build or edit a Flowise flow can run any code on the server where Flowise runs. This gives them full control of the server, all data it can reach, and any accounts or systems it connects to.

SecurityElites Manager Brief: the decision in one minute

Flowise versions before 3.1.3 let anyone who can edit a flow run code on your server. Upgrade both flowise and flowise-components to 3.1.3 immediately, and limit who can edit flows.

SecurityElites Fix-First Score51 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 7 days
Critical severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform engineering or DevOps team.
Likely effortAbout 15 minutes per server: check the current version, upgrade npm packages flowise and flowise-components to 3.1.3 or later, and restart Flowise.

Questions to ask your team or supplier

  • Do we know which versions of flowise and flowise-components are running in production, and are they all below 3.1.3?
  • Who can currently create and edit Flowise flows, and do we have a way to audit what changes they make?
  • Have any Flowise flows been edited since we started running this version, and if so, did those edits include changes to database node settings?

Message you can forward to the owning team

Security notice: Flowise can run attacker code when connecting to databases (CVE-2026-69251)

Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to flowise 3.1.3, flowise-components 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/cve-2026-69251-flowise-can-run-attacker-code-when-connecting-to-databases/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01649

What is at stake in your AI setup

  • Tools and systems the agent is connected to: an attacker can use the compromised server to access any database, API, or service Flowise is configured to reach.
  • Training or retrieval data: an attacker can read or modify any data stored in databases that Flowise connects to, including knowledge bases and training sets.
  • Keys for AI providers: an attacker can steal API keys, tokens, and credentials stored in Flowise settings or environment variables to access external AI services and bill your account.
  • Compute bill: an attacker can run expensive operations or deploy additional services on the compromised infrastructure, increasing your costs.

Map where your company uses AI

Who is exposed

  • Teams running Flowise 3.1.2 or earlier with database nodes (MySQL, Postgres, SQLite record managers or agent memory nodes).
  • Setups where people other than administrators can create or edit Flowise flows.
  • Flowise instances accessible to multiple users or teams.

Upgrades you need

SoftwareAffected versionsMove to
flowise
npm
Every version before 3.1.33.1.3 or later
flowise-components
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

Is it being attackedWorking attack code is public, so expect attacks to follow
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 readHigh
Risk of: data or settings being changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, according to CISA

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

Kind of coding mistake

  • CWE-94: code can be injected

If you cannot upgrade today

  • Until you can upgrade, restrict access to the Flowise UI so that only trusted administrators can create or edit flows. Use firewall rules or authentication controls.
  • Remove or disable any flows that use database connection nodes (MySQLRecordManager, PostgresRecordManager, SQLiteRecordManager, MySQLAgentMemory, AgentMemory) if they were edited by untrusted users.
  • Review all existing flows that use these database nodes and check the `additionalConfig` field for any code that should not be there.

Signs it may already have been used against you

  • In Flowise flow definitions, look for database nodes (MySQLRecordManager, PostgresRecordManager, SQLiteRecordManager, MySQLAgentMemory, AgentMemory) that have `additionalConfig` fields containing JavaScript code, file paths, or unusual comm
  • Check Flowise audit logs or git history for flows created or modified by users who should not have editing access, especially before the upgrade date.
  • Look for unexpected child processes spawned by the Flowise process, especially those running shell commands or accessing files outside the Flowise directory.
  • Monitor the Flowise error logs for stack traces mentioning TypeORM `DataSource` or Node.js module loading errors, which could indicate code execution attempts.

SecurityElites Fix Guide: step by step

  1. Find where Flowise is installedLog in to each server or container running Flowise. Run `npm list flowise flowise-components` to see the installed versions. Record all locations.
  2. Check the current versionsNote the version number for flowise and flowise-components from the previous step. If either is below 3.1.3, the server is affected.
  3. Back up Flowise dataStop the Flowise service. Copy the Flowise data directory (usually `.flowise/` in the home directory) to a safe location. This protects your flows, chat history, and settings.
  4. Upgrade to the fixed versionIn the Flowise installation directory, run `npm install flowise@3.1.3 flowise-components@3.1.3`. Wait for the installation to finish.
  5. Restart FlowiseStart the Flowise service. Wait 10 seconds for it to fully start, then check that it is running and responding to requests.
  6. Verify the fix is in placeRun `npm list flowise flowise-components` again and confirm both show version 3.1.3 or later.
  7. Review who edited flows before the fixCheck Flowise audit logs or git history for flows that were created or modified before the upgrade. If someone who should not have had that access edited flows, investigate whether malicious code was added.
  8. Restrict flow editing permissionsChange Flowise settings or hosting to limit who can create or edit flows. Only administrators should have this access unless you can monitor all changes.

How to confirm it is fixed: Run `npm list flowise flowise-components` and confirm both packages show version 3.1.3 or later.

SecurityElites Quick Fixes: copy and paste

Upgrade flowise with npmupgrade

npm install flowise@3.1.3
npm ls flowise

Upgrade flowise-components with npmupgrade

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

Check installed versions of Flowise packagesfor this issue

npm list flowise flowise-components

Run the service in a locked-down containergeneral hardening

docker run --read-only --cap-drop ALL \
  --security-opt no-new-privileges --user 1000:1000 \
  -p 127.0.0.1:8080:8080 YOUR_IMAGE

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 (CVE-2026-69251) 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 (npm): must be 3.1.3 or later
   - flowise-components (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 type of code could an attacker inject through a database node's additionalConfig field, and what could they do with it?A good answer: An attacker could inject JavaScript code that runs on the Flowise server, allowing them to execute shell commands, read files, access the network, or modify data.
Which Flowise components are vulnerable to this attack?A good answer: Database record manager and agent memory nodes that connect to MySQL, Postgres, or SQLite using TypeORM DataSource, specifically those that accept user input in an additionalConfig field.
What is the first step to protect ourselves if we cannot upgrade immediately?A good answer: Restrict access to the Flowise flow editor so that only trusted administrators can create or modify flows.
How do we confirm that the upgrade fixed the vulnerability?A good answer: Run npm list to verify that both flowise and flowise-components are version 3.1.3 or later.

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 can run attacker code when connecting to databases (CVE-2026-69251)

**Severity:** Critical  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-01649 https://securityelites.com/ai-vulnerabilities/cve-2026-69251-flowise-can-run-attacker-code-when-connecting-to-databases/

### Why this matters
An attacker who can build or edit a Flowise flow can run any code on the server where Flowise runs. This gives them full control of the server, all data it can reach, and any accounts or systems it connects to.

### What to do
1. Find where Flowise is installed
2. Check the current versions
3. Back up Flowise data
4. Upgrade to the fixed version
5. Restart Flowise
6. Verify the fix is in place
7. Review who edited flows before the fix
8. Restrict flow editing permissions

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-69251-flowise-can-run-attacker-code-when-connecting-to-databases/

### Done when
- [ ] flowise is at 3.1.3 or later everywhere it is installed
- [ ] flowise-components is at 3.1.3 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `npm list flowise flowise-components` and confirm both packages show version 3.1.3 or later.
- [ ] 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

============================================================================= Security Advisory elttamTopic: Flowise RCE via TypeORM DataSourceModule: FlowiseAI/Flowise Disclosed: 15-Apr-2026 Credits: Alex Brown Affects: `FlowiseAI/Flowise 3.1.2`# I. BackgroundFlowise AI is an open-source, low-code platform for building AI applications—such as chatbots, workflows, and autonomous agents—through an intuitive drag-and-drop interface, minimising the need for extensive coding.Flowise allows users to connect to remote databases within a flow, which is performed using the [TypeORM `DataSource`](https://typeorm.io/docs/data-source/data-source).# II. Problem DescriptionThe following nodes allowed users to set arbitrary options for the TypeORM `DataSource` class using the `additionalConfig` node input:* [packages/components/nodes/recordmanager/MySQLRecordManager/MySQLrecordManager.ts](https://github.com/FlowiseAI/Flowise/blob/flowise-components%403.1.2/packages/components/nodes/recordmanager/MySQLRecordManager/MySQLrecordManager.ts#L122) * [packages/components/nodes/recordmanager/PostgresRecordManager/PostgresRecordManager.ts](https://github.com/FlowiseAI/Flowise/blob/465005a5036d9c4e5e3a7675527fa4cf9cff7507/packages/components/nodes/recordmanager/PostgresRecordManager/PostgresRecordManager.ts) * [packages/components/nodes/recordmanager/SQLiteRecordManager/SQLiteRecordManager.ts](https://github.com/FlowiseAI/Flowise/blob/465005a5036d9c4e5e3a7675527fa4cf9cff7507/packages/components/nodes/recordmanager/SQLiteRecordManager/SQLiteRecordManager.ts) * [packages/components/nodes/memory/AgentMemory/MySQLAgentMemory/MySQLAgentMemory.ts](https://github.com/FlowiseAI/Flowise/blob/5a37227d14dbe34234aa1cca97bc12092e0dbcd6/packages/components/nodes/memory/AgentMemory/MySQLAgentMemory/MySQLAgentMemory.ts) * [packages/components/nodes/memory/AgentMemory/AgentMemory.ts](https://github.com/FlowiseAI/Flowise/blob/5a37227d14dbe34234aa1cca97bc12092e0dbcd6/packages/components/nodes/memory/AgentMemory/AgentMemory.ts)This is considered a dangerous coding practice, because the [options for the TypeORM `DataSource` class support loading local files as JavaScript code](https://typeorm.io/docs/data-source/data-source).The following documents the steps to reproduce this RCE vulnerability by abusing the `additionalConfig` input on a MySQL Record Manager (`packages/components/nodes/recordmanager/MySQLRecordManager/MySQLrecordManager.ts`) node:1. Log into a Flowise instance and note the organisation ID in the response from `POST /api/v1/auth/login`, as shown below.```http HTTP/1.1 200 OK Set-Cookie: token=<REDACTED>; Path=/; HttpOnly; SameSite=Lax Set-Cookie: refreshToken=<REDACTED>; Path=/; HttpOnly; SameSite=Lax Set-Cookie: connect.sid=<REDACTED>; Path=/; HttpOnly; SameSite=Lax Content-Type: application/json; charset=utf-8 Content-Length: 671 ETag: W/"29f-xnGhZVNYDhOOLUuVSPq0rZLC8mE" Date: Wed, 15 Apr 2026 10:58:44 GMT Connection: keep-alive Keep-Alive: timeout=5{ "activeOrganizationCustomerId": null, "activeOrganizationId": "c060f6ef-047b-47b0-8f1a-15ffa11961cc", <1> "activeOrganizationProductId": "", "activeOrganizationSubscriptionId": null, "activeWorkspace": "Default Workspace", "activeWorkspaceId": "3206d8d3-944f-48c6-9332-11e2752b793e", "assignedWorkspaces": [ { "id": "3206d8d3-944f-48c6-9332-11e2752b793e", "name": "Default Workspace", "organizationId": "c060f6ef-047b-47b0-8f1a-15ffa11961cc", <1> "role": "owner" } ], "email": "admin@flowise.local", "features": {}, "id": "b60bc90f-c77d-41ba-bb7b-cbd7f9e6d4ab", "isOrganizationAdmin": true, "isSSO": false, "name": "Admin", "permissions": [ "organization", "workspace" ], "role

Weakness type: CWE-94

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-69251

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.