{"id":"CVE-2025-58768","aliases":["CVE-2025-58768"],"related":[],"kind":"vulnerability","state":"published","title":"DeepChat's Mermaid rendering has XSS leading to RCE","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2025-09-09T20:19:52.122Z","modified":"2026-06-17T09:44:54.320Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.7,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.7,"rating":"CRITICAL"}],"cwes":["CWE-79","CWE-94"],"affected":[{"ranges":[{"version":"< 0.3.5","status":"affected"}],"vendor":"ThinkInAIXYZ","product":"deepchat","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"0.3.5"}],"vendor":"thinkinai","product":"deepchat","cpe":"cpe:2.3:a:thinkinai:deepchat:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ThinkInAIXYZ/deepchat/security/advisories/GHSA-f7q5-vc93-wp6j","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-09-09T20:31:37.670Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-58768","url":"https://www.cve.org/CVERecord?id=CVE-2025-58768","licence":"CVE Terms of Use","modified":"2025-09-09T20:31:54.042Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-58768","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58768","licence":"Public domain","modified":"2026-06-17T09:44:54.320Z"}],"updatedAt":"2026-11-25T22:59:04.469Z","epss":{"score":0.00664,"percentile":0.53065,"date":"2026-12-02T12:00:21.000Z"}}