Skip to content
OpenAdvisories
High · 8.5 CVE-2026-40318 EUVD-2026-23328GHSA-vw86-c94w-v3x4GO-2026-5679

SiYuan: Publish Reader Path Traversal Delete via `removeUnusedAttributeView`

Published Apr 16, 2026 · Updated Apr 18, 2026 · Assigned by GitHub_M

Description

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 products

VendorProductAffectedFixed
siyuan-note siyuan < 3.6.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/siyuan-note/siyuan/kernel < 3.6.40.0.0-20260407035653-2f416e5253f1 3.6.40.0.0-20260407035653-2f416e5253f1 GHSA-vw86-c94w-v3x4
Go github.com/siyuan-note/siyuan/kernel all versions — GO-2026-5679

Advisories 1

References