Skip to content
CriticalVulnerability

CVE-2025-58768: DeepChat command execution through Mermaid chart rendering

Identifier
CVE-2025-58768
Published
Record updated
View JSON
Fixed in
The source references a patch, a mitigation or a vendor advisory.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.7%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

DeepChat versions prior to 0.3.5 set user content directly through innerHTML in the Mermaid chart rendering component. Malicious content rendered via Mermaid triggers an exploit chain that leads to command execution, building on an incomplete fix for an existing XSS issue and matching the flow described in GHSA-hqr4-4gfc-5p2j, which runs arbitrary JavaScript via XSS and arbitrary commands via exposed IPC.

Mitigation

Version 0.3.5 contains an updated fix.