Flowise Python code validator can be bypassed with Unicode characters to run commands

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

Download as PDF

What this means

An attacker who can control Python code run by the CSV Agent, Airtable Agent, or custom CSV read settings can execute arbitrary commands on the Flowise server with the privileges of the Flowise process. This can lead to data theft, service disruption, or complete system compromise.

SecurityElites Manager Brief: the decision in one minute

The Flowise Python code filter can be bypassed with Unicode lookalike letters, allowing attackers to run any command on your server. Upgrade both flowise and flowise-components to 3.1.3 immediately and restart.

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 or DevOps team managing Flowise deployments.
Likely effortAbout 15 minutes per Flowise deployment: upgrade the npm packages and restart the service. Downtime is minimal.

Questions to ask your team or supplier

  • Do we know which versions of Flowise and flowise-components are running in production, and are both at 3.1.3 or later?
  • Who has permission to create or edit Flowise flows, and how much control can they give to the LLM or external code sources?
  • Have we checked our logs for signs that Unicode-based code or unusual Python execution patterns were attempted before we upgraded?

Message you can forward to the owning team

Security notice: Flowise Python code validator can be bypassed with Unicode characters to run commands (CVE-2026-70470)

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-70470-flowise-python-code-validator-can-be-bypassed-with-unicode/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01600

What is at stake in your AI setup

  • LLM-generated Python code could be altered to exfiltrate training or retrieval data, prompts, or chat history.
  • The compute resources (Pyodide and host process) could be hijacked to run attacker code instead of legitimate workflows.
  • API keys for external services connected to Flowise agents could be stolen from environment variables or memory.
  • The Flowise host server and any files it can access could be compromised for lateral movement to other systems.

Map where your company uses AI

Who is exposed

  • Teams running Flowise 3.1.2 or earlier with CSV Agent or Airtable Agent enabled.
  • Deployments where the Flowise user can configure custom CSV read code.
  • Any setup where an LLM can generate Python code that gets executed by Flowise.

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 neededNone. No login is needed
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doHard. It depends on conditions the attacker does not control
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:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Kind of coding mistake

  • CWE-184

If you cannot upgrade today

  • Until you can upgrade, disable the CSV Agent and Airtable Agent if they are not in use. This removes the attack surface.
  • Restrict who can create or edit Flowise flows to only trusted administrators. Do not allow untrusted users to generate or modify Python code.
  • If you must use these agents, review all Python code that gets executed before it runs, and do not allow LLM-generated code without human review.

Signs it may already have been used against you

  • Search Python code execution logs for unusual characters, especially lookalike letters that do not appear in ASCII (search for Unicode in code strings).
  • Look for calls to `__import__`, `__builtins__`, or `__class__` with any variation in spelling (extra underscores, Unicode variants).
  • Check for unexpected `child_process.execSync` or shell command execution in process logs or audit trails.
  • Review Flowise logs for Python execution errors that mention encoding or character normalization.

SecurityElites Fix Guide: step by step

  1. Find where Flowise is installedCheck where your Flowise package is installed. Look for the node_modules folder or the global npm installation. Run `npm list flowise` to see the current version.
  2. Check the current versionNote the version number of flowise and flowise-components. Both must be at least 3.1.3.
  3. Back up your configurationSave a copy of your Flowise configuration files and any custom workflows before making changes.
  4. Upgrade flowise and flowise-components to 3.1.3Use your package manager to upgrade both packages to exactly version 3.1.3 or later. If you installed Flowise globally, upgrade it. If it is in a project, upgrade the packages in that project.
  5. Restart the Flowise serviceStop and restart the Flowise process or service so it loads the patched code.
  6. Verify the upgrade workedRun `npm list flowise` again and confirm both flowise and flowise-components show version 3.1.3 or later.
  7. Review access logs for signs of exploitationCheck server logs and audit trails for any unusual Python code execution or system commands run before the upgrade. Look for patterns like Unicode characters in code, calls to `__import__`, or unexpected process execution.
  8. Review who has access to Python code configurationCheck whether anyone besides trusted administrators can modify CSV read settings, upload flows that generate Python code, or control the LLM prompts. Remove unnecessary access.

How to confirm it is fixed: Confirm that both flowise and flowise-components are version 3.1.3 or later by running `npm list flowise flowise-components` and checking the output.

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 Flowise versionfor 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-70470) 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.

Why does the blocklist in Flowise fail to block dangerous Python code?A good answer: The blocklist uses regex word boundaries that do not recognize Unicode letters, so attackers can replace ASCII letters with lookalike Unicode characters that Python normalizes back to the original, bypassing the check.
What is the most direct path from Pyodide to running commands on the Flowise server?A good answer: An attacker can use Unicode-bypassed code to access the `__builtins__` dictionary, call `__import__('js')` to get the Node.js bridge, then call `child_process.execSync` to run shell commands.
Which Flowise components and versions are vulnerable?A good answer: flowise and flowise-components versions before 3.1.3 are vulnerable; both must be upgraded to 3.1.3 or later.
What should we check after upgrading to confirm the fix is in place?A good answer: Verify that both flowise and flowise-components are version 3.1.3 or later, restart the service, and confirm it loads without errors.

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 Python code validator can be bypassed with Unicode characters to run commands (CVE-2026-70470)

**Severity:** Critical  |  **SE Fix-First Score:** 51/100  |  **Fix window:** Within 7 days
**Record:** SE-AIV-01600 https://securityelites.com/ai-vulnerabilities/cve-2026-70470-flowise-python-code-validator-can-be-bypassed-with-unicode/

### Why this matters
An attacker who can control Python code run by the CSV Agent, Airtable Agent, or custom CSV read settings can execute arbitrary commands on the Flowise server with the privileges of the Flowise process. This can lead to data theft, service disruption, or complete system compromise.

### What to do
1. Find where Flowise is installed
2. Check the current version
3. Back up your configuration
4. Upgrade flowise and flowise-components to 3.1.3
5. Restart the Flowise service
6. Verify the upgrade worked
7. Review access logs for signs of exploitation
8. Review who has access to Python code configuration

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-70470-flowise-python-code-validator-can-be-bypassed-with-unicode/

### 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
- [ ] Confirm that both flowise and flowise-components are version 3.1.3 or later by running `npm list flowise flowise-components` and checking the output.
- [ ] 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

### Summary The validatePythonCodeForDataFrame blacklist in packages/components/src/pythonCodeValidator.ts can be bypassed with Unicode homoglyph identifiers, allowing arbitrary Python execution inside Pyodide and full OS command execution on the Flowise host via Pyodide's js module interop. This reopens the RCE paths patched as GHSA-3hjv-c53m-58jj (CSV Agent) and GHSA-v38x-c887-992f (Airtable Agent).### Details packages/components/src/pythonCodeValidator.ts gates every call to pyodide.runPythonAsync in packages/components/nodes/agents/CSVAgent/CSVAgent.ts (lines 147, 198) and packages/components/nodes/agents/AirtableAgent/AirtableAgent.ts (line 186). The gate is a regex blacklist:```ts { pattern: /\bimport\b/g, ... }, { pattern: /\b__class__\b/g, ... }, { pattern: /\b__subclasses__\s*\(/g, ... }, { pattern: /\b__builtins__\b/g, ... }, { pattern: /\b__mro__\b/g, ... }, // ... about 30 similar rules ```Two design flaws combine into a bypass:1. JavaScript regex `\b` is ASCII-only. Word boundaries are computed against the ASCII word class `[A-Za-z0-9_]`. A Unicode letter such as U+1D41A (mathematical bold small a) is treated as a non-word character, so `\b__class__\b` never matches `__cl𝐚ss__`. 2. Python 3 (PEP 3131) NFKC-normalizes every identifier at parse time. `__cl𝐚ss__`, `__subcl𝐚sses__`, `__b𝐚se__`, `__b𝐮iltins__`, and similar homoglyph forms are all parsed as their ASCII equivalents.Attribute access `obj.__cl𝐚ss__` is normalized because attribute names are identifiers. Dict string keys such as `bi['__import__']` are not normalized, but they are free text and can be assembled with `chr()` to avoid literal matches on patterns like `\bimport\b` or `\b__import__\s*\(/`.From inside Pyodide, `__builtins__['__import__']('js')` yields the JS host bridge. In the Node.js host that runs Flowise, that bridge exposes `process.mainModule.require('child_process').execSync`, which runs native commands on the host with the privileges of the Flowise process.Affected call sites: - packages/components/nodes/agents/CSVAgent/CSVAgent.ts:147 validates `customReadCSV` (node-config-controlled, interpolated into the read-CSV script on line 167) and 198 validates the LLM-generated `pythonCode` before it reaches `pyodide.runPythonAsync(code)` on line 209. - packages/components/nodes/agents/AirtableAgent/AirtableAgent.ts:186 validates the LLM-generated `pythonCode` before `pyodide.runPythonAsync` on line 197.The original patches for GHSA-3hjv-c53m-58jj (commit a24acac, PR #5701) and a24acac's follow-up (commit 0c8236a, PR #5836) rely entirely on this validator. Because the validator is bypassable, both advisories are effectively reintroduced in 3.1.2.### PoC Standalone reproduction that mirrors the exact code paths in CSVAgent.ts / AirtableAgent.ts. It feeds a malicious `pythonCode` to the real validator, confirms the validator returns `valid: true`, then runs the same string through Pyodide and prints the output of a native command executed on the host:```js // npm install pyodide const { loadPyodide } = require('pyodide')const FORBIDDEN_PATTERNS = [ { pattern: /\bfrom\s+\S+\s+import\b/g }, { pattern: /\bimport\b/g }, { pattern: /\beval\s*\(/g }, { pattern: /\bexec\s*\(/g }, { pattern: /\bcompile\s*\(/g }, { pattern: /\b__import__\s*\(/g }, { pattern: /\bopen\s*\(/g }, { pattern: /\bgetattr\s*\(/g }, { pattern: /\bos\./g }, { pattern: /\bsubprocess\./g }, { pattern: /\bsys\./g }, { pattern: /\bsocket\./g }, { pattern: /\burllib\./g }, { pattern: /\brequests\./g }, { pattern: /\b__builtins__\b/g }, { pattern: /\b__class__\b/g }, { pattern: /\b__subclasses__\s*\(/g }, { pattern: /\b__bases__\b/g }, { pattern: /\b__mro__\b/g }, { pattern: /\b__globals__\b/g }, { pattern: /\b__code__\b/g }, { pattern: /\b__dict__\b/g }, ] const validate = (code) => FORBIDDEN_PATTERNS.every(p => { p.pattern.lastIndex = 0; return !p.pattern.test(code) })const payload = ` cls = ().__cl\u{1D41A}ss__ base = cls.__b\u{1D41A}se__ s

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-70470

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.