DeepChat
CVE-2025-66481
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious Mermaid diagram
-
DeliveryDeliver via DeepChat conversation
-
ExploitVictim renders content triggering XSS
-
ExecutionBypass regex and invoke electron.ipcRenderer
-
ImpactExecute arbitrary code on victim host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a victim running DeepChat version 0.5.1 or below to render attacker-supplied Mermaid diagram content inside the app; the payload uses unquoted HTML attributes combined with HTML-entity encoding to defeat the regex in MermaidArtifact.vue that strips dangerous attributes, after which it reaches electron.ipcRenderer for host RCE. No authentication is required (PR:N), but exploitation is gated on user interaction (UI:R) - the victim must open or view the malicious Mermaid content. The key limiting factors are therefore: affected version range (≤0.5.1), the need to deliver crafted content the victim will render, and the product's small user base; notably, applying the existing MermaidArtifact.vue patch does NOT mitigate it, as that patch is bypassable. |
| Impact | This is a genuine high-priority issue rather than an inflated high-CVSS score. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H, 9.6) describes a network-reachable, low-complexity, unauthenticated flaw whose only gating factor is user interaction, and the scope change (S:C) correctly reflects that an XSS in the Electron renderer escalates out of the web context into native Remote Code Execution on the victim's host via the electron.ipcRenderer interface. The POC is publicly available (per the GitHub Security Advisory reference), which materially raises near-term exploitability, and critically there is NO vendor fix at time of publication, so there is no patch-based mitigation. The description further notes that the prior security patch for MermaidArtifact.vue is bypassable, meaning even nominally updated instances may remain exposed. Signals that temper the risk: this is NOT in CISA KEV, so there is no confirmed active exploitation, and no EPSS score was provided, so statistical exploitation probability cannot be weighed - treat the risk as 'POC-driven and unpatched' rather than 'confirmed in-the-wild.' No SSVC decision data was supplied. Net: a real, actionable priority for anyone running DeepChat ≤0.5.1, bounded mainly by the product's limited deployment footprint and the required victim interaction. |
| Exploit ScenarioDerived | An attacker crafts a malicious Mermaid diagram using unquoted HTML attributes plus HTML-entity encoding to slip past the regex filter in MermaidArtifact.vue, then delivers it into a DeepChat conversation (e.g., via shared content or a compromised model/response). When the victim renders the diagram, the XSS fires in the Electron renderer and abuses electron.ipcRenderer to achieve Remote Code Execution on the victim's machine. A public proof-of-concept exists, and because exploitation is network-delivered with low complexity and no authentication, the only real barrier is getting the victim to view the content (UI:R). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 07, 2026
Remote code execution in DeepChat 0.5.1 and below is possible through a cross-site scripting flaw in Mermaid diagram rendering: unauthenticated remote attackers can craft Mermaid content that bypasses the MermaidArtifact.vue sanitization regex using unquoted HTML attributes and HTML entity encoding, then reaches the Electron ipcRenderer interface to execute code on the victim's machine. Exploitation requires user interaction because the victim must open or view the malicious Mermaid content, and no vendor fix is available at time of publication; publicly available exploit code exists. The CVSS score is 9.6 with scope change, reflecting high confidentiality, integrity, and availability impact on the host once the payload executes.
RemediationAI
No vendor-released patch identified at time of analysis, and the existing MermaidArtifact.vue security patch is explicitly bypassable, so upgrading to a newer release is not yet an option. Until a fixed version is published, disable Mermaid diagram rendering in DeepChat if configuration permits; this removes the vulnerable rendering path but sacrifices diagram functionality. If Mermaid rendering cannot be disabled, instruct users not to open, paste, or render untrusted chat messages, project files, or other content containing Mermaid blocks, which prevents the required user interaction but depends on user behavior. Run DeepChat in an isolated virtual machine or dedicated low-privilege OS account without access to sensitive files, credentials, or host IPC capabilities; this limits post-exploitation RCE impact but adds operational overhead. For maintainers or advanced deployments, harden the Electron app by removing unnecessary ipcRenderer exposure, enabling contextIsolation and sandbox, and validating all IPC channel arguments, though this requires code changes and testing. Monitor the vendor advisory at https://github.com/ThinkInAIXYZ/deepchat/security/advisories/GHSA-h9f5-7hhf-fqm4 for a fixed release and update immediately when available.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
DeepChat is an Electron-based AI chat application that renders Mermaid diagrams in a Vue component (MermaidArtifact.vue). The vulnerability is CWE-79 (improper neutralization of input during web page generation, i.e., cross-site scripting): Mermaid content is insufficiently sanitized, and the regex filter intended to strip dangerous attributes can be evaded with unquoted HTML attributes plus HTML entity encoding. Because the renderer process can access the Electron ipcRenderer bridge, script execution in that context can invoke privileged IPC calls and lead to arbitrary code execution on the host, producing the scope-changed impact in CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. The CPE cpe:2.3:a:thinkinai:deepchat:*:*:*:*:*:*:*:* identifies ThinkInAI's DeepChat as the affected product, while the advisory text bounds affected releases to 0.5.1 and below; the previously applied MermaidArtifact.vue patch does not remediate the bypass.
Know when Deepchat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Network-delivered, no auth (PR:N) but victim must render content (UI:R); renderer XSS escapes to native RCE via ipcRenderer, so scope changes (S:C) with full C/I/A loss on the host.
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
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.
Executive ViewAI
DeepChat desktop client versions 0.5.1 and earlier contain a critical remote code execution flaw (CVE-2025-66481, CVSS 9.6) that allows malicious content embedded in a rendered Mermaid diagram to execute code on the user's workstation with the user's own privileges. Because no vendor fix is available and publicly available exploit code exists, any employee running an unpatched DeepChat build is a potential entry point into the corporate endpoint, provided the user opens or views the crafted content. Leadership should treat this as an unmitigated endpoint risk requiring an immediate inventory of installations and a decision on temporary usage restrictions while awaiting a vendor patch.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict or suspend DeepChat 0.5.1 and below for privileged and high-risk users; block users from opening Mermaid content or chat artifacts of external origin; disable or constrain Mermaid diagram rendering where the client configuration permits; enforce application allowlisting so only sanctioned DeepChat builds can run; monitor EDR telemetry for unexpected child processes, script execution, or outbound network connections spawned by the DeepChat process; and segment or harden affected endpoints until a vendor fix is published and deployed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
DeepChat is a smart assistant uses artificial intelligence. In 0.5.0 and earlier, there is a Stored Cross-Site Scripting
DeepChat is a smart assistant uses artificial intelligence. Rated critical severity (CVSS 9.6), this vulnerability is re
Cross-site scripting in DeepChat's Mermaid diagram renderer escalates to full remote code execution on affected desktop
Arbitrary protocol execution leading to remote code execution affects DeepChat before v1.0.4-beta.1, an open-source AI a
Stored cross-site scripting in DeepChat before v1.0.4-beta.1 lets an attacker smuggle malicious JavaScript through SVG a
DeepChat is a smart assistant that connects powerful AI to your personal world. Rated critical severity (CVSS 9.6), this
NVD
CVE.org
EPSS
GitHub
Exploit-DB