CVE-2026-137469: SiYuan 3.7.0 before 3.8.11 DOM XSS via AI Agent Chat Panel
SiYuan 3.7.0 before 3.8.11 contains a DOM-based cross-site scripting vulnerability in the AI agent chat panel, which renders final and saved assistant replies into innerHTML without HTML sanitisation. Attackers influencing model replies via indirect prompt injection or a configured model endpoint can inject event-handler markup, executing OS commands through Node.js integration in desktop local-kernel mode.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.8.11
Event History
Frequently Asked Questions
Which deployments are most exposed to command execution?
Desktop deployments running in local-kernel mode are most exposed, because the injected script can execute OS commands through Node.js integration. The vulnerable rendering occurs in the AI agent chat panel when final or saved assistant replies are displayed.
What must an attacker be able to do to exploit this?
An attacker must influence an assistant reply, such as through indirect prompt injection or a configured model endpoint, and cause malicious event-handler markup to be included in that reply. Exploitation also requires a user to interact with the malicious rendered content.
Which versions are affected?
SiYuan versions from 3.7.0 before 3.8.11 are affected. Version 3.8.11 is not described as affected by this advisory.