GHSA-m837-xvxr-vqwg: Flowise: Hardcoded CORS wildcard on TTS endpoint enables cross-origin credential abuse from any webpage
The text-to-speech endpoint in Flowise 3.1.1 and earlier hardcodes an Access-Control-Allow-Origin: * header, which overrides the server's own CORS policy. Any web page a user visits can then call the endpoint and trigger speech generation with the TTS credentials stored in Flowise. Upgrade the flowise npm package to 3.1.2.
Published May 20, 2026 · Analysis Oct 27, 2026
What an attacker can do
Flowise has a CORS policy built in getCorsOptions(), restrictive by default. The TTS controller (packages/server/src/controllers/text-to-speech/index.ts, line 83) bypasses it. It calls res.setHeader('Access-Control-Allow-Origin', '*') and sets Access-Control-Allow-Headers to Cache-Control on its own responses. Browsers therefore let scripts from any origin read the endpoint's responses.
The advisory says any web page can trigger TTS using the credentials stored in the instance. It describes a drive-by case: a user or a network client with access to a Flowise server opens a malicious page, and that page's script calls the TTS route. The advisory links this to a separate TTS credential-abuse finding, so a page could spend the owner's speech-provider quota or credits. The advisory does not describe how the endpoint authenticates callers, so how easy this is depends on your deployment. The CVSS 4.0 score is 6.9 with low confidentiality and integrity impact, and no user privileges are required.
Who is affected
The npm package flowise at 3.1.1 or earlier. Check the version:
npm ls flowiseInstances that have a text-to-speech provider configured with stored credentials carry the most risk, because those are what a cross-origin call can use.
flowise
- Ecosystem
- npm
- Affected
- <= 3.1.1
- Fixed in
- 3.1.2
- Check
npm ls flowise
How to fix it
Upgrade flowise to 3.1.2, the patched version listed in the advisory:
npm install -g [email protected]The suggested code fix removes the two hardcoded setHeader lines so the server's CORS middleware controls the headers. No other workaround is listed. If you cannot upgrade, you can reduce the risk by keeping the instance off the open network and rotating the speech-provider API key if you see unexplained usage.
How to tell if you were hit
Check your TTS provider's usage dashboard for requests you did not make. In Flowise or reverse-proxy logs, look for calls to the text-to-speech route that carry an Origin header from a domain you do not own. You can also test whether you are exposed by sending a request to the route and looking for Access-Control-Allow-Origin: * in the response headers.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
The TTS generation endpoint sets Access-Control-Allow-Origin: * as a hardcoded response header, independent of the server's CORS configuration. This enables any webpage to make cross-origin requests to generate speech using stored credentials.
Root Cause
// packages/server/src/controllers/text-to-speech/index.ts:83
res.setHeader('Access-Control-Allow-Origin', '*')
res.setHeader('Access-Control-Allow-Headers', 'Cache-Control')Impact
- Cross-origin credential abuse — any webpage can trigger TTS using stored credentials
- Bypasses the server's CORS policy (
getCorsOptions()) which is otherwise restrictive by default - Combined with Finding 3 (TTS credential abuse), enables drive-by credential abuse via malicious webpages
Suggested Fix
Remove the hardcoded CORS wildcard and let the server's CORS middleware handle the headers:
// Remove these lines:
// res.setHeader('Access-Control-Allow-Origin', '*')
// res.setHeader('Access-Control-Allow-Headers', 'Cache-Control')---
References
packages/server/src/controllers/text-to-speech/index.tsline 83
Credited to DeathsPirate.
Questions
- Does GHSA-m837-xvxr-vqwg expose my whole Flowise instance?
Not as described. The advisory covers the TTS generation endpoint only, where a hardcoded wildcard CORS header lets any web page use stored speech credentials. Other routes still follow the server's CORS policy.
- How do I fix it?
Upgrade flowise to 3.1.2. The fix removes the hardcoded Access-Control-Allow-Origin header from the TTS controller so the global CORS settings apply.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More Flowise vulnerabilities
All Flowise entriesCVE-2026-73483
Flowise NodeVM sandbox escape via puppeteer allowlist - authenticated RCE and arbitrary file read via Chromium
critical9.4Oct 7, 2026CVE-2026-73487
Flowise Prompt Injection to RCE and SSRF via CSV/Airtable Agent Python Validator Bypass
critical9.0Oct 7, 2026CVE-2026-69250
Flowise: Unauthenticated OAuth2 Refresh Enables Non-Blind SSRF and Secret Exfiltration
high8.5Aug 4, 2026CVE-2026-69251
Flowise RCE via TypeORM DataSource
critical9.0Aug 4, 2026CVE-2026-69252
Flowise: Missing authorization on `/api/v1/files` allows low-privileged API keys to list and delete files across workspaces within the same organization
high7.2Aug 4, 2026CVE-2026-69253
Flowise Sandbox Escape to RCE
critical9.0Aug 4, 2026
