Flowise - Hardcoded CORS Wildcard in TTS Endpoint
cve-program · CVE-2026-56277
PublishedFlowise before 3.1.2 sets Access-Control-Allow-Origin to a hardcoded wildcard (*) on its text-to-speech (TTS) generation endpoint (packages/server/src/controllers/text-to-speech/index.ts), independent of the server's configured CORS policy. This bypasses the server's otherwise restrictive default CORS configuration (getCorsOptions()) and allows any webpage to make cross-origin requests that trigger TTS generation using stored credentials, enabling drive-by cross-origin credential abuse.
Read the publisher's advisoryeuvd · EUVD-2026-40432
PublishedFlowise before 3.1.2 sets Access-Control-Allow-Origin to a hardcoded wildcard (*) on its text-to-speech (TTS) generation endpoint (packages/server/src/controllers/text-to-speech/index.ts), independent of the server's configured CORS policy. This bypasses the server's otherwise restrictive default CORS configuration (getCorsOptions()) and allows any webpage to make cross-origin requests that trigger TTS generation using stored credentials, enabling drive-by cross-origin credential abuse.
Read the publisher's advisorynvd · CVE-2026-56277
PublishedFlowise before 3.1.2 sets Access-Control-Allow-Origin to a hardcoded wildcard (*) on its text-to-speech (TTS) generation endpoint (packages/server/src/controllers/text-to-speech/index.ts), independent of the server's configured CORS policy. This bypasses the server's otherwise restrictive default CORS configuration (getCorsOptions()) and allows any webpage to make cross-origin requests that trigger TTS generation using stored credentials, enabling drive-by cross-origin credential abuse.
Read the publisher's advisoryosv · GHSA-m837-xvxr-vqwg
Published### 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 ```typescript // 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: ```typescript // 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.ts` line 83
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-56277 · CVE overview and exploitation status
cve-program · CVE-2026-56277
- https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-m837-xvxr-vqwg
- https://www.vulncheck.com/advisories/flowise-hardcoded-cors-wildcard-in-tts-endpoint
euvd · EUVD-2026-40432
- https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-m837-xvxr-vqwg
- https://www.vulncheck.com/advisories/flowise-hardcoded-cors-wildcard-in-tts-endpoint
nvd · CVE-2026-56277
- https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-m837-xvxr-vqwg
- https://www.vulncheck.com/advisories/flowise-hardcoded-cors-wildcard-in-tts-endpoint