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



GHSA-M837-XVXR-VQWG

GHSA-m837-xvxr-vqwg: Hardcoded CORS Wildcard Enables Cross-Origin Credential Abuse in Flowise

Amit Schendel
Amit Schendel
Senior Security Researcher

May 21, 2026·5 min read·17 visits

Executive Summary (TL;DR)

A hardcoded `Access-Control-Allow-Origin: *` header in Flowise's TTS endpoint allows malicious websites to perform unauthorized cross-origin requests. Combined with credential abuse flaws, this allows attackers to consume configured external TTS API quotas.

Flowise versions prior to 3.1.2 contain a hardcoded CORS wildcard on the Text-to-Speech (TTS) endpoint. This configuration bypasses the application's global security policies and enables cross-origin credential abuse, leading to unauthorized resource consumption and potential financial impact via third-party API quota exhaustion.

Vulnerability Overview

Flowise is a visual AI agent builder that integrates various external APIs, including Text-to-Speech (TTS) engines. The application exposes specific HTTP endpoints to handle these integrations and facilitate frontend interactions. The vulnerability resides in the TTS generation endpoint, which is responsible for processing requests and returning audio data.

A security design flaw exists in the Cross-Origin Resource Sharing (CORS) configuration for this specific endpoint. The application implements a global CORS policy via the getCorsOptions() function, but the TTS endpoint overrides this configuration with a hardcoded wildcard. This explicit override nullifies the intended origin restrictions for TTS requests.

The flaw is tracked as GHSA-m837-xvxr-vqwg and affects all Flowise versions prior to 3.1.2. By explicitly permitting any origin to read HTTP responses, the application exposes active sessions to cross-origin abuse. This configuration violates standard web security practices regarding resource sharing and creates a significant localized security boundary failure.

Root Cause Analysis

The root cause is the manual injection of the Access-Control-Allow-Origin: * header directly within the controller logic for the TTS endpoint. Cross-Origin Resource Sharing (CORS) is a browser security mechanism that restricts how documents or scripts loaded from one origin interact with resources from another origin. When a server responds with a wildcard origin, it instructs the browser to permit any requesting domain to read the HTTP response.

The Flowise architecture includes a centralized global CORS configuration designed to manage access control consistently across the application. However, the developer implemented specific response headers in the TTS controller, completely bypassing the centralized policy. This isolated configuration choice created an unintended access vector.

While browsers typically restrict the transmission of credentials when a wildcard origin is combined with the withCredentials flag, this specific implementation flaw interacts poorly with other architectural decisions. The explicit wildcard permits malicious cross-origin execution of the TTS logic, providing a pathway for exploitation when combined with TTS credential abuse vulnerabilities.

Code Analysis

The vulnerable implementation is located in the packages/server/src/controllers/text-to-speech/index.ts file. At approximately line 83, the controller explicitly modifies the HTTP response headers before returning the payload. This modification is hardcoded and executes unconditionally for every request hitting the endpoint.

The vulnerable code snippet demonstrates the direct manipulation of the response object. The developer instructed the server to append the wildcard origin and a specific cache control header, ignoring the global Express middleware configuration.

// packages/server/src/controllers/text-to-speech/index.ts:83
res.setHeader('Access-Control-Allow-Origin', '*')
res.setHeader('Access-Control-Allow-Headers', 'Cache-Control')

The patch completely removes these manual header injections. By deleting these two lines, the endpoint delegates CORS handling back to the global middleware configured for the Express application. The standard middleware correctly validates the incoming origin against the allowed list defined in the application's global state.

// Patched Code (packages/server/src/controllers/text-to-speech/index.ts)
- res.setHeader('Access-Control-Allow-Origin', '*')
- res.setHeader('Access-Control-Allow-Headers', 'Cache-Control')

Exploitation Methodology

Exploitation relies on a drive-by attack vector. An attacker must host a malicious webpage and convince a user with an active Flowise session to visit the site. Upon loading the page, embedded JavaScript executes a cross-origin HTTP request targeting the victim's Flowise instance's TTS endpoint.

Because the endpoint responds with the wildcard origin header, the victim's browser permits the malicious page to read the HTTP response. The advisory notes that this CORS bypass becomes critically exploitable when combined with a secondary vulnerability documented as "Finding 3" (TTS credential abuse). This combination allows the cross-origin request to execute successfully within the context of the user's application state.

The exploitation sequence does not require direct network access to the Flowise backend from the attacker's infrastructure. The attack is entirely client-side, leveraging the victim's browser as a confused deputy. The success of the exploit depends on the victim maintaining an authenticated session.

Impact Assessment

The primary impact of this vulnerability is unauthorized resource consumption. Flowise integrates with external, paid APIs for TTS generation, such as OpenAI and ElevenLabs. Exploitation allows an attacker to generate audio files using the victim's configured API keys and service quotas.

Continuous or automated exploitation leads to rapid API quota exhaustion and financial damage. The attacker consumes the credits associated with the Flowise instance without requiring direct access to the underlying API keys themselves. The system effectively acts as an open proxy for commercial TTS generation services.

The CVSS v4.0 score of 6.9 reflects the network attack vector, low attack complexity, and the impact on the integrity and availability of the system's external resources. While the vulnerability does not grant arbitrary code execution on the host server, the financial and operational impact on the application owner is substantial.

Remediation and Mitigation

The vendor addressed the vulnerability in Flowise version 3.1.2. The recommended remediation is an immediate upgrade to this patched version or a later release. Upgrading ensures the centralized CORS middleware correctly protects the TTS endpoint.

System administrators using Docker must update their deployment configurations to pull the fixed image tag. Executing docker pull flowiseai/flowise:3.1.2 retrieves the secure version. Administrators must restart the container to apply the new image layer and flush any cached configurations.

Organizations unable to upgrade immediately can implement mitigation strategies at the reverse proxy layer. Configuring Nginx, HAProxy, or an API gateway to strip or overwrite the Access-Control-Allow-Origin header for the /api/v1/text-to-speech endpoint neutralizes the vulnerability. The proxy must enforce the organization's standard CORS policy.

Official Patches

FlowiseAIFlowise v3.1.2 Release Notes

Technical Appendix

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

Affected Systems

Flowise (npm package)Flowise Docker Image

Affected Versions Detail

Product
Affected Versions
Fixed Version
flowise
FlowiseAI
< 3.1.23.1.2
AttributeDetail
Vulnerability IDGHSA-m837-xvxr-vqwg
CVSS Score6.9 (v4.0)
Attack VectorNetwork
CWE IDCWE-942
ImpactCross-Origin Credential Abuse & Quota Exhaustion
Affected ComponentTTS Generation Endpoint

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
CWE-942
Permissive Cross-Domain Policy with Untrusted Domains

Permissive Cross-Domain Policy with Untrusted Domains

Vulnerability Timeline

Release of Flowise v3.1.2 containing the fix
2026-04-14
Public disclosure and publication of GHSA-m837-xvxr-vqwg
2026-05-20

References & Sources

  • [1]GitHub Security Advisory GHSA-m837-xvxr-vqwg
  • [2]Flowise Repository
  • [3]OSV Entry

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•40 minutes ago•CVE-2026-72802
6.9

CVE-2026-72802: Sensitive Information Disclosure via Administrative Asset Resolvers in SiYuan Note

SiYuan Note versions prior to v3.7.4 contain an information disclosure vulnerability in the `/api/asset/resolveAssetPath` endpoint. This endpoint returns absolute backend filesystem paths unmodified to CheckAuth-only requests. Low-privileged users or unauthenticated readers under publish mode can exploit this to leak the local directory layout, operating system username, and overall host deployment structure.

Amit Schendel
Amit Schendel
0 views•6 min read
•about 2 hours ago•CVE-2026-72801
8.7

CVE-2026-72801: Information Disclosure of Cryptographic Key Material in SiYuan

An access control vulnerability in the SiYuan personal knowledge management platform before version v3.7.4 exposes notebook encryption parameters to unauthenticated remote attackers. When the platform is configured in Publish Mode, specific API endpoints fail to enforce authorization checks. This access failure leaks key-derivation materials, password verifiers, and wrapped database keys to anonymous network clients.

Amit Schendel
Amit Schendel
3 views•6 min read
•about 4 hours ago•CVE-2026-72800
5.8

CVE-2026-72800: Missing Authorization in SiYuan Personal Knowledge Management System

A security vulnerability in the SiYuan local-first personal knowledge management system allows unauthenticated remote attackers to bypass logical boundary controls in publish (read-only) mode. By interacting with endpoints that lack proper publish-access validation, an attacker can disclose the application's internal database schemas and harvest block IDs across both public and private notebooks. This metadata leakage compromises the confidentiality of restricted documents and provides foundational information for targeted extraction.

Alon Barad
Alon Barad
2 views•5 min read
•about 5 hours ago•CVE-2026-72803
6.9

CVE-2026-72803: Information Disclosure via Missing Authorization in SiYuan API

An information disclosure vulnerability exists in the SiYuan personal knowledge management system versions prior to v3.7.4. The application fails to enforce publish-access filters on block attribute retrieval endpoints. Consequently, unauthenticated remote attackers can bypass document-level protection rules (such as password protection or disabled-publish flags) to retrieve sensitive block-level attributes, including aliases, memos, block names, and custom metadata fields, by querying the API using guessed or known block IDs.

Alon Barad
Alon Barad
4 views•7 min read
•about 6 hours ago•GHSA-7J72-F6WG-CXW6
8.6

CVE-2026-68584: Authentication Bypass via Auxiliary Content Endpoints in SiYuan

An authentication bypass vulnerability (classified as CWE-288) exists in the publish-mode component of SiYuan, a Go-based note-taking application. This security flaw allows unauthenticated remote attackers to bypass password-protected note boundaries by leveraging auxiliary block endpoints that fail to enforce document access checks. Attackers can exploit this issue by first harvesting document metadata via a public search endpoint and subsequently fetching full rendered document contents using vulnerable block endpoints. This technical analysis explores the root cause, exploitation methodology, and remediation path.

Alon Barad
Alon Barad
2 views•7 min read
•about 7 hours ago•CVE-2026-77465
7.5

CVE-2026-77465: Uncontrolled Recursion in toml-node Deserializer Leads to Denial of Service

An uncontrolled recursion vulnerability (CWE-674) in the toml-node NPM package (published as toml) prior to version 4.2.0 allows unauthenticated remote attackers to trigger process-wide Denial of Service (DoS) crashes. By submitting TOML payloads with deep bracket or brace nesting, attackers exhaust the V8 runtime stack limit.

Amit Schendel
Amit Schendel
6 views•6 min read