DeepChat: Persistent DOM XSS via HTML Entity Encoding in `<antArtifact>` SVG Rendering (Bypass of `svgSanitizer.ts`)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-79.
Summary
DeepChat is an open-source artificial intelligence agent platform that unifies models, tools, and agents. Prior to v1.0.4-beta.1, a Cross-Site Scripting (XSS) vulnerability exists due to a discrepancy between the backend validation layer and the frontend browser rendering engine. The SVGSanitizer (src/main/lib/svgSanitizer.ts) restricts script execution by scrubbing javascript: protocols using plain-text regular expressions. However, it fails to account for HTML entity decoding prior to Vue's v-html DOM insertion inside the SvgArtifact.vue component. By feeding an SVG artifact with obfuscated entities (e.g., javascript:alert(1)), an attacker can completely bypass the sanitizer, culminating in arbitrary JavaScript execution when a victim interacts with the rendered SVG Element. This vulnerability is fixed in v1.0.4-beta.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ThinkInAIXYZ | deepchat | before 1.0.4-beta.1 | 1.0.4-beta.1 | Patch available | CNA |
- deepchat VendorThinkInAIXYZ Affected before 1.0.4-beta.1 Fixed in 1.0.4-beta.1 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:thinkinai:deepchat:*:*:*:*:*:*:*:* | — | — | ThinkInAIXYZ |
- cpe:2.3:a:thinkinai:deepchat:*:*:*:*:*:*:*:* Versions — — ·ThinkInAIXYZ
Remediation
- Fix · CNA deepchat (ThinkInAIXYZ) Fixed in 1.0.4-beta.1
Timeline
- 2026-10-02 Threatist record created from CVE-2026-43900
More ThinkInAIXYZ vulnerabilities
- TI-2026-31963 Improper input validation in ThinkInAIXYZ deepchat CVSS 3.1CRITICAL 9.6
- TI-2025-41440 Mermaid XSS vulnerability leads to Remote Code Execution CVSS 3.1CRITICAL 9.7
- TI-2025-40905 DeepChat's Incomplete XSS Fix Allows RCE through Mermaid Content CVSS 3.1CRITICAL 9.7
- TI-2025-40724 DeepChat Cross-Site Scripting(XSS) escalate to Remote Code Execution(RCE) CVSS 3.1CRITICAL 9.7
- TI-2025-35154 DeepChat One-click Remote Code Execution through Custom URL Handling CVSS 3.1CRITICAL 9.7
- TI-2025-36426 DeepChat's Mermaid rendering has XSS leading to RCE CVSS 3.1CRITICAL 9.7
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences