Flowise can expose workspace secrets to users without permission
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 Score | 43 of 100 Our own ranking of what to fix first. Real attacks count most, then the chance of attack, then severity. |
|---|---|
| SecurityElites fix window | Within 30 days High severity. This is our suggestion from common practice; your own policy comes first. |
| Who should own the fix | Platform or infrastructure team running Flowise. |
| Likely effort | About 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-01627What 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.
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
| Software | Affected versions | Move to |
|---|---|---|
| flowise npm | Every version before 3.1.3 | 3.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 attacked | No known attacks and no public attack code when CISA last reviewed it |
|---|---|
| Where the attacker must be | Anywhere that can reach it over a network, including the internet if it is exposed |
| Account needed | An ordinary user account |
| Does a person have to do something | No. It works without anyone clicking or opening anything |
| How hard it is to do | Easy. It works reliably once the attacker can reach it |
| Risk of: data being read | High |
| Risk of: data or settings being changed | None |
| Risk of: the service being taken down | None |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Partial 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
- 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.
- 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.
- Back up configuration and dataExport or snapshot your Flowise database and configuration files in case the upgrade has issues.
- 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.
- 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.
- 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.
- 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.
- 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 flowiseCheck installed Flowise version on this serverfor this issue
npm list flowiseRequire 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.
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.
Related vulnerabilities
In the same software
- Flowise CSV and Airtable agents allow data theft via prompt injection Critical · CVE-2026-73487
- Flowise can run commands and read files outside its sandbox Critical · CVE-2026-119978
- Flowise OAuth2 token endpoint open to anyone, leaks access tokens Critical · CVE-2026-70478
- Flowise CSV Agent can run Python code sent by attackers Critical · CVE-2026-70477
- Flowise allows authenticated users to change other organizations' billing High · CVE-2026-70476
- Flowise allows any authenticated user to change execution records without permission check High · CVE-2026-70475
The same kind of mistake in other AI tools
- Langflow OSS allows authenticated users to access or change other users' flows High · CVE-2026-127067
- BaaRai ARTEX admin account can be claimed without authentication on first setup Critical · CVE-2026-140422
- BaaRai ARTEX admin login can be guessed without limits or lockouts Critical · CVE-2026-140365
- NLTK dependency parser crashes on long sentences High · CVE-2026-129222
- NLTK regex patterns can be made to freeze the server High · CVE-2026-129229
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-70471For 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.