[中] AgentChat多处v-html无XSS防护 #93
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述
frontend/src/views/AgentChat.vue 中有4处使用 v-html 渲染 LLM 输出内容,未使用 DOMPurify 等库进行 XSS 过滤。恶意 Agent 输出可执行任意 JavaScript。
涉及文件
修复建议
对 v-html 绑定的内容使用 DOMPurify 清洗后再渲染。
严重程度
中 - XSS 风险