CVE-2026-137470: SiYuan before 3.8.11 Stored XSS to RCE via Block Attribute Names
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability that allows attackers to inject DOM event handlers by storing handler-named block attributes such as onmouseover. Attackers can share crafted .sy.zip packages or Markdown files whose attributes reach renderCustom or the unsanitised preview pane, executing OS commands via Node integration in the desktop app.
Affected Software
Event History
Frequently Asked Questions
Who is realistically exposed to exploitation?
Users of SiYuan versions before 3.8.11 are exposed if they open or preview attacker-crafted .sy.zip packages or Markdown files containing malicious block attributes. The attack targets the desktop app's rendering paths, including renderCustom or the unsanitised preview pane.
What does an attacker need to exploit this issue?
The attacker needs to get a user to interact with crafted content, such as a shared .sy.zip package or Markdown file. No authentication or existing privileges are required, but user interaction is required.
What is the potential impact after successful exploitation?
Injected DOM event handlers can execute in the desktop application and use Node integration to execute OS commands. This can result in compromise of confidentiality, integrity, and availability.
How can I determine whether I may be affected?
Check whether the installed SiYuan version is earlier than 3.8.11. Also investigate whether users have opened or previewed untrusted .sy.zip packages or Markdown files, particularly files that may contain handler-named block attributes such as onmouseover.