CVE-2025-66481
JSON

9.7critical

DeepChat's Incomplete XSS Fix Allows RCE through Mermaid Content

Severity
9.7critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.62% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
ThinkInAIXYZ deepchat<= 0.5.1CVE List
thinkinai deepchatup to 0.5.1NVD

Classification

CWE-79CWE-80CWE-94

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

DeepChat es una plataforma de chat de IA de código abierto que soporta modelos en la nube y LLMs. Las versiones 0.5.1 e inferiores son vulnerables a ataques de XSS a través de contenido Mermaid incorrectamente saneado. El reciente parche de seguridad para MermaidArtifact.vue es insuficiente y puede ser eludido usando atributos HTML sin comillas combinados con codificación de entidades HTML. La ejecución remota de código es posible en la máquina de la víctima a través de la interfaz electron.ipcRenderer, eludiendo el filtro de expresiones regulares destinado a eliminar atributos peligrosos. No hay solución en el momento de la publicación.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-66481 changed 2025-12-09CVE Terms of Use
NVDCVE-2025-66481 changed 2026-10-07Public domain