SiYuan's WebDAV error path needs the same output safety as normal note content
SiYuan uses WebDAV as a synchronization backend for users who do not rely on the built-in storage service. A failed sync can contain text supplied by the remote server, including an error message. CVE-2026-137471 affects SiYuan before 3.8.10, where that message can reach the application UI without sufficient output handling and produce cross-site scripting.
The vulnerable surface is easy to overlook because it is not the note editor. Error dialogs, synchronization logs, and status notifications often receive data from remote systems and are expected to display it as text. If the renderer treats the string as HTML, a malicious WebDAV endpoint or an intermediary that can alter a response can place script in the trusted SiYuan origin.
Why a sync backend is part of the security boundary
Users normally choose a WebDAV endpoint they control. That does not eliminate the risk. An endpoint can be misconfigured, compromised, or reached through a network path that allows response modification. A shared or multi-user deployment can also give an attacker influence over a document or server response that later appears in another user's error view.
The browser trusts SiYuan's origin more than an arbitrary website. Cross-site scripting in that origin can access local application state, invoke internal APIs, read displayed workspace data, or perform actions as the signed-in user. The CVE record does not establish that every deployment is remotely exploitable. Reachability depends on how the error is produced and where the notification is rendered.
Patch and verify the rendering path
Upgrade to SiYuan 3.8.10 or later. After updating, review the desktop and web UI versions separately if both are used. Embedded or packaged copies can lag behind the server.
Do not treat the patch as a reason to skip log review. Search for failed WebDAV synchronizations near the exposure window, especially ones with unexpected markup, redirects, or HTML from the remote service. Check for notifications that were opened by users and for any unusual API calls or workspace changes after those events.
Rotate WebDAV credentials if the endpoint was untrusted or compromised. Review the endpoint's access logs for requests from unfamiliar clients. Confirm that HTTPS is enforced and that the client validates the server certificate.
Defensive design for error text
Remote error messages should be rendered as plain text. If formatting is required, parse it into a small allowlisted model and render a fixed component tree. Do not concatenate remote strings into an HTML template. Apply the same rule to stack traces, synchronization summaries, update metadata, and support diagnostics.
Add a test that returns HTML and event-handler syntax from a fake WebDAV server. The test should verify that the UI displays the characters as text and that no script context is created. A content security policy can reduce the impact of a missed sink, but it does not replace output encoding.
Top comments (0)