CVE-2025-58768
Homebrew vulnerability analysis and mitigation

Overview

CVE-2025-58768 affects DeepChat, a smart assistant that uses artificial intelligence, prior to version 0.3.5. The vulnerability was discovered on September 9, 2025, and involves a cross-site scripting (XSS) vulnerability in the Mermaid chart rendering component that can lead to remote code execution (RCE). The issue stems from the direct use of innerHTML to set user content, which failed to properly address a previously identified XSS vulnerability (GitHub Advisory).

Technical details

The vulnerability exists in the Mermaid chart rendering component within the file src/renderer/src/components/artifacts/MermaidArtifact.vue. The component directly uses innerHTML to set user content without proper sanitization, allowing malicious content to be rendered via Mermaid charts. The vulnerability has received a CVSS v3.1 base score of 9.6 CRITICAL with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. The weakness is classified as CWE-94 (Improper Control of Generation of Code) and CWE-79 (Cross-site Scripting) (GitHub Advisory, NVD).

Impact

The vulnerability allows attackers to execute arbitrary code on the user's computer through the exploit chain. When malicious content is rendered via Mermaid charts, it can trigger command execution, potentially leading to full system compromise. The impact is particularly severe as it affects confidentiality, integrity, and availability at the highest levels (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.3.5 of DeepChat. Users are strongly advised to upgrade to this version or later to address the security issue (GitHub Advisory, NVD).

Additional resources


SourceThis report was generated using AI

Related Homebrew vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66222CRITICAL9.6
  • HomebrewHomebrew
  • deepchat
NoNoDec 03, 2025
CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-59789HIGH7.5
  • HomebrewHomebrew
  • brpc
NoYesDec 01, 2025
CVE-2025-63317MEDIUM5.4
  • NixOSNixOS
  • todoist
NoNoDec 01, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management