CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-70474

CVE-2026-70474: Incorrect Authorization and Missing Authentication in Flowise OAuth2 Credential Endpoints

Alon Barad
Alon Barad
Software Engineer

Aug 4, 2026·5 min read·1 visit

Executive Summary (TL;DR)

Unauthenticated remote attackers can exfiltrate active third-party access tokens, inject rogue OAuth2 states, or access cross-workspace metadata due to missing workspace isolation and overly permissive API routing whitelists in Flowise < 3.1.3.

A critical authorization flaw exists in Flowise, a popular drag-and-drop orchestrator for building customized Large Language Model flows. Prior to version 3.1.3, multiple OAuth2 credential endpoints do not filter database lookups by the requesting entity's workspace context. This omission, combined with the exclusion of several endpoints from the global authentication pipeline, permits unauthenticated remote actors to access, manipulate, or steal access tokens linked to external service integrations.

Vulnerability Overview

Flowise is an open-source, drag-and-drop user interface designed to orchestrate and build custom Large Language Model (LLM) workflows. To connect with third-party APIs such as Microsoft Office 365, Google Workspace, or GitHub, Flowise utilizes OAuth2 credential configurations.

Prior to version 3.1.3, Flowise exposes three OAuth2 credential endpoints to severe security weaknesses. These endpoints do not properly restrict access based on the workspace partition of the requesting entity. Instead, they query the backend database using only the record-specific UUID.

Additionally, two of these endpoints are explicitly excluded from the global authentication pipeline. This design flaw permits unauthenticated remote attackers to perform unauthorized actions on stored credentials, potentially leading to third-party access token exfiltration.

Root Cause Analysis

The primary root cause of CVE-2026-70474 is a combination of missing database query scoping and insecure global route whitelisting. Within multi-tenant or workspace-isolated environments, standard security practices dictate that any resource query must bind to both the resource ID and the tenant context. In Flowise, the database schema contains a workspace identifier to enforce this separation.

However, in the vulnerable routes located in packages/server/src/routes/oauth2/index.ts, the application queries the Credential repository using only the credentialId or state identifier. The database schema's workspaceId attribute is completely ignored during lookups.

Simultaneously, the global route controller defines a whitelist pattern to permit seamless external OAuth2 callback interactions. The path prefixes /api/v1/oauth2-credential/callback and /api/v1/oauth2-credential/refresh bypass JWT verification entirely. Because the lookup does not validate the workspace context and the routes do not enforce authentication, any remote attacker can interact with arbitrary credential entries.

Code Analysis

The vulnerable implementation in packages/server/src/routes/oauth2/index.ts queries the database repository directly with user-supplied identifiers without enforcing context restrictions. For example, the lookup in the authorize route is configured as follows:

// VULNERABLE
const credential = await credentialRepository.findOneBy({
    id: credentialId
})

The corresponding patch in Flowise version 3.1.3 remediates this behavior by enforcing workspace scoping. The lookup is modified to extract the active workspace ID directly from the authenticated session context:

// PATCHED
const credential = await credentialRepository.findOneBy({
    id: credentialId,
    workspaceId: req.user?.activeWorkspaceId
})

While the patch secures authenticated paths, developers must remain cautious. If TypeORM or similar Object-Relational Mappers receive an undefined value for activeWorkspaceId, they may silently strip the property from the query criteria. In such cases, the query reverts to lookup by id alone, which represents a potential validation bypass under specific configurations.

Exploitation Methodology

An attacker can exploit these weaknesses through three separate attack vectors depending on their level of access. The first vector involves an authenticated user in a low-privilege workspace querying the /authorize endpoint of another workspace's credential. If the attacker knows or guesses the target UUID, they can leak metadata, including the client ID and the requested scope.

The second vector involves unauthenticated token injection. Since the callback endpoint is whitelisted, an attacker can invoke /api/v1/oauth2-credential/callback?code=ATTACKER_CODE&state=VICTIM_UUID. Flowise will contact the external provider, exchange the attacker's code, and write the resulting token to the database under the victim's credential record, effectively hijacking the flow.

The third and most critical vector is unauthenticated token theft. By sending a POST request to /api/v1/oauth2-credential/refresh/VICTIM_UUID, an attacker triggers an automatic token refresh cycle. The server exchanges the stored refresh token for a new access token and returns the payload in the HTTP response body, granting the attacker direct API access to the victim's external third-party services.

Impact Assessment

The impact of CVE-2026-70474 is severe, particularly for enterprise deployments managing integrations with highly privileged third-party services. Because LLM orchestrators often require write access to corporate repositories, cloud storage, or communications channels, compromising an OAuth2 credential can lead to significant downstream compromises.

An attacker who successfully retrieves an active access token via the /refresh endpoint gains full API access under the context of the linked third-party account. This may facilitate data exfiltration, lateral movement within external systems, or unauthorized modification of production configurations.

The CVSS v4.0 score is calculated at 7.6, emphasizing the high impact on confidentiality and integrity. The risk is compounded by the ease of exploitation, as targeting whitelisted endpoints requires no authentication or specific session state.

Remediation & Detection Guidance

The recommended remediation is to immediately upgrade the Flowise installation to version 3.1.3 or higher. This release integrates session-to-workspace checks on all critical database queries associated with the OAuth2 workflow.

If upgrading is not immediately possible, organizations should deploy temporary network-level controls. Administrators can configure Web Application Firewalls (WAF) to block external HTTP traffic targeting the /api/v1/oauth2-credential/refresh/ path prefix. Access should only be allowed from trusted internal networks or specific identity provider callback URLs.

Additionally, security teams should inspect the application's audit logs for anomalous POST requests on the refresh endpoints. Any unexpected authorization callback traffic or unknown state parameters should be treated as potential exploitation attempts. Credentials stored in vulnerable versions should be rotated to invalidate any potentially exfiltrated access tokens.

Technical Appendix

CVSS Score
7.6/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Affected Systems

Flowise (npm package 'flowise')
AttributeDetail
CWE IDCWE-863 (Incorrect Authorization)
Attack VectorNetwork (AV:N)
CVSS Score7.6 (High)
Exploit StatusPoC / Publicly Documented
KEV StatusNot Listed
ImpactUnauthenticated Token Theft & Injection
CWE-863
Incorrect Authorization

Vulnerability Timeline

CVE Published
2026-08-04
Flowise Patch Released
2026-08-04

References & Sources

  • [1]GitHub Security Advisory
  • [2]Flowise 3.1.3 Release Tag
  • [3]Official CVE Record

More Reports

•about 1 hour ago•CVE-2026-70485
7.1

CVE-2026-70485: Server-Side Request Forgery in Open WebUI via NAT64 IP Wrapping Bypass

Open WebUI is susceptible to Server-Side Request Forgery (SSRF) when deployed in networks with NAT64 translation gateways. Authenticated users can bypass host validation checks by encapsulating internal or cloud-metadata IPv4 addresses within globally-routable IPv6 transition prefixes.

Alon Barad
Alon Barad
5 views•5 min read
•about 3 hours ago•GHSA-RWRP-9823-P2XQ
6.5

GHSA-RWRP-9823-P2XQ: Incomplete Credential Redaction in Flowise API

An incomplete credential redaction mechanism in Flowise allows authenticated users with standard view permissions to retrieve sensitive decrypted third-party credentials in plaintext.

Amit Schendel
Amit Schendel
4 views•6 min read
•about 4 hours ago•CVE-2026-69262
7.1

CVE-2026-69262: Incorrect Authorization Flaw in Flowise Chatflow Deletion Endpoint

CVE-2026-69262 is a high-severity incorrect authorization vulnerability (CWE-863) within the Flowise drag-and-drop LLM flow platform. Prior to version 3.1.3, Flowise did not enforce resource-type validation on its deletion endpoint. Although routing middleware ensured users held deletion privileges for either chatflows or agentflows, the service level lacked validation checks to verify whether the target resource matched the user's specific permissions. Consequently, an authenticated user with only agentflow deletion permissions could delete arbitrary chatflow configurations, leading to unauthorized state modification and service disruption.

Amit Schendel
Amit Schendel
4 views•7 min read
•about 5 hours ago•CVE-2026-69258
8.8

CVE-2026-69258: Unauthenticated Property Injection and Authorization Bypass in Flowise

CVE-2026-69258 is a high-severity property injection and unauthenticated authorization bypass vulnerability in Flowise, a drag-and-drop orchestration interface for building customized LLM workflows. In affected versions prior to 3.1.3, the unauthenticated prediction API endpoint (`POST /api/v1/prediction/:id`) processed client-controlled parameters inside an `overrideConfig` payload without authorization checks. The backend unconditionally spread this object into internal context structures, enabling unauthenticated remote attackers to overwrite critical session values, pollute execution contexts, and bypass flow restrictions.

Amit Schendel
Amit Schendel
8 views•5 min read
•about 6 hours ago•CVE-2026-69252
7.2

CVE-2026-69252: Broken Workspace Isolation and Missing Authorization in Flowise File Management API

CVE-2026-69252 represents a missing authorization check (CWE-862) in the files API route (`/api/v1/files`) of Flowise, a drag-and-drop user interface for building LLM flows. Prior to version 3.1.3, an authenticated API key or user could list, access, and delete files across arbitrary workspaces inside an organization, completely bypassing workspace logical boundaries.

Amit Schendel
Amit Schendel
5 views•5 min read
•about 6 hours ago•CVE-2026-45584
8.1

CVE-2026-45584: Heap-Based Buffer Overflow in Microsoft Defender (mpengine.dll)

A comprehensive technical analysis of CVE-2026-45584, a high-severity heap-based buffer overflow in Microsoft Defender's QEX parsing logic. The vulnerability resides within mpengine.dll and allows unauthenticated remote code execution or denial of service when processing crafted archives designed to trigger threat remediation and QEX history logging.

Alon Barad
Alon Barad
4 views•7 min read