CVE-2025-66481CWE-79CWE-80CWE-94cross-site-scriptingcode-injection

CVE-2025-66481

Critical · published December 9, 2025

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

🚨 A crafty XSS vulnerability in DeepChat can let attackers execute code on victims' machines, and it all hinges on improperly sanitized Mermaid content! 🔥 Think of this like a restaurant that serves a special dish but doesn’t check for allergens — a sneaky ingredient could cause a serious reaction. In this case, the HTML attributes are the allergens, and failing to screen them can lead to remote code execution! An attacker could exploit this vulnerability to run any command they desire on a victim's machine, potentially leading to a full system compromise. This is not just a headache; it opens the door to data theft, unauthorized access, and possibly devastating outcomes for users!

Put simply

Think of this like a restaurant that serves a special dish but doesn’t check for allergens — a sneaky ingredient could cause a serious reaction. In this case, the HTML attributes are the allergens, and failing to screen them can lead to remote code execution! Versions 0.5.1 and below of DeepChat are vulnerable to XSS attacks due to insufficient sanitization of Mermaid content, allowing unquoted HTML attributes and entity encoding to bypass intended defenses. The exploit leverages the electron.ipcRenderer interface to execute remote code on the victim's device.

What to do

An attacker could exploit this vulnerability to run any command they desire on a victim's machine, potentially leading to a full system compromise. This is not just a headache; it opens the door to data theft, unauthorized access, and possibly devastating outcomes for users! To protect your systems, avoid using DeepChat versions 0.5.1 and below until a fix is released. Monitor for updates from the DeepChat team and consider implementing additional input validation mechanisms while this issue is outstanding. ⚡ Stay vigilant and proactive while awaiting a fix — you’ve got this, security hero! 🦸‍♂️

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.00580 · 46.9th percentile
Weaknesses
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'); CWE-80 · Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS); CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2025-12-09T06:16Z
Affected products (1)
ProductVersionsFixed in
thinkinai/deepchat≤ 0.5.1—
References (2)
EPSS history
Timeline
  • 09 DEC 00:25Z
    DeepChat's Incomplete XSS Fix Allows RCE through Mermaid Content
    cvelistv5