CVE-2026-54066: 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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
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.
Remediation
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.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Frequently asked questions
- Is CVE-2026-54066 exploited in the wild?
- Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-54066?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2026-54066.
- Is there a patch for CVE-2026-54066?
- 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.
- How severe is CVE-2026-54066?
- CVE-2026-54066 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 2.2% (83rd percentile) as of Sep 25, 2026.
Recent activity
2 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.