CVE-2025-58768

Source
https://cve.org/CVERecord?id=CVE-2025-58768
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58768.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-58768
Aliases
  • GHSA-f7q5-vc93-wp6j
Published
2025-09-09T20:19:52.122Z
Modified
2026-04-10T05:31:37.981050Z
Severity
  • 9.6 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
DeepChat's Mermaid rendering has XSS leading to RCE
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-94"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58768.json"
}
References

Affected packages

Git / github.com/thinkinaixyz/deepchat

Affected ranges

Type
GIT
Repo
https://github.com/thinkinaixyz/deepchat
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*
v0.0.1
v0.0.10
v0.0.11
v0.0.12
v0.0.13
v0.0.14
v0.0.15
v0.0.16
v0.0.2
v0.0.3
v0.0.5
v0.0.6
v0.0.7
v0.0.9
v0.1.0
v0.1.1
v0.2.0
v0.2.0-1
v0.2.1
v0.2.2
v0.2.3
v0.2.3-1
v0.2.4
v0.2.5
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58768.json"