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.
Other vulnerabilities in DeepChat
See all- CVE-2026-43899Critical
DeepChat prior to version 1.0.4-beta.1 is vulnerable to an arbitrary protocol execution bypass, potentially leading to remote code execution (RCE). The issue arises from improper sanitization of Electron pop-up window handlers, allowing an attacker to intercept a malicious URL.
- CVE-2025-67744Critical
DeepChat before version 0.5.3 contains an XSS vulnerability in the Mermaid diagram rendering component, which escalates to full Remote Code Execution (RCE) due to the exposure of the Electron IPC renderer to the DOM. An attacker can execute arbitrary system commands.
- CVE-2025-66222Critical
DeepChat 0.5.0 and earlier has a Stored Cross-Site Scripting (XSS) vulnerability in the Mermaid diagram renderer that allows an attacker to execute arbitrary JavaScript within the application context. By leveraging the exposed Electron IPC bridge, this XSS can be escalated to Remote Code Execution (RCE) by registering and starting a malicious MCP server.
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.

