mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-29 07:01:04 +03:00
Bugfix/add path traversal check to chatId (#5208)
* add path traversal check to chatId * update axios
This commit is contained in:
@@ -753,8 +753,8 @@ export const streamStorageFile = async (
|
||||
}
|
||||
|
||||
// Check for path traversal attempts
|
||||
if (isPathTraversal(chatflowId)) {
|
||||
throw new Error('Invalid path characters detected in chatflowId')
|
||||
if (isPathTraversal(chatflowId) || isPathTraversal(chatId)) {
|
||||
throw new Error('Invalid path characters detected in chatflowId or chatId')
|
||||
}
|
||||
|
||||
const storageType = getStorageType()
|
||||
|
||||
Reference in New Issue
Block a user