Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft SVG with entity-encoded javascript URI
-
DeliveryDeliver artifact into victim's DeepChat session
-
ExploitSanitizer regex misses obfuscated protocol
-
ExecutionVue v-html decodes entities on render
-
PersistVictim interacts with SVG element
-
ImpactArbitrary JavaScript executes in render context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to open/interact with a maliciously crafted SVG artifact rendered by DeepChat's SvgArtifact.vue component, and the payload must use HTML-entity encoding of the protocol (e.g. 'javascript:') to evade the plain-text SVGSanitizer regex in svgSanitizer.ts. The attacker needs no authentication (PR:N) but does need a delivery channel that places the SVG artifact in front of the victim (chat message, shared session, or agent/tool output) and depends on user interaction (UI:R) to trigger rendering. Limiting factors: no automated mass exploitation (SSVC Automatable=no), the target must run a version below 1.0.4-beta.1, and the victim must actually render/interact with the SVG rather than merely receive it. |
| Impact | Signals are mixed and should be weighed rather than taken at face value. The vendor CVSS of 9.3 (AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N) is driven by a scope change and High confidentiality/integrity impact, which is aggressive for a browser-context XSS; for a typical Electron/Vue renderer without a demonstrated Node/IPC escape, arbitrary JavaScript in the render context is real but the High/High impacts are optimistic absent proof of privilege escalation beyond the webview. EPSS is very low (0.04%, 12th percentile) and SSVC marks Automatable=no with Exploitation=poc, consistent with an attack requiring user interaction (UI:R) and a crafted artifact rather than mass unauthenticated automation. There is no KEV listing and no evidence of in-the-wild use. Net: a legitimate high-severity issue worth patching, but practical risk is moderated by the need for victim interaction and delivery of a malicious SVG artifact - treat as important-but-not-emergency unless DeepChat's webview exposes privileged APIs. |
| Exploit ScenarioDerived | An attacker crafts an SVG artifact whose payload uses HTML-entity obfuscation such as 'javascript:alert(1)' and delivers it into a DeepChat conversation, shared session, or via a tool/agent response the victim will view. The SVGSanitizer regex sees no literal 'javascript:' and passes it, but when SvgArtifact.vue inserts the markup via Vue v-html the browser decodes the entity and executes the script once the victim interacts with the rendered SVG element. Publicly available exploit code exists per SSVC, and the low attack complexity (AC:L) makes crafting the payload straightforward, though victim interaction (UI:R) is required. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Stored cross-site scripting in DeepChat before v1.0.4-beta.1 lets an attacker smuggle malicious JavaScript through SVG artifacts rendered by the SvgArtifact.vue component, achieving arbitrary script execution when a victim interacts with the rendered SVG. The flaw stems from a validation gap: the SVGSanitizer strips 'javascript:' with plain-text regex while Vue's v-html performs HTML-entity decoding afterward, so entity-obfuscated payloads (e.g. 'javascript:alert(1)') slip past. Publicly available exploit code exists (SSVC 'poc'), but there is no confirmed active exploitation and EPSS is very low at 0.04% (12th percentile).
RemediationAI
Vendor-released patch: upgrade to DeepChat v1.0.4-beta.1 or later, which corrects the sanitizer/render discrepancy; see the GitHub Security Advisory at https://github.com/ThinkInAIXYZ/deepchat/security/advisories/GHSA-7r59-67v3-3mgp. If immediate upgrade is not possible, compensating controls include disabling or blocking rendering of SVG artifacts in the client (trade-off: loss of legitimate SVG artifact display) and treating model/agent output as untrusted by not opening SVG artifacts from untrusted conversations, shared sessions, or third-party tool responses. Because the defect is entity-decoding parity, any custom workaround must sanitize AFTER HTML-entity decoding (or avoid v-html for SVG entirely) rather than adding more pre-decode regex, which would remain bypassable.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
DeepChat is an Electron/Vue-based open-source AI agent platform (vendor thinkinaixyz) that unifies models, tools, and agents and can render model-generated artifacts, including SVG. The root cause is CWE-79 (improper neutralization of input during web page generation), manifested as a parser-differential bug: the backend sanitizer in src/main/lib/svgSanitizer.ts blocks dangerous protocols using literal-text regular expressions, but the frontend SvgArtifact.vue uses Vue's v-html directive, which decodes HTML entities during DOM insertion. Because sanitization runs on the pre-decoded string and rendering happens on the post-decoded string, an entity-encoded 'javascript:' URI is invisible to the regex yet fully active once the browser engine decodes and executes it. Affected component per CPE: cpe:2.3:a:thinkinaixyz:deepchat.
Know when Deepchat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Remote entity-obfuscated payload needs no auth (PR:N) but requires victim interaction (UI:R); JS runs in a separate render context (S:C) with limited, unproven privileged impact (C:L/I:L).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
DeepChat prior to v1.0.4-beta.1 contains a cross-site scripting vulnerability in SVG rendering that could allow attackers to inject malicious code executed in users' browsers, potentially compromising user sessions and data. No active exploitation has been confirmed in the field; a vendor patch is available immediately, positioning this as a critical but remediable risk.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
DeepChat is a smart assistant uses artificial intelligence. In 0.5.0 and earlier, there is a Stored Cross-Site Scripting
DeepChat is a smart assistant uses artificial intelligence. Rated critical severity (CVSS 9.6), this vulnerability is re
Cross-site scripting in DeepChat's Mermaid diagram renderer escalates to full remote code execution on affected desktop
Remote code execution in DeepChat 0.5.1 and below is possible through a cross-site scripting flaw in Mermaid diagram ren
Arbitrary protocol execution leading to remote code execution affects DeepChat before v1.0.4-beta.1, an open-source AI a
DeepChat is a smart assistant that connects powerful AI to your personal world. Rated critical severity (CVSS 9.6), this
EUVD-2026-29337
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB