Loading...
Skip to main content

CVE-2026-30820

HIGH

Flowise has Authorization Bypass via Spoofed x-request-from Header

Published March 6, 2026Updated March 9, 2026Source: osv

Summary

### 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/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. ### 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.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update flowise to 3.0.13 or later
npm install flowise@3.0.13

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

PackageEcosystemAffectedFixed In
flowise
npm
All versions3.0.13

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-863
    Incorrect AuthorizationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Confidentiality
Integrity
Availability

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

Frequently Asked Questions

What is CVE-2026-30820?
Flowise has Authorization Bypass via Spoofed x-request-from Header This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-30820?
CVE-2026-30820 affects flowise. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-30820 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-wvhq-wp8g-c7vq

Related CVEs

  • CVE-2025-71334
    CRITICAL

    Flowise has arbitrary file access due to missing chat flow id validation

  • CVE-2026-70478
    CRITICAL

    Flowise: Unauthenticated OAuth2 token refresh endpoint returns access tokens — enables token theft for any connected service

  • CVE-2026-41265
    CRITICAL

    Flowise: Airtable_Agent Code Injection Remote Code Execution Vulnerability

  • CVE-2026-41274
    HIGH

    Flowise: Cypher Injection in GraphCypherQAChain

  • CVE-2026-56274
    HIGH

    Flowise has an MCP Security Bypass that Enables RCE

  • CVE-2026-46479
    HIGH

    FlowiseAI: Evaluation create+update mass-assignment allows cross-workspace evaluation takeover

  • CVE-2025-34267
    HIGH

    Flowise: Authenticated Command Execution and Sandbox Bypass via Puppeteer and Playwright Packages

  • CVE-2024-9148
    MEDIUM

    Flowise and Flowise Chat Embed vulnerable to Stored Cross-site Scripting

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies