CVE-2026-54066
Received Received - Intake
Path Traversal in SiYuan via Double URL Encoding

Publication date: 2026-06-24

Last updated on: 2026-06-24

Assigner: GitHub, Inc.

Description
SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, the patch for CVE-2026-41894 ("Path Traversal via Double URL Encoding") sanitized the /export/ route but the identical root cause remains in the /assets/*path route. In publish mode (anonymous read-only HTTP endpoint, default port 6808), an unauthenticated remote attacker can read arbitrary files inside WorkspaceDir β€” including conf/conf.json (which contains the AccessAuthCode SHA256 hash, API token, and sync keys), temp/siyuan.db, temp/blocktree.db, and siyuan.log β€” by double-URL-encoding .. segments. This vulnerability is fixed in 3.7.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-24
Last Modified
2026-06-24
Generated
2026-06-25
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
siyuan siyuan 3.7.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-1188 The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CWE-23 The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in SiYuan, an open-source personal knowledge management system, prior to version 3.7.0. It involves a path traversal issue via double URL encoding in the /assets/*path route. Although a previous patch fixed a similar issue in the /export/ route, the same root cause remained in the /assets/*path route. An unauthenticated remote attacker can exploit this by double-URL-encoding ".." segments to read arbitrary files inside the WorkspaceDir.

  • The attacker can access sensitive files such as conf/conf.json (which contains the AccessAuthCode SHA256 hash, API token, and sync keys), temp/siyuan.db, temp/blocktree.db, and siyuan.log.

This vulnerability is exploitable in publish mode, which is an anonymous read-only HTTP endpoint running on the default port 6808. The issue was fixed in version 3.7.0.

Impact Analysis

This vulnerability allows an unauthenticated remote attacker to read arbitrary files within the WorkspaceDir of the SiYuan system. This can lead to exposure of sensitive information such as authentication tokens, API keys, sync keys, and database files.

  • Unauthorized disclosure of confidential data including AccessAuthCode SHA256 hash, API tokens, and synchronization keys.
  • Potential compromise of user data stored in the database files (temp/siyuan.db, temp/blocktree.db).
  • Exposure of system logs (siyuan.log) which might contain sensitive operational information.

Overall, this can lead to loss of confidentiality and may facilitate further attacks or unauthorized access.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade SiYuan to version 3.7.0 or later, as this version includes the fix for the path traversal issue in the /assets/*path route.

Until the upgrade is applied, consider restricting access to the publish mode HTTP endpoint (default port 6808) to trusted networks or users to prevent unauthenticated remote attackers from exploiting the vulnerability.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-54066. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart