CVE-2026-74904: SiYuan: 17 block metadata/content endpoints in kernel/api/block.go have zero publish-access filtering, reachable by anonymous publish-mode readers
17 handlers in kernel/api/block.go, all gated only by model.CheckAuth
with no admin-role requirement, return block content-derived text,
structural metadata, or existence information for any block ID supplied,
with no access check anywhere in the handler or, for the ones checked in
detail, the model functions they call. This is CWE-862 (Missing
Authorization), the same class as the companion advisories from this
review round, found in a different file via a systematic bulk check
rather than manual inspection of each function individually.
References
- github.com/advisories/GHSA-4vpg-gwqq-w44c
- github.com/siyuan-note/siyuan/commit/bd067a4fe9b208c0858d8d9dc6220dc8affc403e
- github.com/siyuan-note/siyuan/releases/tag/v3.8.0
- github.com/siyuan-note/siyuan/security/advisories/GHSA-4vpg-gwqq-w44c
- nvd.nist.gov/vuln/detail/CVE-2026-74904
- www.vulncheck.com/advisories/siyuan-before-missing-authorization-via-block-api
Code Behaviors & Features
Detect and mitigate CVE-2026-74904 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →