From 68ca7a61545b104cce46607dbffe645db43466fe Mon Sep 17 00:00:00 2001 From: orbisai0security Date: Sun, 26 Apr 2026 16:23:09 +0000 Subject: [PATCH] fix: V-001 security vulnerability Automated security fix generated by Orbis Security AI --- src/components/AIRoadmap/AIRoadmapChat.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/AIRoadmap/AIRoadmapChat.tsx b/src/components/AIRoadmap/AIRoadmapChat.tsx index 9de8aeea2b7e..bcec4fccc771 100644 --- a/src/components/AIRoadmap/AIRoadmapChat.tsx +++ b/src/components/AIRoadmap/AIRoadmapChat.tsx @@ -178,7 +178,8 @@ export function AIRoadmapChat(props: AIRoadmapChatProps) { useImperativeHandle(aiChatActionsRef, () => ({ handleNodeClick: (node: RoadmapNodeDetails) => { - handleSubmitInput(`Explain what is "${node.nodeTitle}" topic in detail.`); + const safeTitle = node.nodeTitle.replace(/["\\\n\r]/g, '').trim(); + handleSubmitInput(`Explain what is "${safeTitle}" topic in detail.`); }, }));