Skip to content
MediumVulnerability

GHSA-m837-xvxr-vqwg: Flowise: Hardcoded CORS wildcard on TTS endpoint enables cross-origin credential abuse from any webpage

Published
Record updated
View JSON
Affected
  • flowise <= 3.1.1
Fixed in
3.1.2

Summary

Flowise's TTS generation endpoint hardcodes `Access-Control-Allow-Origin: *` in packages/server/src/controllers/text-to-speech/index.ts (line 83), independent of the server's CORS configuration. This lets any webpage make cross-origin requests that generate speech using stored credentials, bypassing the restrictive default `getCorsOptions()` policy. Combined with Finding 3 (TTS credential abuse), it enables drive-by credential abuse via malicious webpages.

Mitigation

Remove the hardcoded CORS wildcard and let the server's CORS middleware handle the headers. Delete the lines `res.setHeader('Access-Control-Allow-Origin', '*')` and `res.setHeader('Access-Control-Allow-Headers', 'Cache-Control')`.