Flowise/packages/components/nodes
Taraka Vishnumolakala 2414057c08
feat(security): enhance file path validation and implement non-root D… (#5474)
* feat(security): enhance file path validation and implement non-root Docker user

- Validate resolved full file paths including workspace boundaries in SecureFileStore
- Resolve paths before validation in readFile and writeFile operations
- Run Docker container as non-root flowise user (uid/gid 1001)
- Apply proper file ownership and permissions for application files

Prevents path traversal attacks and follows container security best practices

* Add sensitive system directory validation and Flowise internal file protection

* Update Dockerfile to use default node user

* update validation patterns to include additional system binary directories (/usr/bin, /usr/sbin, /usr/local/bin)

* added isSafeBrowserExecutable function to validate browser executable paths for Playwright and Puppeteer loaders

---------

Co-authored-by: taraka-vishnumolakala <taraka.vishnumolakala@workday.com>
Co-authored-by: Henry Heng <henryheng@flowiseai.com>
Co-authored-by: Henry <hzj94@hotmail.com>
2025-11-15 15:03:01 +00:00
..
agentflow chore: fix typos in packages/components/nodes/agentflow/Condition/Condition.ts (#5436) 2025-11-07 11:29:29 +00:00
agents chore: fix typos in packages/components/nodes/agents/AirtableAgent/AirtableAgent.ts (#5420) 2025-11-05 13:01:45 +00:00
analytic
cache
chains Chore/Update issue templates and add new tools (#4687) 2025-06-19 18:11:24 +01:00
chatmodels chore: fix typos in packages/components/nodes/chatmodels/ChatHuggingFace/ChatHuggingFace.ts (#5437) 2025-11-07 11:29:44 +00:00
documentloaders feat(security): enhance file path validation and implement non-root D… (#5474) 2025-11-15 15:03:01 +00:00
embeddings docs: fix typos in packages/components/nodes/embeddings/AWSBedrockEmbedding/AWSBedrockEmbedding.ts (#5447) 2025-11-07 11:48:47 +00:00
engine docs: fix typos in packages/components/nodes/engine/SubQuestionQueryEngine/SubQuestionQueryEngine.ts (#5446) 2025-11-07 11:48:31 +00:00
graphs/Neo4j
llms Feature: Add SambaNova (#4961) 2025-08-18 22:09:39 +08:00
memory
moderation
multiagents Bugfix/Supervisor Node AzureChatOpenAI (#5448) 2025-11-07 11:51:54 +00:00
outputparsers Refractor/SecureZodSchemaParser (#4898) 2025-07-19 01:11:31 +01:00
prompts chore: fix typos in packages/components/nodes/prompts/ChatPromptTemplate/ChatPromptTemplate.ts (#5438) 2025-11-07 11:30:01 +00:00
recordmanager Ensure proper cleanup of the database connection in `createSchema` (#5315) 2025-10-28 12:29:45 +00:00
responsesynthesizer
retrievers Bugfix/Gemini Structured Output (#4713) 2025-06-23 19:10:41 +01:00
sequentialagents chore: fix typos in packages/components/nodes/sequentialagents/commonUtils.ts (#5419) 2025-11-05 13:01:30 +00:00
speechtotext/assemblyai
textsplitters feat: Add header-based splitting to MarkdownTextSplitter (#4861) 2025-07-18 12:45:41 +01:00
tools chore: fix typos in packages/components/nodes/tools/MCP/core.ts (#5418) 2025-11-05 13:01:17 +00:00
utilities Chore/leave default timeout for sandbox execution (#5263) 2025-09-28 11:27:19 +01:00
vectorstores Chore/remove teradatasql (#5430) 2025-11-06 22:21:10 +00:00