Critical severity · published Sep 9, 2025
CVE-2025-58768
DeepChat's Mermaid rendering has XSS leading to RCE
9.6
CVSS
0.6%
EPSS
No
On KEV
Description
DeepChat is a smart assistant uses artificial intelligence. Prior to version 0.3.5, in the Mermaid chart rendering component, there is a risky operation of directly using `innerHTML` to set user content. Therefore, any malicious content rendered via Mermaid will directly trigger the exploit chain, leading to command execution. This vulnerability is primarily caused by a failure to fully address the existing XSS issue in the project, leading to another exploit chain. The exploit chain is consistent with the report GHSA-hqr4-4gfc-5p2j, executing arbitrary JavaScript code via XSS and arbitrary commands via exposed IPC. Version 0.3.5 contains an updated fix.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.6% · higher than 48% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DE
deepchat · ThinkInAIXYZ
< 0.3.5 · source: vendor, NVD
Affected product
DE
deepchat
ThinkInAIXYZ
More from deepchat
9.6
CVE-2026-43899
DeepChat: Incomplete Fix for CVE-2025-55733 leads to Remote Code Execution via Markdown Links bypassing `isValidExternalUrl`
9.6
CVE-2025-67744
Mermaid XSS vulnerability leads to Remote Code Execution
9.6
CVE-2025-66481
DeepChat's Incomplete XSS Fix Allows RCE through Mermaid Content
9.6
CVE-2025-66222
DeepChat Cross-Site Scripting(XSS) escalate to Remote Code Execution(RCE)
9.6
CVE-2025-55733
DeepChat One-click Remote Code Execution through Custom URL Handling