Aug 4, 2026·5 min read·22 visits
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.
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.
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.
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.
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.
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.
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.
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| Attribute | Detail |
|---|---|
| CWE ID | CWE-863 (Incorrect Authorization) |
| Attack Vector | Network (AV:N) |
| CVSS Score | 7.6 (High) |
| Exploit Status | PoC / Publicly Documented |
| KEV Status | Not Listed |
| Impact | Unauthenticated Token Theft & Injection |
CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.
An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.
CVE-2026-126304 is a symlink path traversal vulnerability (CWE-59) in the Natural Language Toolkit (NLTK) versions 3.10.0 prior to 3.10.4. The YCOECorpusReader class constructs internal sub-readers for the 'psd' and 'pos' subdirectories using FileSystemPathPointer.join(), which relies exclusively on lexical string-prefix validation rather than canonical path resolution. An attacker who supplies a crafted YCOE corpus containing symbolic links in place of the 'psd' or 'pos' subdirectories can bypass directory confinement and read arbitrary files from sibling corpora or sensitive directories within the NLTK data sandbox.