CVE-2025-66481
CriticalSummary
DeepChat versions 0.5.1 and below are vulnerable to XSS attacks through improperly sanitized Mermaid content. The security patch can be bypassed using unquoted HTML attributes combined with HTML entity encoding. Remote Code Execution is possible on the victim's machine via the electron.ipcRenderer interface. No fix is available at time of publication.
Risk Assessment
An attacker can execute arbitrary code on the victim's machine, potentially leading to full system compromise or data theft.
Recommendation
As no fix is available, restrict the use of DeepChat or apply temporary mitigations such as filtering Mermaid content.
Original NVD description (English source)
DeepChat is an open-source AI chat platform that supports cloud models and LLMs. Versions 0.5.1 and below are vulnerable to XSS attacks through improperly sanitized Mermaid content. The recent security patch for MermaidArtifact.vue is insufficient and can be bypassed using unquoted HTML attributes combined with HTML entity encoding. Remote Code Execution is possible on the victim's machine via the electron.ipcRenderer interface, bypassing the regex filter intended to strip dangerous attributes. There is no fix at time of publication.

