CVE-2026-41137: Flowise: Code Injection in CSVAgent leads to Authenticated RCE

CVE-2026-41137 · Severity: high · CVSS 8.8 · Published 2026-04-23

Flowise is an open-source visual AI workflow builder that allows users to create chatflows and agents. The CSVAgent component in Flowise accepts a user-supplied custom Pandas code parameter without sanitization, allowing an authenticated attacker to inject and execute arbitrary Python commands on the server. This can lead to complete server compromise and unauthorized access to sensitive data or system resources.

Technologies: FlowiseAI Flowise, flowise (npm), flowise-components (npm). Vendors: FlowiseAI, npm.

Quick answers

Is CVE-2026-41137 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-41137 being exploited in the wild.
How severe is CVE-2026-41137?
High severity, with a CVSS score of 8.8, published 23 April 2026.
Which products and versions are affected?
flowise (npm) <= 3.0.13, SEMVER:introduced=0,fixed=3.1.0; flowise-components (npm) <= 3.0.13, SEMVER:introduced=0,fixed=3.1.0.
Is there a fix for CVE-2026-41137?
Yes. flowise (npm): upgrade to 3.1.0 or later; flowise-components (npm): upgrade to 3.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-41137 attacked?
It is attacked over the network.
Am I affected by CVE-2026-41137?
Check whether you run FlowiseAI Flowise, flowise (npm) or flowise-components (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • flowise (npm): upgrade to 3.1.0 or later
    npm install flowise@3.1.0
  • flowise-components (npm): upgrade to 3.1.0 or later
    npm install flowise-components@3.1.0

Technical details

The vulnerability is a code injection flaw in CSVAgent.ts where the customReadCSVFunc parameter is directly interpolated into Python code without sanitization and then executed via pyodide.runPythonAsync(). An authenticated attacker can craft a malicious payload (e.g., DataFrame({'foo': ['bar!']});import os;os.system('whoami')) within the customReadCSV parameter of a chatflow. The attack requires authentication to create a chatflow via POST /api/v1/chatflows, but authentication can be bypassed if default credentials are not set by providing the "x-request-from": "internal" header. Once the chatflow is created, sending a POST to /api/v1/prediction/[CHATFLOWID] executes the injected code on the server. Patches are available in Flowise 3.1.0 and flowise-components 3.1.0.

Affected products

  • Flowise Flowise <= 3.0.13
  • Flowise flowise-components <= 3.0.13

Identifiers

  • CVE-2026-41137
  • GHSA-9wc7-mj3f-74xv

Timeline

  • 2026-04-15: disclosed
  • 2026-04-16: patched: Flowise 3.1.0 and flowise-components 3.1.0

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.