{"id":"CVE-2025-58768","published":"2025-09-09T20:19:52Z","modified":"2025-09-09T20:31:54Z","title":"DeepChat's Mermaid rendering has XSS leading to RCE","vendor":"ThinkInAIXYZ","product":"deepchat","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.7,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00599,"percentile":0.49598,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/ThinkInAIXYZ/deepchat/security/advisories/GHSA-f7q5-vc93-wp6j","tags":["x_refsource_CONFIRM"]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":9.92},{"name":"CVSS severity","points":6.79}]},"vendorSlug":"thinkinaixyz","affectedVersions":[{"vendor":"ThinkInAIXYZ","product":"deepchat","versions":["< 0.3.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-09-09T20:31:37.670155Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-27502","exploited":false,"provenance":"source"}}