Flowise CSV Agent runs code from language model without checks
What this means
An attacker can run code on the server without logging in. This code runs as the user who started Flowise, so attackers can read files, change data, steal secrets, or shut down the service.
SecurityElites Manager Brief: the decision in one minute
Flowise takes suggestions from a language model and runs them as code without safety checks. An attacker can trick it into running harmful code without logging in. Update both packages to version 3.1.0 today.
| SecurityElites Fix-First Score | 51 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 7 days Critical severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform or infrastructure team who runs Flowise servers. |
| Likely effort | About 15 minutes per server: update the two npm packages and restart Flowise. Longer if you need to coordinate across many servers or if Flowise is deeply embedded in other systems. |
Questions to ask your team or supplier
- Do we have CSV Agent nodes in production chatflows, and if so, which teams or systems depend on them?
- Have we checked our Flowise server logs for any signs of exploitation before we update?
Message you can forward to the owning team
Security notice: Flowise CSV Agent runs code from language model without checks (CVE-2026-41264)
Severity: Critical
SecurityElites Fix-First Score: 51 of 100
SecurityElites fix window: Within 7 days
Action: upgrade to flowise 3.1.0, flowise-components 3.1.0 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-41264-flowise-csv-agent-runs-code-from-language-model-without/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01593What is at stake in your AI setup
- Keys and secrets for connected AI providers: an attacker could read these and use them to run expensive model queries or access your provider accounts
- Training or retrieval data loaded into CSV files: an attacker could read, modify, or delete this data
- Connected tools and systems the agent is linked to: an attacker could use these connections to attack other internal systems or change their state
- Compute resources: an attacker could run expensive operations and increase your hosting bill
Who is exposed
- Any server running Flowise or Flowise components version 3.0.13 or earlier
- Chatflows that use the CSV Agent node
- Teams using Flowise as part of an AI workflow or data processing system
- Development and production environments where Flowise is exposed to the internet
Upgrades you need
| Software | Affected versions | Move to |
|---|---|---|
| flowise npm | Every version before 3.1.0 | 3.1.0 or later |
| flowise-components npm | Every version before 3.1.0 | 3.1.0 or later |
Am I affected?
Enter the version you run. Nothing you type is stored.
SecurityElites Developer Brief: the technical picture
| Is it being attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | None. No login is needed |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Total control of the affected software, according to CISA |
Read from the official severity rating: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Kind of coding mistake
- CWE-184
Where it sits in the standards
OWASP Top 10 for LLM Applications 2025: LLM01 Prompt Injection
If you cannot upgrade today
- Disable or remove all CSV Agent nodes from active chatflows until the update is applied
- Restrict network access to Flowise to trusted IP addresses only using a firewall or reverse proxy
- Run Flowise as a dedicated low-privilege user account with no access to sensitive files or secrets
Signs it may already have been used against you
- Review Flowise server logs for unexpected Python code execution errors or stack traces in the CSV Agent node
- Check server process logs for child processes or unusual system calls spawned by the Flowise process
- Look for failed or malformed CSV uploads or chatflow queries to CSV Agent nodes just before suspicious activity
- Review file access logs for reads of sensitive files (config files, .env, SSH keys) by the user running Flowise
SecurityElites Fix Guide: step by step
- Find where Flowise is installedCheck whether Flowise is installed as a global npm package or as a local dependency in a project. Run `npm list -g flowise` to check globally, or look in package.json files for `flowise` or `flowise-components` dependencies.
- Check the current versionIf installed globally, run `npm list -g flowise` to see the version. If installed locally in a project, run `npm list flowise` in that directory. Record the version number.
- Stop FlowiseIf running, stop the Flowise process. If installed globally and started with `npx flowise start`, use Ctrl+C. If running as a service, use the appropriate stop command for your setup.
- Update flowise and flowise-componentsIf installed globally, run `npm install -g flowise@3.1.0 flowise-components@3.1.0`. If installed locally in a project, run `npm install flowise@3.1.0 flowise-components@3.1.0` in the project directory.
- Restart FlowiseStart Flowise again using the same method as before: `npx flowise start` for global, or your service startup command for managed installations.
- Confirm the fixCheck that Flowise has started without errors. Verify the version by running `npm list -g flowise` or `npm list flowise` to confirm it shows version 3.1.0 or later.
- Review activity logsCheck server logs and Flowise logs from before the update for any signs of unusual activity, unexpected code execution, or errors related to CSV Agent nodes. Document anything suspicious.
- Re-enable CSV Agent chatflowsAfter confirming the update is in place, resume use of chatflows that contain CSV Agent nodes. Monitor these flows closely for the first week of operation.
How to confirm it is fixed: Run `npm list -g flowise` or `npm list flowise` and confirm the version shown is 3.1.0 or later.
SecurityElites Quick Fixes: copy and paste
Upgrade flowise with npmupgrade
npm install flowise@3.1.0
npm ls flowiseUpgrade flowise-components with npmupgrade
npm install flowise-components@3.1.0
npm ls flowise-componentsCheck global Flowise versionfor this issue
npm list -g flowiseCheck local Flowise version in a projectfor this issue
npm list flowise flowise-componentsTest 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-41264) 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.0 or later
- flowise-components (npm): must be 3.1.0 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.
Ticket for your backlog
Paste into Jira, GitHub Issues or any tracker that reads Markdown.
Ready-made ticket
## Flowise CSV Agent runs code from language model without checks (CVE-2026-41264)
**Severity:** Critical | **SE Fix-First Score:** 51/100 | **Fix window:** Within 7 days
**Record:** SE-AIV-01593 https://securityelites.com/ai-vulnerabilities/cve-2026-41264-flowise-csv-agent-runs-code-from-language-model-without/
### Why this matters
An attacker can run code on the server without logging in. This code runs as the user who started Flowise, so attackers can read files, change data, steal secrets, or shut down the service.
### What to do
1. Find where Flowise is installed
2. Check the current version
3. Stop Flowise
4. Update flowise and flowise-components
5. Restart Flowise
6. Confirm the fix
7. Review activity logs
8. Re-enable CSV Agent chatflows
Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-41264-flowise-csv-agent-runs-code-from-language-model-without/
### Done when
- [ ] flowise is at 3.1.0 or later everywhere it is installed
- [ ] flowise-components is at 3.1.0 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Run `npm list -g flowise` or `npm list flowise` and confirm the version shown is 3.1.0 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.
Related vulnerabilities
In the same software
- Flowise CSV and Airtable agents allow data theft via prompt injection Critical · CVE-2026-73487
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
- Flowise OAuth2 token endpoint open to anyone, leaks access tokens Critical · CVE-2026-70478
- Flowise CSV Agent can run Python code sent by attackers Critical · CVE-2026-70477
- Flowise allows authenticated users to change other organizations' billing High · CVE-2026-70476
- Flowise allows any authenticated user to change execution records without permission check High · CVE-2026-70475
The same kind of mistake in other AI tools
- markdownify-mcp can be made to read files outside the allowed folder list High · CVE-2026-140424
- ag2 and autogen shell tool can run any command via newline in command string High · CVE-2026-113663
- Flowise chatflow can be hijacked through unguarded configuration override High · CVE-2026-69258
- Flowise can be made to run attacker code through the Airtable Agent Critical · CVE-2026-41265
Change history
- 21 Apr 2026: Made public
- 2 Dec 2026: Published
Official record
## AbstractTrend Micro's Zero Day Initiative has identified a vulnerability affecting FlowiseAI Flowise.## Vulnerability Details- **Version tested:** 3.0.13 - **Installer file:** https://github.com/FlowiseAI/Flowise - **Platform tested:** Ubuntu 25.10## AnalysisThis vulnerability allows remote attackers to execute arbitrary code on affected installations of FlowiseAI Flowise. Authentication is not required to exploit this vulnerability.The specific flaw exists within the `run` method of the `CSV_Agents` class. The issue results from the lack of proper sandboxing when evaluating an LLM-generated Python script. An attacker can leverage this vulnerability to execute code in the context of the user running the server.### Product InformationFlowiseAI Flowise version 3.0.13 — https://github.com/FlowiseAI/Flowise### Setup Instructions```bash npm install -g flowise@3.0.13 npx flowise start ```### Root Cause AnalysisFlowiseAI Flowise is an open source low-code tool for developers to build customized large language model (LLM) applications and AI agents. It supports integration with various LLMs, data sources, and tools in order to facilitate rapid development and deployment of AI solutions. Flowise offers a web interface with a drag-and-drop editor, as well as an API, through an Express web server accessible over HTTP on port 3000/TCP.One such feature of Flowise is the ability to create chatflows. Chatflows use a drag-and-drop editor that allows a developer to place nodes which control how an interaction with an LLM will occur. One such node is the CSV Agent node that represents an Agent used to answer queries on a provided CSV file.When a user makes a query against a chatflow using the CSV Agent node, the `run` method of the `CSV_Agents` class is called. This method first reads the contents of the CSV file passed to the node and converts it to a base64 string. It then sets up a pyodide environment and creates a Python script to be executed in this environment. This Python script uses pandas to extract the column names and their types from the provided CSV file. The method then creates a system prompt for an LLM using this data as follows:``` You are working with a pandas dataframe in Python. The name of the dataframe is df.The columns and data types of a dataframe are given below as a Python dictionary with keys showing column names and values showing the data types. {dict}I will ask question, and you will output the Python code using pandas dataframe to answer my question. Do not provide any explanations. Do not respond with anything except the output of the code.Security: Output ONLY pandas/numpy operations on the dataframe (df). Do not use import, exec, eval, open, os, subprocess, or any other system or file operations. The code will be validated and rejected if it contains such constructs.Question: {question} Output Code: ```Where `{dict}` is the extracted column names and `{question}` is the initial prompt provided by the user.This system prompt is sent to an LLM in order for it to generate a Python script based on the user's prompt, and the LLM-generated response is stored in a variable named `pythonCode`. The method then evaluates the `pythonCode` variable in a pyodide environment.While the LLM-generated Python script is evaluated in a non-sandboxed environment, there is a list of forbidden patterns that are checked before the script is executed on the server. The function `validatePythonCodeForDataFrame()` enumerates through a list named `FORBIDDEN_PATTERNS`, which contains pairs of regex patterns and reasons. Each regex pattern is run against the Python script, and if the pattern is found in the script, the script is invalidated and is not run, responding to the request with a reason for rejection.The input validation can be bypassed, which can still lead to running arbitrary OS commands on the server. An example of this is the pattern `/\bimport\s+(?!pandas|numpy\b)/g`, which int
Weakness type: CWE-184
Use this record in your own tools
Get this record as JSON
curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-41264For 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.