CVE-2026-145078: SiYuan before 3.8.11 stored XSS via unfiltered transactions WebSocket push
SiYuan before 3.8.11 contains a stored cross-site scripting vulnerability because the transactions WebSocket push fails to filter handler-named block attributes. Attackers can supply a .sy.zip import carrying an onmouseover attribute that is re-broadcast and applied when any editor updates the block, achieving code execution in the desktop build.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
SiYuanto a version that resolves this vulnerability.Fixed in 3.8.11
Event History
Frequently Asked Questions
What does an attacker need to do to trigger the issue?
The attacker needs to provide a .sy.zip import containing an onmouseover attribute in a handler-named block attribute. The malicious attribute is re-broadcast through the transactions WebSocket push and applied when an editor updates the affected block.
Who is exposed to code execution?
Users of the desktop build are exposed when the stored payload is applied during an editor update. Exploitation does not require attacker privileges, but it requires user interaction associated with importing the supplied archive and updating the affected block.
Which versions are affected?
SiYuan versions before 3.8.11 are affected. The provided information does not identify any other affected products or configurations.