Skip to content

H3-2026-1032

SiYuan Notebook Path Traversal Vulnerability

Category VULNERABILITY
Base Score 9.1

Description

B3log SiYuan is a privacy-first personal knowledge management notebook application. Its filetree listDocsByPath API endpoint does not validate the supplied path parameter before resolving it within a notebook's directory tree. Remote attackers can include parent-directory traversal sequences in the path value to escape the intended notebook boundary and reach the workspace root and its configuration directories. The root cause is missing path validation (CWE-22) in the Box path resolution logic shared by listDocsByPath and related file operations. Exploitation requires only network reachability to a SiYuan instance's API.

Impact

Successful exploitation lets remote attackers read directory listings and files outside the intended notebook boundary. Accessible targets include workspace configuration, other notebooks' data, and TLS private keys such as ca.key and key.pem. Exposed keys and configuration can be reused to impersonate the server or decrypt intercepted traffic. Users storing personal or proprietary notes in SiYuan face a significant confidentiality breach.

References