SiYuan publish mode path traversal via double URL encoding
CVE-2026-54066 is a path traversal vulnerability in SiYuan prior to version 3.7.0. The issue affects the /assets/*path route in publish mode and stems from an incomplete fix for CVE-2026-41894: while the earlier patch sanitized the /export/ route, the same root cause remained reachable through the assets handler. By supplying double-URL-encoded directory traversal sequences, an unauthenticated remote attacker can bypass path sanitization and cause the application to resolve and return arbitrary files located within WorkspaceDir. Exposed data can include configuration files, temporary SQLite databases, and application logs. Sensitive material available through these files may include the AccessAuthCode SHA256 hash, API tokens, and synchronization credentials.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows unauthenticated arbitrary file read within SiYuan's WorkspaceDir when publish mode is exposed. This can disclose sensitive configuration data, authentication material, local databases, and logs. Theft of API tokens or related secrets can enable authenticated access to kernel APIs with notebook read/write capabilities, and exposure of synchronization credentials may facilitate compromise of connected synchronization resources or broader follow-on access.
If you can’t patch tonight, do this now.
If immediate patching is not possible, disable publish mode where it is not strictly required. Restrict network access to the publish endpoint to trusted hosts or internal networks only, and prevent anonymous exposure of the /assets/*path route through firewalling, reverse-proxy policy, or segmentation. Monitor for suspicious requests containing encoded traversal patterns targeting publish-mode asset paths.
Patch, then assume compromise.
Upgrade SiYuan to version 3.7.0 or later. The fix removes the unsafe path decoding behavior in asset path resolution, ensures sensitive-path checks are consistently applied to the /assets/*path handler, and strengthens access validation for files reachable through publish mode.
No public exploits tracked yet. Mallory keeps watching.
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.