CVE-2025-66481 DeepChat's Incomplete XSS Fix Allows RCE through Mermaid Content
CriticalCVSS 9.7
EPSS 0.62%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| thinkinai deepchat | <= 0.5.1 | after 0.5.1 | Fixed |
| ThinkInAIXYZ deepchat | = <= 0.5.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ThinkInAIXYZ deepchat | = <= 0.5.1 | No fix listed |
| thinkinai deepchat | <= 0.5.1 | No fix listed |
References
- https://github.com/ThinkInAIXYZ/deepchat/security/advisories/GHSA-h9f5-7hhf-fqm4 exploit vendor-advisory