Flowise allows low-privilege users to access admin APIs with a fake header
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 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 engineering or DevOps team managing Flowise deployments. |
| Likely effort | About 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-01686What 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
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
| Software | Affected versions | Move to |
|---|---|---|
| flowise npm | Every version before 3.0.13 | 3.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 attacked | Working attack code is public, so expect attacks to follow |
|---|---|
| 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 | High |
| Risk of: the service being taken down | High |
| Can attackers automate it at scale | No, according to CISA. Each target needs manual work |
| How much control an attacker gains | Total 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_ipFind 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.targetWritten 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
- 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.
- 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.
- Back up the current installationCopy the entire Flowise directory and database to a safe location. This lets you roll back if something breaks.
- 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.
- 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.
- 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`.
- 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.
- 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 flowiseCheck installed Flowise version using npmfor this issue
npm list flowiseCheck version from package.json filefor this issue
grep '"flowise"' package.jsonRun 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_IMAGETest 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.
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.
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 arbitrary code execution through tool listing without admin check High · CVE-2026-128876
- Langflow OSS can run arbitrary code via tool-call interface before admin check High · CVE-2026-128867
- Langflow OSS allows remote code execution through improper code handling High · CVE-2026-127065
- Langflow OSS allows authenticated users to run arbitrary code High · CVE-2026-122088
- Langflow OSS allows authenticated users to run any command on the server High · CVE-2026-120601
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-30820For 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.