Flowise allows low-privilege users to access admin APIs with a fake header

HighSE Fix-First Score 43/100CVE-2026-30820SE-AIV-01686Remote code executionAI apps and chat interfacesMade public 7 Mar 2026

Download as PDF

What this means

A person with a basic user account can pretend to be an administrator and create new API keys, read stored secrets, and run custom code on the server. An attacker with any valid login can take over the whole Flowise installation.

SecurityElites Manager Brief: the decision in one minute

Flowise checks a request header instead of real permissions to allow access to powerful admin functions. Any logged-in user can forge that header and become an admin without credentials. This needs an immediate upgrade.

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 engineering or DevOps team managing Flowise deployments.
Likely effortAbout 10 minutes: download and deploy version 3.0.13 and restart the service. Downtime during the restart could add 5 to 15 minutes depending on how the service is set up.

Questions to ask your team or supplier

  • Do we have audit logs showing which users accessed admin APIs, and can we review them for the period before we upgrade?
  • Do we have a way to rotate all stored API keys and credentials after the upgrade, in case any were leaked to low-privilege users?
  • Are there any custom functions or integrations in Flowise that could have been modified or exploited by someone with forged admin access since this version was deployed?

Message you can forward to the owning team

Security notice: Flowise allows low-privilege users to access admin APIs with a fake header (CVE-2026-30820)

Severity: High
SecurityElites Fix-First Score: 43 of 100
SecurityElites fix window: Within 30 days
Action: upgrade to flowise 3.0.13 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-30820-flowise-allows-low-privilege-users-to-access-admin-apis-with/
Source: SecurityElites AI Vulnerabilities Database, record SE-AIV-01686

What is at stake in your AI setup

  • Stored API keys and credentials in the credential store: an attacker can read all keys used to call external AI services and use them to run up bills or access AI models
  • Custom functions and their code: an attacker can inject code into custom functions that run on the server, potentially accessing training data or modifying agent behavior
  • Prompts and chat history: an attacker with admin access can read all conversation data and system prompts that may contain sensitive instructions or business logic
  • Connections to external tools and models: an attacker can reconfigure which AI services and APIs the Flowise agent connects to, redirecting requests or poisoning responses

Map where your company uses AI

Who is exposed

  • Flowise 3.0.8 and earlier versions running with multiple tenant accounts
  • Teams where basic users log in to the web interface and have access to cookies
  • Any deployment where API keys and stored credentials are sensitive
  • Setups where custom functions run untrusted code

Upgrades you need

SoftwareAffected versionsMove to
flowise
npm
Every version before 3.0.133.0.13 or later

Am I affected?

Enter the version you run. Nothing you type is stored.

SecurityElites Developer Brief: the technical picture

Is it being attackedWorking attack code is public, so expect attacks to follow
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 changedHigh
Risk of: the service being taken downHigh
Can attackers automate it at scaleNo, according to CISA. Each target needs manual work
How much control an attacker gainsTotal control of the affected software, 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:H/VA:H/SC:N/SI:N/SA:N

Kind of coding mistake

  • CWE-863: a permission check is wrong

If you cannot upgrade today

  • Restrict network access to Flowise so that only trusted administrators can reach it, using a firewall or VPN
  • Disable multi-tenant mode if you are running single-tenant, which reduces the attack surface
  • Monitor all requests to `/api/v1/**` routes and block or alert on any that contain the `x-request-from` header from outside your internal network

Signs it may already have been used against you

  • Search server logs for requests that include the header `x-request-from: internal` going to paths under `/api/v1/` such as `/api/v1/apikey`, `/api/v1/credentials`, or `/api/v1/tools`
  • Look for API key creation events (`/api/v1/apikey` with POST) made by low-privilege or basic user accounts
  • Check audit logs or access logs for calls to `/api/v1/node-custom-function` or other admin-only routes from basic user sessions
  • Review recent changes to stored credentials or secrets to see if they were accessed or modified by users who should not have permission

Log searches to start from

Find requests with x-request-from: internal header to admin API paths (adapt field names for your logs)Splunk

sourcetype=http_access path="/api/v1/apikey" OR path="/api/v1/credentials" OR path="/api/v1/tools" http_header_x_request_from=internal | stats count by user, path, src_ip

Find API key creation from basic user accounts (adapt field names for your logs)Elastic

http.target:*/api/v1/apikey AND http.method:POST AND user.role:basic | fields @timestamp, user.name, source.ip, http.target

Written with AI as a starting point. Review them and change the index and field names to match your own logs before you rely on the result.

SecurityElites Fix Guide: step by step

  1. Find where Flowise is runningCheck which servers have Flowise installed and note the current version. Look for it in `package.json` or run the app and check the version in settings or logs.
  2. Check the current versionRun `npm list flowise` in the Flowise directory or check the installed version by looking at the application version output. Write down what version you have.
  3. Back up the current installationCopy the entire Flowise directory and database to a safe location. This lets you roll back if something breaks.
  4. Upgrade to version 3.0.13Update Flowise to version 3.0.13 using your package manager. Run `npm update flowise@3.0.13` or use your deployment tool to fetch the new version.
  5. Restart the Flowise serviceStop and start the Flowise service to load the new code. Use `systemctl restart flowise` or the equivalent command for your system.
  6. Verify the upgrade workedCheck that the application version is now 3.0.13. Log in with a basic user account and confirm you cannot access admin API endpoints like `/api/v1/apikey` or `/api/v1/credentials`.
  7. Review logs for misuse before the fixCheck server logs and audit trails between when this version was deployed and now for any suspicious creation of API keys, access to credentials, or calls to internal endpoints with the `x-request-from: internal` header.
  8. Reset API keys and credentials if compromisedIf you find signs of misuse in the logs, rotate all API keys, reset stored credentials, and change passwords for any external accounts linked to Flowise.

How to confirm it is fixed: Confirm the installed version is 3.0.13 or later, then log in as a basic user and verify that requests to `/api/v1/apikey` or `/api/v1/credentials` return an authorization error even when the `x-request-from: internal` header is added.

SecurityElites Quick Fixes: copy and paste

Upgrade flowise with npmupgrade

npm install flowise@3.0.13
npm ls flowise

Check installed Flowise version using npmfor this issue

npm list flowise

Check version from package.json filefor this issue

grep '"flowise"' package.json

Run the service in a locked-down containergeneral hardening

docker run --read-only --cap-drop ALL \
  --security-opt no-new-privileges --user 1000:1000 \
  -p 127.0.0.1:8080:8080 YOUR_IMAGE

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-30820) 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.0.13 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 header does an attacker set to bypass the authorization check in Flowise before version 3.0.13?A good answer: An attacker sets the `x-request-from` header to `internal` to make the server skip permission checks and treat the request as coming from an internal admin.
What type of user account do you need to exploit this bug?A good answer: You need any valid login account, even a basic user with no special roles or API keys; your browser session cookie is enough.
What admin functions can be reached by abusing this bug?A good answer: An attacker can reach any endpoint under `/api/v1/**` including API key creation, credential store access, and custom function execution.
What is the first action to take after upgrading to 3.0.13?A good answer: Log in as a basic user and try to access an admin-only endpoint like `/api/v1/apikey` to confirm it now returns an error instead of allowing access.

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 allows low-privilege users to access admin APIs with a fake header (CVE-2026-30820)

**Severity:** High  |  **SE Fix-First Score:** 43/100  |  **Fix window:** Within 30 days
**Record:** SE-AIV-01686 https://securityelites.com/ai-vulnerabilities/cve-2026-30820-flowise-allows-low-privilege-users-to-access-admin-apis-with/

### Why this matters
A person with a basic user account can pretend to be an administrator and create new API keys, read stored secrets, and run custom code on the server. An attacker with any valid login can take over the whole Flowise installation.

### What to do
1. Find where Flowise is running
2. Check the current version
3. Back up the current installation
4. Upgrade to version 3.0.13
5. Restart the Flowise service
6. Verify the upgrade worked
7. Review logs for misuse before the fix
8. Reset API keys and credentials if compromised

Full steps: https://securityelites.com/ai-vulnerabilities/cve-2026-30820-flowise-allows-low-privilege-users-to-access-admin-apis-with/

### Done when
- [ ] flowise is at 3.0.13 or later everywhere it is installed
- [ ] Lock files, container images and CI configuration are updated
- [ ] Confirm the installed version is 3.0.13 or later, then log in as a basic user and verify that requests to `/api/v1/apikey` or `/api/v1/credentials` return an authorization error even when the `x-request-from: internal` header is added.
- [ ] 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

  • 6 Mar 2026: Made public
  • 3 Dec 2026: Published

Official record

### SummaryFlowise trusts any HTTP client that sets the header `x-request-from: internal`, allowing an authenticated tenant session to bypass all `/api/v1/**` authorization checks. With only a browser cookie, a low-privilege tenant can invoke internal administration endpoints (API key management, credential stores, custom function execution, etc.), effectively escalating privileges.### DetailsThe global middleware that guards `/api/v1` routes lives in `external/Flowise/packages/server/src/index.ts:214`. After filtering out the whitelist, the logic short-circuits on the spoofable header:```javascript if (isWhitelisted) { next(); } else if (req.headers['x-request-from'] === 'internal') { verifyToken(req, res, next); } else { const { isValid } = await validateAPIKey(req); if (!isValid) return res.status(401).json({ error: 'Unauthorized Access' }); … // owner context stitched from API key } ```Because the middle branch blindly calls verifyToken, any tenant that already has a UI session cookie is treated as an internal client simply by adding that header. No additional permission checks are performed before `next()` executes, so every downstream router under `/api/v1` becomes reachable.### PoC1. Log into Flowise 3.0.8 and capture cookies (e.g., `curl -c /tmp/flowise_cookies.txt … /api/v1/auth/login`). 2. Invoke an internal-only endpoint with the spoofed header:```bash curl -sS -b /tmp/flowise_cookies.txt \ -H 'Content-Type: application/json' \ -H 'x-request-from: internal' \ -X POST http://127.0.0.1:3100/api/v1/apikey \ -d '{"keyName":"Bypass Demo"}' ``` The server returns HTTP 200 and the newly created key object. 3. Remove the header and retry:```bash curl -sS -b /tmp/flowise_cookies.txt \ -H 'Content-Type: application/json' \ -X POST http://127.0.0.1:3100/api/v1/apikey \ -d '{"keyName":"Bypass Demo"}' ``` This yields {"error":"Unauthorized Access"}, confirming the header alone controls access.The same spoof grants access to other privileged routes like `/api/v1/credentials`, `/api/v1/tools`, `/api/v1/node-custom-function`, etc.### ImpactThis is an authorization bypass / privilege escalation. Any authenticated tenant (even without API keys or elevated roles) can execute internal administration APIs solely from the browser, enabling actions such as minting new API keys, harvesting stored secrets, and, when combined with other flaws (e.g., Custom Function RCE), full system compromise. All self-hosted Flowise 3.0.8 deployments that rely on the default middleware are affected.

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-30820

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 3 Dec 2026. Read the vendor advisory before changing a production system.