NetSight
high8.5

CVE-2026-40318

SiYuan: Publish Reader Path Traversal Delete via `removeUnusedAttributeView`

Impact

SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and prior, the /api/av/removeUnusedAttributeView endpoint constructs a filesystem path using the user-controlled id parameter without validation or path boundary enforcement. An attacker can inject path traversal sequences such as ../ into the id value to escape the intended directory and delete arbitrary .json files on the server, including global configuration files and workspace metadata. This issue has been fixed in version 3.6.4.

Affected packages

EcosystemPackageAffectedFixed in
gogithub.com/siyuan-note/siyuan/kernel< 0.0.0-20260407035653-2f416e5253f13.6.40.0.0-20260407035653-2f416e5253f1

Affected products

VendorProductAffected versions
B3logSiyuan
before 3.6.4

Weakness classification

References