Skip to main content

DeepChat CVE-2025-66481

CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2025-12-09 security-advisories@github.com
9.6
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious Mermaid diagram
  2. Delivery
    Deliver via DeepChat conversation
  3. Exploit
    Victim renders content triggering XSS
  4. Execution
    Bypass regex and invoke electron.ipcRenderer
  5. Impact
    Execute 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).

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
No patch listed yet 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 9.6 CRITICAL
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
vuln.today AI 9.6 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.6%
Top 54% exploitable
Prevalence
Low
niche open-source Electron AI chat client, limited enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.6%
Patch available No
Active threat No
Deciding rule
CRITICAL severity + public POC available
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

69
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +48
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:thinkinai:deepchat:*:*:*:*:*:*:*:*

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy