Read the docs
TI-2025-36426 Aliases CVE-2025-58768

DeepChat's Mermaid rendering has XSS leading to RCE

Priority MEDIUM 44CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Code execution, Cross-site scripting
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-94 and CWE-79.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00599 48th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed deepchat (ThinkInAIXYZ): 0.3.5

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
ThinkInAIXYZdeepchatbefore 0.3.50.3.5Patch availableCNA
  • deepchat VendorThinkInAIXYZ Affected before 0.3.5 Fixed in 0.3.5 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:thinkinai:deepchat:*:*:*:*:*:*:*:*before 0.3.5VulnerableThinkInAIXYZ
  • cpe:2.3:a:thinkinai:deepchat:*:*:*:*:*:*:*:* Versions before 0.3.5 Vulnerable ·ThinkInAIXYZ

Remediation

  • Fix · CNA deepchat (ThinkInAIXYZ) Fixed in 0.3.5

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-58768

References

  • TI-2025-41440 Mermaid XSS vulnerability leads to Remote Code Execution CVSS 3.1CRITICAL 9.7
  • TI-2025-40905 DeepChat's Incomplete XSS Fix Allows RCE through Mermaid Content CVSS 3.1CRITICAL 9.7
  • TI-2025-40724 DeepChat Cross-Site Scripting(XSS) escalate to Remote Code Execution(RCE) CVSS 3.1CRITICAL 9.7
  • TI-2025-35154 DeepChat One-click Remote Code Execution through Custom URL Handling CVSS 3.1CRITICAL 9.7

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences