CVE-2025-66222
CriticalSummary
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.
Risk Assessment
The vulnerability may allow an attacker to take control of the application and the underlying system by executing malicious code. This could lead to data theft or full compromise.
Recommendation
Update DeepChat to a version newer than 0.5.0 if a patch is available. Additionally, restrict access to the IPC bridge and validate input rendered in Mermaid diagrams.
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-66481Critical
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.
Original NVD description (English source)
DeepChat is a smart assistant uses artificial intelligence. In 0.5.0 and earlier, there is a Stored Cross-Site Scripting (XSS) vulnerability in the Mermaid diagram renderer 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 (Model Context Protocol) server.

