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·22 visits

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

•2 days ago•CVE-2026-58254
6.5

CVE-2026-58254: Authorization Bypass in NATS Server Message Tracing for Leaf Node Connections

NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.

Alon Barad
Alon Barad
11 views•10 min read
•2 days ago•CVE-2026-63341
7.5

CVE-2026-63341: Unauthenticated Denial of Service via Unbounded Topic Depth in Aedes MQTT Broker

CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.

Alon Barad
Alon Barad
14 views•12 min read
•2 days ago•CVE-2026-61725
6.1

CVE-2026-61725: Path Traversal and Arbitrary File Overwrite in sevenz-rust2

CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.

Alon Barad
Alon Barad
6 views•12 min read
•2 days ago•CVE-2026-77309
8.8

CVE-2026-77309: Unauthenticated Remote Code Execution in NASA-AMMOS AIT-GUI via Incomplete File Cleanup and Path Traversal

CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.

Amit Schendel
Amit Schendel
15 views•10 min read
•2 days ago•CVE-2026-77332
2.3

CVE-2026-77332: Surfaced-Memory Envelope Injection and Stored Prompt Injection in memtomem-stm

A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.

Alon Barad
Alon Barad
19 views•10 min read
•2 days ago•CVE-2026-77331
2.0

CVE-2026-77331: Race Condition and Session State Corruption in memtomem-stm

CVE-2026-77331 (GHSA-72jh-722p-rqr3) is a concurrency and session-state synchronization vulnerability in memtomem-stm, a short-term memory proxy gateway for AI agents. In versions 0.1.2 prior to 0.1.34, concurrent Model Context Protocol (MCP) Remote Procedure Call (RPC) failures or mid-flight task cancellations can initiate duplicate reconnect loops and permit dirty or cancelled transport sessions to be reused. This deficiency results in session-state integrity loss and local service degradation.

Amit Schendel
Amit Schendel
8 views•9 min read