9.3critical
DeepChat: Persistent DOM XSS via HTML Entity Encoding in `<antArtifact>` SVG Rendering (Bypass of `svgSanitizer.ts`)
- Severity
- 9.3critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.50% (higher than 36% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ThinkInAIXYZ deepchat | < 1.0.4-beta.1 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
DeepChat es una plataforma de agente de inteligencia artificial de código abierto que unifica modelos, herramientas y agentes. Antes de la v1.0.4-beta.1, existe una vulnerabilidad de cross-site scripting (XSS) debido a una discrepancia entre la capa de validación del backend y el motor de renderizado del navegador del frontend. El SVGSanitizer (src/main/lib/svgSanitizer.ts) restringe la ejecución de scripts eliminando los protocolos javascript_disabled: usando expresiones regulares de texto plano. Sin embargo, no tiene en cuenta la decodificación de entidades HTML antes de la inserción en el DOM de v-html de Vue dentro del componente SvgArtifact.vue. Al alimentar un artefacto SVG con entidades ofuscadas (p. ej., javascript:alert(1)), un atacante puede eludir completamente el saneador, culminando en la ejecución arbitraria de JavaScript cuando una víctima interactúa con el elemento SVG renderizado. Esta vulnerabilidad está corregida en la v1.0.4-beta.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43900 changed 2026-05-12 | CVE Terms of Use |
| NVD | CVE-2026-43900 changed 2026-10-26 | Public domain |