{"id":"GHSA-m837-xvxr-vqwg","revision":"cf0a9f20473c40a8b4f71da2afdf1b6e","records":[{"revision":"cf0a9f20473c40a8b4f71da2afdf1b6e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-m837-xvxr-vqwg","aliases":["CVE-2026-56277"],"title":"Flowise: Hardcoded CORS wildcard on TTS endpoint enables cross-origin credential abuse from any webpage","description":"### 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","state":0,"publishedAt":"2026-05-20T15:38:02+00:00","modifiedAt":"2026-07-08T08:27:17.4288243+00:00","affected":[{"ecosystem":"npm","name":"flowise","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.1.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","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":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-m837-xvxr-vqwg","https://github.com/FlowiseAI/Flowise"],"sourceUrl":"https://github.com/advisories/GHSA-m837-xvxr-vqwg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-m837-xvxr-vqwg","identifiers":["GHSA-m837-xvxr-vqwg","CVE-2026-56277"]},"retained":false,"historicalAffected":[]}],"coverage":[]}