CVE-2026-137471: SiYuan before 3.8.10 XSS via WebDAV Sync Error Notification
SiYuan before 3.8.10 contains a cross-site scripting vulnerability where WebDAV sync error formatting skips HTML escaping for certain malformed-response errors, passing raw markup to the Electron notification renderer. A network attacker who alters a cleartext HTTP WebDAV response can inject event-handler markup that, when the victim manually starts sync, executes JavaScript with Node integration as the logged-in user.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this attack?
SiYuan versions before 3.8.10 are affected when WebDAV sync uses cleartext HTTP. The described attacker is on the network path and can modify the WebDAV server response.
What user action is required for exploitation?
The victim must manually start a sync after the attacker has caused a malformed WebDAV response containing injected markup. The injected event handler then executes in the Electron notification renderer with Node integration as the logged-in user.
What can be done if an upgrade cannot happen immediately?
Do not use cleartext HTTP for WebDAV sync. Using a WebDAV configuration that does not permit a network attacker to alter responses removes the network-response manipulation condition described for this issue.