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

Published Dec 9, 2025
·
Updated

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 Software

2 affected components
npm/deepchat<=0.5.1
Thinkinai Deepchat<=0.5.1

Event History

Dec 9, 2025
CVE Published
via MITRE·12:25 AM
Data Sourced
via MITRE·12:25 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:16 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-66481?

CVE-2025-66481 has been classified as a high-severity vulnerability due to its potential for XSS exploits.

2

How do I fix CVE-2025-66481?

To fix CVE-2025-66481, upgrade DeepChat to version 0.5.2 or later, which includes proper sanitization for Mermaid content.

3

What types of attacks can CVE-2025-66481 facilitate?

CVE-2025-66481 can facilitate cross-site scripting (XSS) attacks through improperly sanitized Mermaid content.

4

Which versions of DeepChat are affected by CVE-2025-66481?

CVE-2025-66481 affects DeepChat versions 0.5.1 and below.

5

Is there a workaround for CVE-2025-66481 until I can upgrade?

As a temporary workaround for CVE-2025-66481, avoid using Mermaid content in your applications until the upgrade can be completed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203