
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-66481 is a critical Cross-Site Scripting (XSS) vulnerability in DeepChat, an open-source AI chat platform, that enables Remote Code Execution (RCE) on victim machines. It affects DeepChat versions 0.5.1 and below, stemming from an incomplete security patch in MermaidArtifact.vue that fails to properly sanitize Mermaid diagram content. The vulnerability was published on December 8–9, 2025, with no fix available at the time of initial disclosure. It carries a CVSS v3.1 base score of 9.6 (Critical) (GitHub Advisory, Red Hat CVE).
The root cause is improper neutralization of input during web page generation (CWE-79, CWE-80) combined with code injection (CWE-94). The existing regex-based sanitization in MermaidArtifact.vue only strips event handler attributes enclosed in quotes (/on\w+\s*=\s*["'][^"']*["']/gi), but fails to handle unquoted HTML attributes (e.g., onerror=alert(1)) and HTML entity-encoded payloads (e.g., using ' to bypass string filters). Additionally, the tag blacklist is incomplete, missing elements like <image> that support event handlers. By crafting malicious Mermaid diagram content with unquoted attributes and entity-encoded characters, an attacker can inject JavaScript that executes via the electron.ipcRenderer interface, escalating from XSS to full RCE in the Electron desktop application context (GitHub Advisory).
Successful exploitation allows an attacker to achieve Remote Code Execution on the victim's machine through the Electron ipcRenderer interface, effectively escaping the browser sandbox. This can result in full system compromise, including theft of sensitive data, installation of malware, manipulation of the DeepChat application, and potential lateral movement within the victim's network. All three security pillars — confidentiality, integrity, and availability — are rated High in the CVSS scoring (GitHub Advisory, Red Hat CVE).
No public proof-of-concept exploit code has been confirmed beyond the advisory's PoC payload, and there is no evidence of in-the-wild exploitation at this time. The vulnerability requires user interaction (a victim must view the malicious Mermaid content), but no authentication or special privileges are required from the attacker. The EPSS score is approximately 0.0015 (0.15%), indicating low current exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory, Red Hat CVE).
<image> tag with an onerror handler using entity-encoded characters.graph TD block with the injected payload).MermaidArtifact.vue. The regex sanitizer fails to strip the unquoted event handler attribute.onerror=...), executing attacker-controlled JavaScript within the Electron renderer process.electron.ipcRenderer interface — accessible in the renderer process — to invoke privileged Node.js APIs, achieving arbitrary code execution on the victim's host machine (GitHub Advisory).cmd.exe, powershell.exe, /bin/sh, curl, wget) that are not part of normal application behavior.MermaidArtifact.vue or Mermaid rendering components; IPC (inter-process communication) calls to electron.ipcRenderer with unexpected arguments.No official patch was available at the time of initial publication (December 2025); users should check the DeepChat GitHub repository for updated releases beyond version 0.5.1. As immediate workarounds: disable or restrict DeepChat usage until a fix is confirmed; avoid rendering Mermaid content from untrusted sources; implement strict network egress controls on machines running DeepChat; and consider switching to an alternative AI chat platform temporarily. Organizations should also monitor endpoints running DeepChat for anomalous process or network activity (GitHub Advisory, Red Hat CVE).
The vulnerability was reported by security researcher c2an1 and published via GitHub Security Advisories by zerob13 on December 8, 2025. Red Hat tracked the CVE and assigned it a medium category estimate despite the critical CVSS score. CISA included it in a vulnerability bulletin (SB25-349), and ENISA registered it under EUVD-2025-201843 with a slightly higher base score of 9.7. Community aggregators such as Vulners, CIRCL, and VulDB indexed the advisory shortly after publication, reflecting standard industry tracking with no notable controversy or widespread media coverage (GitHub Advisory, Red Hat CVE).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."