{"id":"CVE-2026-56277","aliases":["CVE-2026-56277","GHSA-m837-xvxr-vqwg"],"related":[],"kind":"vulnerability","state":"published","title":"Flowise - Hardcoded CORS Wildcard in TTS Endpoint","summary":"Flowise 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Flowise 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.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nThe 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.\n\n### Root Cause\n\n```typescript\n// packages/server/src/controllers/text-to-speech/index.ts:83\nres.setHeader('Access-Control-Allow-Origin', '*')\nres.setHeader('Access-Control-Allow-Headers', 'Cache-Control')\n```\n\n### Impact\n\n- Cross-origin credential abuse — any webpage can trigger TTS using stored credentials\n- Bypasses the server's CORS policy (`getCorsOptions()`) which is otherwise restrictive by default\n- Combined with Finding 3 (TTS credential abuse), enables drive-by credential abuse via malicious webpages\n\n### Suggested Fix\n\nRemove the hardcoded CORS wildcard and let the server's CORS middleware handle the headers:\n\n```typescript\n// Remove these lines:\n// res.setHeader('Access-Control-Allow-Origin', '*')\n// res.setHeader('Access-Control-Allow-Headers', 'Cache-Control')\n```\n\n---\n\n## References\n\n- `packages/server/src/controllers/text-to-speech/index.ts` line 83","format":"markdown","source":"ghsa"}],"published":"2026-05-20T15:38:02.000Z","modified":"2026-07-08T08:27:17.428Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-346","CWE-942"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.1.2","status":"affected"},{"type":"semver","version":"3.1.2","status":"unaffected"}],"vendor":"Flowise","product":"Flowise","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.1.2"}],"ecosystem":"npm","package":"flowise","purl":"pkg:npm/flowise","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.1.2"}],"vendor":"flowiseai","product":"flowise","cpe":"cpe:2.3:a:flowiseai:flowise:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-m837-xvxr-vqwg","tags":["mitigation","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/flowise-hardcoded-cors-wildcard-in-tts-endpoint","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/FlowiseAI/Flowise","tags":["package"],"sources":["ghsa"]}],"credits":["DeathsPirate"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-01T13:06:07.259Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-56277","url":"https://www.cve.org/CVERecord?id=CVE-2026-56277","licence":"CVE Terms of Use","modified":"2026-07-01T13:10:16.435Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m837-xvxr-vqwg","url":"https://github.com/advisories/GHSA-m837-xvxr-vqwg","licence":"CC-BY-4.0","modified":"2026-07-08T08:27:17.428Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-56277","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-56277","licence":"Public domain","modified":"2026-07-06T15:49:06.113Z"}],"updatedAt":"2026-11-25T22:59:26.845Z","epss":{"score":0.00136,"percentile":0.03279,"date":"2026-12-01T12:00:22.000Z"}}