# CVE-2025-66481: DeepChat's Incomplete XSS Fix Allows RCE through Mermaid Content

- Severity: Critical 9.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-09T00:25:08.301Z
- Modified: 2026-10-07T20:10:01.970Z
- Weaknesses: CWE-79, CWE-80, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ThinkInAIXYZ deepchat: <= 0.5.1
- thinkinai deepchat: up to 0.5.1

## References

- <https://github.com/ThinkInAIXYZ/deepchat/security/advisories/GHSA-h9f5-7hhf-fqm4> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2025-66481](https://www.cve.org/CVERecord?id=CVE-2025-66481), CVE Terms of Use, modified 2025-12-09
- NVD: [CVE-2025-66481](https://nvd.nist.gov/vuln/detail/CVE-2025-66481), Public domain, modified 2026-10-07

---

Page: https://cve.day/CVE-2025-66481 · Whole record: https://cve.day/CVE-2025-66481.json · Rebuilt by cve.day 2026-11-25T22:59:08.458Z
