Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-58768

CVE-2025-58768: Thinkinai Deepchat RCE Vulnerability

CVE-2025-58768 is a remote code execution flaw in Thinkinai Deepchat affecting versions before 0.3.5. The vulnerability exploits innerHTML usage in Mermaid chart rendering to execute arbitrary commands via XSS and IPC.

Published: April 1, 2026

CVE-2025-58768 Overview

DeepChat, a smart assistant powered by artificial intelligence developed by ThinkInAI, contains a critical Cross-Site Scripting (XSS) vulnerability in its Mermaid chart rendering component. Prior to version 0.3.5, the application directly uses innerHTML to render user-supplied content within Mermaid charts, enabling attackers to execute arbitrary JavaScript code. This XSS vulnerability chains with exposed Inter-Process Communication (IPC) interfaces, ultimately allowing arbitrary command execution on the underlying system.

Critical Impact

This vulnerability enables attackers to execute arbitrary commands on systems running vulnerable DeepChat installations through a chained XSS-to-RCE exploit via exposed IPC interfaces.

Affected Products

  • ThinkInAI DeepChat versions prior to 0.3.5
  • DeepChat installations using the Mermaid chart rendering component
  • All platforms running vulnerable DeepChat builds

Discovery Timeline

  • 2025-09-09 - CVE CVE-2025-58768 published to NVD
  • 2025-09-18 - Last updated in NVD database

Technical Details for CVE-2025-58768

Vulnerability Analysis

This vulnerability represents an incomplete fix for a previously identified XSS issue (tracked as GHSA-hqr4-4gfc-5p2j) in DeepChat. The root cause lies in the Mermaid chart rendering component, which unsafely handles user-controlled content through the dangerous innerHTML property. When rendering Mermaid diagrams, the application fails to properly sanitize input before injecting it into the DOM, allowing malicious script payloads to execute in the context of the application.

The vulnerability is classified under CWE-79 (Improper Neutralization of Input During Web Page Generation) and CWE-94 (Improper Control of Generation of Code). The exploit chain leverages the initial XSS foothold to access exposed IPC interfaces within the Electron-based application, escalating from client-side script execution to full system command execution.

Root Cause

The vulnerability stems from the direct assignment of user-controlled content to the innerHTML property within the Mermaid chart rendering logic. This unsafe DOM manipulation bypasses browser security mechanisms designed to prevent script injection. The application lacks proper input sanitization, content security policies, or use of safer DOM APIs such as textContent or sanitization libraries. The previous security fix for GHSA-hqr4-4gfc-5p2j was incomplete, leaving this attack vector exposed.

Attack Vector

The attack requires user interaction, specifically triggering the rendering of a malicious Mermaid chart containing crafted JavaScript payloads. An attacker can inject malicious content through any input vector that feeds into the Mermaid rendering pipeline. Once the XSS payload executes, it leverages DeepChat's exposed IPC interfaces—a common security weakness in Electron applications—to invoke system-level commands. This transforms a client-side scripting vulnerability into a full remote code execution scenario.

The network-based attack vector with scope change indicates that successful exploitation can impact resources beyond the vulnerable component, affecting the confidentiality, integrity, and availability of the host system.

Detection Methods for CVE-2025-58768

Indicators of Compromise

  • Unexpected JavaScript execution or DOM modifications within DeepChat Mermaid chart elements
  • Suspicious IPC calls originating from renderer processes in DeepChat
  • Unusual child processes spawned by the DeepChat application
  • Network connections initiated by DeepChat to unexpected external hosts

Detection Strategies

  • Monitor for anomalous process creation chains where DeepChat spawns unexpected system commands or shells
  • Implement application-level logging to track IPC message patterns and flag unusual command invocations
  • Deploy endpoint detection rules to identify JavaScript-to-IPC exploitation patterns in Electron applications
  • Review Mermaid chart content for embedded script tags, event handlers, or encoded JavaScript payloads

Monitoring Recommendations

  • Enable verbose logging in DeepChat deployments to capture rendering events and IPC communications
  • Configure endpoint protection solutions to monitor Electron application behavior for privilege escalation attempts
  • Implement content inspection for user-supplied Mermaid chart definitions before processing
  • Establish baseline behavior profiles for DeepChat process activity to detect anomalous command execution

How to Mitigate CVE-2025-58768

Immediate Actions Required

  • Upgrade DeepChat to version 0.3.5 or later immediately
  • Restrict access to DeepChat instances until patching is complete
  • Review system logs for signs of exploitation or suspicious activity
  • Implement network segmentation to limit the impact of potential command execution

Patch Information

ThinkInAI has released version 0.3.5 of DeepChat which contains an updated fix addressing this vulnerability. The patch properly sanitizes user content before rendering in Mermaid charts, eliminating the unsafe innerHTML usage. Organizations should update to this version through their standard deployment channels. For detailed patch information, refer to the GitHub Security Advisory GHSA-f7q5-vc93-wp6j.

Workarounds

  • Disable Mermaid chart rendering functionality if the feature is not required until patching is feasible
  • Implement strict Content Security Policy (CSP) headers to restrict script execution within the application
  • Deploy application sandboxing to limit the impact of potential exploitation
  • Restrict DeepChat usage to trusted content sources only until the update can be applied
bash
# Verify DeepChat version to ensure patched release is installed
# Check the installed version against the fixed version 0.3.5
deepchat --version
# Expected output should show 0.3.5 or higher

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechThinkinai Deepchat

  • SeverityCRITICAL

  • CVSS Score9.6

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-94

  • CWE-79
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-67744: Thinkinai Deepchat RCE Vulnerability

  • CVE-2025-66222: Thinkinai Deepchat XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English