Description
SiYuan through 3.8.12 contains an information disclosure vulnerability that allows publish readers to download raw .sy document files via the POST /api/file/getFile endpoint when Publish Service is enabled. Unauthenticated visitors can request data/<boxID>/<docID>.sy for published documents to obtain full AST JSON, exposing hidden block memos, inline memos, and attribute view bindings.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
siyuan-note siyuan
Default version status: unaffected
0 to ≤ 3.8.12affected
pkg:golang/github.com/siyuan-note/siyuan/kernelReferences
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-q4q6-4xfw-224v ↗
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4r28-jcfr-r78w ↗
- https://github.com/siyuan-note/siyuan/commit/75b21e13e61d31b6a87f80a3df5d1a5243d3f1ba ↗
- https://github.com/siyuan-note/siyuan/blob/v3.8.12/kernel/api/file.go#L357-L420 ↗
- https://www.vulncheck.com/advisories/siyuan-through-3.8.12-private-memo-disclosure-via-getfile-raw-document-access ↗