[中] AgentChat多处v-html无XSS防护 #93

Closed
opened 2026-05-10 18:39:18 +08:00 by admin · 0 comments
Owner

问题描述

frontend/src/views/AgentChat.vue 中有4处使用 v-html 渲染 LLM 输出内容,未使用 DOMPurify 等库进行 XSS 过滤。恶意 Agent 输出可执行任意 JavaScript。

涉及文件

  • frontend/src/views/AgentChat.vue

修复建议

对 v-html 绑定的内容使用 DOMPurify 清洗后再渲染。

严重程度

中 - XSS 风险

## 问题描述 frontend/src/views/AgentChat.vue 中有4处使用 v-html 渲染 LLM 输出内容,未使用 DOMPurify 等库进行 XSS 过滤。恶意 Agent 输出可执行任意 JavaScript。 ## 涉及文件 - frontend/src/views/AgentChat.vue ## 修复建议 对 v-html 绑定的内容使用 DOMPurify 清洗后再渲染。 ## 严重程度 中 - XSS 风险
admin closed this issue 2026-05-10 18:59:12 +08:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/aiagent#93