CVE-2025-58768: DeepChat's Mermaid rendering has XSS leading to RCE

Published Sep 9, 2025
·
Updated

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.

Affected Software

2 affected components
DeepChat DeepChat<0.3.5
Thinkinai Deepchat<0.3.5

Event History

Sep 9, 2025
CVE Published
via MITRE·08:19 PM
Data Sourced
via MITRE·08:19 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
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-58768?

CVE-2025-58768 has a high severity due to the potential for cross-site scripting (XSS) attacks.

2

How do I fix CVE-2025-58768?

To fix CVE-2025-58768, update DeepChat to version 0.3.5 or later where the vulnerable Mermaid chart rendering component is addressed.

3

What vulnerability does CVE-2025-58768 exploit?

CVE-2025-58768 exploits the use of `innerHTML` to render unverified user content, leading to XSS vulnerabilities.

4

What are the affected versions of DeepChat for CVE-2025-58768?

DeepChat versions prior to 0.3.5 are affected by CVE-2025-58768.

5

Is user data at risk due to CVE-2025-58768?

Yes, user data may be at risk due to malicious content being rendered that can exploit the vulnerability in CVE-2025-58768.

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