7.1high
Flowise: RBAC Bypass Leading to Unauthorized Workspace Variables Disclosure
- Severity
- 7.1high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.25% (higher than 17% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-8r8h-6vcc-xhrv
Description
Flowise is a drag-and-drop user interface for building customized large language model (LLM) flows. Prior to 3.1.3, Flowise injects $vars into the code execution sandbox without requiring variables:view, bypassing the permission-protected Variables API. Variables for the active workspace are fetched at packages/components/src/utils.ts and runtime variables are resolved from server environment variables, while the official variables route enforces variables:view. A user or API key that is denied variables:view can call /api/v1/node-custom-function and receive $vars pre-populated with all variables for the workspace, including Variable.name to Variable.value static variables and Variable.name to process.env[Variable.name] runtime variables. This can expose secrets such as database passwords, JWT secrets, SMTP passwords, and cloud keys, depending on the workspace Variables configuration. This issue is fixed in version 3.1.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| FlowiseAI Flowise | < 3.1.3, before 3.1.3 | CVE List, NVD |
| flowise (npm) | before 3.1.3 | GitHub Advisory Database |
All scores
| GitHub_M | 7.1high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Flowise is a drag-and-drop user interface for building customized large language model (LLM) flows. Prior to 3.1.3, Flowise injects $vars into the code execution sandbox without requiring variables:view, bypassing the permission-protected Variables API. Variables for the active workspace are fetched at packages/components/src/utils.ts and runtime variables are resolved from server environment variables, while the official variables route enforces variables:view. A user or API key that is denied variables:view can call /api/v1/node-custom-function and receive $vars pre-populated with all variables for the workspace, including Variable.name to Variable.value static variables and Variable.name to process.env[Variable.name] runtime variables. This can expose secrets such as database passwords, JWT secrets, SMTP passwords, and cloud keys, depending on the workspace Variables configuration. This issue is fixed in version 3.1.3.
GitHub Advisory Database
Finding — Unauthorized Workspace Variables disclosure via $vars injection (bypasses variables:view)
What’s wrong (code locations)
- Variables for the active workspace are fetched without checking “variables:view” at this call site: flowise-src/ packages/components/src/utils.ts:932
- Runtime variables are resolved from server environment variables: flowise-src/packages/components/src/utils.ts:976
- $vars is always injected into the code execution sandbox: flowise-src/packages/components/src/utils.ts:1782
- The official Variables API is permission-protected (contrast): flowise-src/packages/server/src/routes/variables/ index.ts:11
Why it is a privilege boundary bypass
A user/API key might be denied variables:view (and the /api/v1/variables route enforces it), but they can still:
- call /api/v1/node-custom-function (Finding 1)
- and have $vars pre-populated with all variables for the workspace, including runtime values from process.env
What data is exposed
Inside the custom JS context, $vars contains a flat map of:
- Variable.name -> Variable.value for static variables, and
- Variable.name -> process.env[Variable.name] for runtime variables (type === 'runtime')
This can expose secrets such as database passwords, JWT secrets, SMTP passwords, cloud keys, etc., depending on what the workspace Variables are configured to map.
Recommended fix (minimum)
- Do not inject $vars unless the caller is authorized:
- enforce variables:view before injecting $vars, or
- inject only an explicit allowlist of variables needed for the function
- Consider disabling or heavily restricting type=runtime variables in self-hosted environments (or restrict which env keys may be mapped).
NVD (es)
Flowise es una interfaz de usuario de arrastrar y soltar para construir flujos personalizados de modelos de lenguaje grandes (LLM). Antes de la versión 3.1.3, Flowise inyecta $vars en el sandbox de ejecución de código sin requerir variables:view, eludiendo la API de Variables protegida por permisos. Las variables para el espacio de trabajo activo se obtienen en packages/components/src/utils.ts y las variables de tiempo de ejecución se resuelven a partir de las variables de entorno del servidor, mientras que la ruta oficial de variables impone variables:view. Un usuario o clave de API a la que se le deniega variables:view puede llamar a /api/v1/node-custom-function y recibir $vars pre-rellenadas con todas las variables para el espacio de trabajo, incluyendo variables estáticas de Variable.name a Variable.value y variables de tiempo de ejecución de Variable.name a process.env[Variable.name]. Esto puede exponer secretos como contraseñas de base de datos, secretos JWT, contraseñas SMTP y claves de nube, dependiendo de la configuración de Variables del espacio de trabajo. Este problema se corrige en la versión 3.1.3.
References
| https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-8r8h-6vcc-xhrv | vendor-advisory, web | |
| https://github.com/FlowiseAI/Flowise/releases/tag/flowise@3.1.3 | issue-tracking, patch, web | |
| https://github.com/FlowiseAI/Flowise | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-70471 changed 2026-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8r8h-6vcc-xhrv changed 2026-08-04 | CC-BY-4.0 |
| NVD | CVE-2026-70471 changed 2026-10-24 | Public domain |