NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Flowise

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

highCVSS 4.0 8.7GHSA-wvhq-wp8g-c7vq

Flowise up to 3.0.12 trusts any request that carries the header x-request-from: internal. A logged-in low-privilege tenant can add that header and reach every /api/v1 route, including API key creation, credential stores and custom function execution. Fixed in Flowise 3.0.13.

Published Mar 6, 2026 · Updated Mar 9, 2026 · Analysis Oct 31, 2026

What an attacker can do

The global middleware for /api/v1 in packages/server/src/index.ts has three branches. Whitelisted paths pass. A request with x-request-from equal to internal goes to verifyToken, which accepts the browser session cookie. Everything else must present a valid API key. The header is set by the client, so any user with a session cookie can claim to be internal, and the middleware does no further permission check before next().

The advisory's proof of concept uses Flowise 3.0.8. With the cookie and the header, POST /api/v1/apikey returned 200 and a new key object. Without the header, the same call returned Unauthorized Access. The same trick reaches /api/v1/credentials, /api/v1/tools and /api/v1/node-custom-function.

So any authenticated tenant, with no API key or elevated role, can mint API keys and read stored secrets for model providers and connected services. Combined with the custom function execution flaws, it can lead to full server compromise. Self-hosted deployments that use the default middleware are affected. The attacker needs a valid login and network access.

Who is affected

The npm package flowise, versions <= 3.0.12. The advisory demonstrates it on 3.0.8 and says self-hosted deployments with the default middleware are affected. Check the version:

npm ls -g flowise

For Docker, read the image tag, or the version in the Flowise UI settings.

flowise

Ecosystem
npm
Affected
<= 3.0.12
Fixed in
3.0.13
Check
npm ls flowise

How to fix it

Upgrade to flowise 3.0.13.

npm install -g [email protected]

The 3.0.13 release notes list authorization hardening such as permissions on API keys, but they do not mention x-request-from by name. Until you upgrade, reduce who can log in, strip the x-request-from header at a reverse proxy before it reaches Flowise, and rotate API keys and stored credentials that tenants could read.

How to tell if you were hit

Look in reverse-proxy and access logs for requests to /api/v1 carrying x-request-from: internal, which normal browsers do not send except through the Flowise UI itself, so compare to a baseline. Review the API key list for keys you did not create, such as names like Bypass Demo. Check credentials, tools and custom function entries for recent edits, and review who called /api/v1/node-custom-function.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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:

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/flowise_cookies.txt … /api/v1/auth/login).
  2. Invoke an internal-only endpoint with the spoofed header:
    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.

  1. Remove the header and retry:
    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.

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.

Credited to N3mes1s.

Questions

Is Flowise 3.0.12 affected by CVE-2026-30820?

Yes. The affected range is <= 3.0.12. Upgrade to 3.0.13.

Does the attacker need an account?

Yes. They need a valid session cookie for any tenant. They do not need an API key or admin role.

Why does one header bypass authorization?

The middleware treats x-request-from: internal as proof of an internal client and only runs verifyToken. The header is attacker-controlled, so it proves nothing.

Can this lead to remote code execution?

The advisory says it can, when combined with other flaws such as Custom Function RCE. The header bypass itself opens those endpoints to ordinary tenants.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Flowise vulnerabilities

All Flowise entries