Description
Flowise before 3.0.6 contains an arbitrary file read vulnerability in the chatId parameter of the /api/v1/get-upload-file and /api/v1/openai-assistants-file/download endpoints. The chatId value is not validated and is passed to streamStorageFile(), where a fallback file-lookup path constructed without the orgId is evaluated after the storage-directory containment check, allowing path traversal beyond the intended storage directory. Unauthenticated attackers can read sensitive files such as /root/.flowise/database.sqlite, exposing all database content in the default configuration.
Problem types
External Control of File Name or Path
Product status
Any version before 3.0.6
3.0.6 (semver)
Credits
dwbzn
References
github.com/...lowise/security/advisories/GHSA-99pg-hqvx-r4gf (GitHub Security Advisory (GHSA-99pg-hqvx-r4gf))
www.vulncheck.com/...rbitrary-file-read-via-chatid-parameter (VulnCheck Advisory: Flowise - Arbitrary File Read via chatId Parameter)