Skip to content
CriticalVulnerability

GHSA-9rvc-vf7m-pgm2: FlowiseAI: Authenticated Host RCE via POST /api/v1/node-custom-function and NodeVM Sandbox Escape

Published
Record updated
View JSON
Affected
  • flowise <= 3.1.1
Fixed in
3.1.2
  • released April 14, 2026, 30 days before disclosure

Summary

Flowise's POST /api/v1/node-custom-function endpoint has no route-level permission middleware, so any authenticated user or API key can submit arbitrary JavaScript to the Custom JS Function node. When E2B_APIKEY is unset, which the source describes as the common deployment case, the code runs in a NodeVM sandbox that can be escaped by abusing an Error object that crosses the sandbox boundary to recover the host Function constructor. The attacker then reaches process and child_process and runs system commands on the server host, a CVSS v3.1 score of 9.9 (Critical).

Mitigation

The source does not state a fix yet. Check the original advisory for updates.