Flowise can expose workspace secrets to users without permission

HighSE Fix-First Score 43/100CVE-2026-70471SE-AIV-01627Missing or broken access controlAI apps and chat interfacesMade public 4 Aug 2026

Download as PDF

What this means

A person with access to Flowise but no permission to view secrets can read all workspace variables, including database passwords, API keys, and other credentials stored as runtime variables. This lets them access systems the workspace connects to, steal data, or impersonate the application.

SecurityElites Manager Brief: the decision in one minute

Flowise allows unpermissioned users to read workspace secrets through a code function endpoint, bypassing the official permission system. You need to upgrade immediately if you use Flowise with multiple users or API keys.

SecurityElites Fix-First Score43 of 100
Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity.
SecurityElites fix windowWithin 30 days
High severity. This is our suggestion from common practice; your own policy comes first.
Who should own the fixPlatform or infrastructure team running Flowise.
Likely effortAbout 10 minutes: upgrade to version 3.1.3 and restart. Longer if you need to audit logs first to see who may have accessed secrets.

Questions to ask your team or supplier

  • Do we use Flowise with multiple users or API keys, and do we restrict who can view variables?
  • Are we using runtime variables to store secrets like database passwords, API keys, or cloud credentials?
  • Who has called the custom function endpoint in the past month, and did any of them not have permission to view variables?

Message you can forward to the owning team

Security notice: Flowise can expose workspace secrets to users without permission (CVE-2026-70471)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to flowise 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-70471-flowise-can-expose-workspace-secrets-to-users-without-permission/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01627

What is at stake in your AI setup

  • Keys for AI providers (like OpenAI API keys) stored as workspace variables or environment variables can be read and used by unauthorized users.
  • Database and authentication secrets that the AI tools rely on can be exposed.
  • Tools and systems the agent is connected to can be accessed using stolen API keys or credentials.

Map where your company uses AI

Who is exposed

  • Teams running Flowise 3.1.2 or earlier with multiple users or API keys
  • Setups where some users are denied variable viewing permissions but can call custom functions
  • Self-hosted Flowise instances with runtime variables mapped to environment secrets

Upgrades you need

SoftwareAffected versionsMove to
flowise
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 attackedNo known attacks and no public attack code when CISA last reviewed it
Where the attacker must beAnywhere that can reach it over a network, including the internet if it is exposed
Account neededAn ordinary user account
Does a person have to do somethingNo. It works without anyone clicking or opening anything
How hard it is to doEasy. It works reliably once the attacker can reach it
Risk of: data being readHigh
Risk of: data or settings being changedNone
Risk of: the service being taken downNone
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsPartial control, according to CISA

Read from the official severity rating: 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

Kind of coding mistake

  • CWE-863: a permission check is wrong

If you cannot upgrade today

  • Until you can upgrade, restrict which users can call `/api/v1/node-custom-function` to only those who are trusted and also have permission to view variables.
  • Remove or stop using runtime variables if possible; use only static variables instead.
  • Rotate all secrets stored as workspace variables as a precaution.

Signs it may already have been used against you

  • Logs showing API calls to `/api/v1/node-custom-function` from users who do not have `variables:view` permission.
  • Audit logs showing which users called the custom function endpoint and when.
  • Any successful calls to the custom function endpoint in the past 30 days on systems running version before 3.1.3.

SecurityElites Fix Guide: step by step

  1. Find Flowise in your systemsList all servers and containers running Flowise. Check package managers and deployment tools to see which version is installed on each one.
  2. Check the current versionOn each server, run `npm list flowise` or check the package.json file for the installed version number. Record which servers are below 3.1.3.
  3. Back up configuration and dataExport or snapshot your Flowise database and configuration files in case the upgrade has issues.
  4. Review access logsCheck server logs and audit trails for calls to `/api/v1/node-custom-function` from users who do not have permission to view variables. Look at the past 30 days (or longer if you can) to see if someone may have read secrets this way. Record the users, times, and what they accessed.
  5. Upgrade to version 3.1.3Update the flowise package to exactly version 3.1.3 using `npm install flowise@3.1.3` or your deployment tool. Restart all Flowise services after the upgrade is complete.
  6. Verify the fix is in placeRun `npm list flowise` again on each server and confirm the version is 3.1.3 or later. Restart any services that did not start automatically.
  7. If secrets were exposed, rotate themIf your logs show that someone accessed custom functions and you use runtime variables to map secrets, rotate all secrets that were in those variables: database passwords, API keys, JWT secrets, SMTP credentials, and cloud keys. Update the new credentials in Flowise variables after rotation is complete.
  8. Review and restrict permissionsCheck which users have permission to call `/api/v1/node-custom-function`. Remove this permission from users who do not need to write custom code. Consider whether runtime variables are necessary or if static variables are safer for your use case.

How to confirm it is fixed: Confirm the installed version is 3.1.3 or later by running `npm list flowise` and checking that all Flowise services are running the upgraded code.

SecurityElites Quick Fixes: copy and paste

Upgrade flowise with npmupgrade

npm install flowise@3.1.3
npm ls flowise

Check installed Flowise version on this serverfor this issue

npm list flowise

Require sign-in with nginx in front of the servicegeneral hardening

location / {
    auth_basic "Restricted";
    auth_basic_user_file /etc/nginx/.htpasswd;
    proxy_pass http://127.0.0.1:8080;
}

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-70471) 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
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.

What is the minimum version of Flowise that fixes this issue?A good answer: Version 3.1.3 and later.
What endpoint does an attacker use to read secrets without permission?A good answer: The `/api/v1/node-custom-function` endpoint, which injects all workspace variables into the custom code context.
What types of secrets could be exposed through this vulnerability?A good answer: Any workspace variables, including static values and runtime variables mapped to environment secrets like database passwords, API keys, JWT secrets, and cloud credentials.
If we see logs of calls to `/api/v1/node-custom-function` from a user without variable viewing permission, what should we do?A good answer: Rotate all secrets stored as workspace variables and runtime environment variables, then upgrade to 3.1.3 or later and restrict permissions on that endpoint.

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 can expose workspace secrets to users without permission (CVE-2026-70471)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01627 https://securityelites.com/ai-vulnerabilities/cve-2026-70471-flowise-can-expose-workspace-secrets-to-users-without-permission/

### Why this matters
A person with access to Flowise but no permission to view secrets can read all workspace variables, including database passwords, API keys, and other credentials stored as runtime variables. This lets them access systems the workspace connects to, steal data, or impersonate the application.

### What to do
1. Find Flowise in your systems
2. Check the current version
3. Back up configuration and data
4. Review access logs
5. Upgrade to version 3.1.3
6. Verify the fix is in place
7. If secrets were exposed, rotate them
8. Review and restrict permissions

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-70471-flowise-can-expose-workspace-secrets-to-users-without-permission/

### Done when
- [ ] flowise is at 3.1.3 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm the installed version is 3.1.3 or later by running `npm list flowise` and checking that all Flowise services are running the upgraded code.
- [ ] 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

## 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 bypassA 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 exposedInside 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).

Weakness type: CWE-863

Use this record in your own tools

Get this record as JSON

curl https://securityelites.com/wp-json/se-aivd/v1/vulns/CVE-2026-70471

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.