| Package | Affected versions | Patched versions |
|---|---|---|
| flowise | < 3.1.2 | 3.1.2 |
| flowise | < 3.1.2 | 3.1.2 |
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.
// packages/server/src/controllers/text-to-speech/index.ts:83
res.setHeader('Access-Control-Allow-Origin', '*')
res.setHeader('Access-Control-Allow-Headers', 'Cache-Control')
getCorsOptions()) which is otherwise restrictive by defaultRemove 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')
packages/server/src/controllers/text-to-speech/index.ts line 83Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free