🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
TypeScript agentic-aiagentic-frameworkagentic-workflowagentsai-agentsai-assistantai-skillsautonomous-agentsclaudecodexdsh-pluginharnessmcp-servermulti-agentmulti-agent-systemsnpmskillsswarmswarm-intelligencetypescript
fix(agentbbs): reject .. in roomId in agentbbs-tools validator (#4416)
Dex279cb1fbfb6c
diff --git a/v3/@claude-flow/cli/src/mcp-tools/agentbbs-tools.ts b/v3/@claude-flow/cli/src/mcp-tools/agentbbs-tools.tsindex 4e7b98ba47..5453606baf 100644--- a/v3/@claude-flow/cli/src/mcp-tools/agentbbs-tools.ts+++ b/v3/@claude-flow/cli/src/mcp-tools/agentbbs-tools.ts@@ -111,6 +111,13 @@ function validateRoomId(roomId: string): string {if (!/^[A-Za-z0-9_.\-:/@#]+$/.test(roomId)) {throw new Error('roomId may only contain [A-Za-z0-9_.\\-:/@#]');}+ // `.` and `/` are allowed chars, so reject `..` explicitly. The roomId is+ // joined into a file path in roomLogPath; without this check a value like+ // ../../../../tmp/x escapes the .agentbbs directory. Matches the validator+ // in agentbbs-federation.ts.+ if (roomId.includes('..')) {+ throw new Error('roomId must not contain ..');+ }return roomId;}