Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
DeepChat: Persistent DOM XSS via HTML Entity Encoding in `<antArtifact>` SVG Rendering (Bypass of `svgSanitizer.ts`)
Vulnerability Description
DeepChat is an open-source artificial intelligence agent platform that unifies models, tools, and agents. Prior to v1.0.4-beta.1, a Cross-Site Scripting (XSS) vulnerability exists due to a discrepancy between the backend validation layer and the frontend browser rendering engine. The SVGSanitizer (src/main/lib/svgSanitizer.ts) restricts script execution by scrubbing javascript: protocols using plain-text regular expressions. However, it fails to account for HTML entity decoding prior to Vue's v-html DOM insertion inside the SvgArtifact.vue component. By feeding an SVG artifact with obfuscated entities (e.g., javascript:alert(1)), an attacker can completely bypass the sanitizer, culminating in arbitrary JavaScript execution when a victim interacts with the rendered SVG Element. This vulnerability is fixed in v1.0.4-beta.1.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Vulnerability Title
DeepChat 跨站脚本漏洞
Vulnerability Description
DeepChat是ThinkInAIXYZ开源的一款智能助手。 DeepChat v1.0.4-beta.1之前版本存在跨站脚本漏洞,该漏洞源于后端验证层与前端浏览器渲染引擎之间的差异,SVGSanitizer使用纯文本正则表达式清除javascript:协议,但未考虑在Vue的v-html DOM插入之前进行HTML实体解码,攻击者通过提供带有混淆实体的SVG工件可完全绕过清理程序,导致受害者与渲染的SVG元素交互时执行任意JavaScript。
CVSS Information
N/A
Vulnerability Type
N/A