CVE-2025-66222CWE-79CWE-94cross-site-scriptingcode-injection

CVE-2025-66222

Critical · published December 4, 2025

CVSS v3.1
9.6
EPSS
1%
Percentile
48.4
In the wild
Unconfirmed
What it is

🚨 A stored XSS vulnerability in DeepChat could let an attacker run arbitrary JavaScript in the app— and that's just the start! 🔥 Think of it like a sneaky chef adding a secret ingredient to a restaurant's dish, but this ingredient is code that can take control of the entire kitchen. 🏪 Just like a chef who can quickly change recipes to something dangerous, an attacker can leverage this flaw to execute remote code at will. With this vulnerability, an attacker could gain complete control over the DeepChat application. They could steal sensitive information, manipulate data, or even take over the entire system, leading to absolutely devastating consequences for users and organizations alike!

Put simply

Think of it like a sneaky chef adding a secret ingredient to a restaurant's dish, but this ingredient is code that can take control of the entire kitchen. 🏪 Just like a chef who can quickly change recipes to something dangerous, an attacker can leverage this flaw to execute remote code at will. This stored XSS vulnerability in the Mermaid diagram renderer allows attackers to inject malicious JavaScript, exploiting the Electron IPC bridge to escalate the attack to Remote Code Execution (RCE) by registering a malicious MCP server.

What to do

With this vulnerability, an attacker could gain complete control over the DeepChat application. They could steal sensitive information, manipulate data, or even take over the entire system, leading to absolutely devastating consequences for users and organizations alike! Update DeepChat to version 0.5.1 or later to patch this vulnerability. Additionally, audit input handling in the application to ensure that user-provided data is properly sanitized and validated. Security best practices must be integrated into future development to prevent similar issues. You've got this! Follow these steps, and you'll have DeepChat fortified in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.6 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00607 · 48.4th percentile
Weaknesses
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-12-04T00:15Z
Affected products (1)
ProductVersionsFixed in
thinkinai/deepchat≤ 0.5.0—
References (2)
EPSS history
Timeline
  • 03 DEC 18:34Z
    DeepChat Cross-Site Scripting(XSS) escalate to Remote Code Execution(RCE)
    cvelistv5