From b812fbc00f7f6234482f18d6c2c047075fe2772e Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 25 Jun 2025 14:21:53 +0100 Subject: [PATCH] validate chatflow uuid --- packages/components/src/storageUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/components/src/storageUtils.ts b/packages/components/src/storageUtils.ts index 5028c0f58..54c6b5822 100644 --- a/packages/components/src/storageUtils.ts +++ b/packages/components/src/storageUtils.ts @@ -747,8 +747,8 @@ export const streamStorageFile = async ( } // Check for path traversal attempts - if (isPathTraversal(chatflowId) || isPathTraversal(chatId)) { - throw new Error('Invalid path characters detected in chatflowId or chatId') + if (isPathTraversal(chatflowId)) { + throw new Error('Invalid path characters detected in chatflowId') } const storageType = getStorageType()