Loading0%
SUBZER0
LIVE
Alerts

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

Archived. This CVE has left SubZer0's live 30-day window. Signals below are as of 2026-11-01; check the references for anything newer.

  • Severity: High
  • CVSS 7.5
  • EPSS 0.45%
  • Public exploit
  • P2 · This week

Why P2: this week.

Description

Same CWE-862 family, found via an automated bulk sweep of every `/api/block/*` handler in `kernel/api/block.go` for the presence of any access-check reference (`IsReadOnlyRoleContext`, `checkBlockPublishAccess`, `GetPublishAccess`) anywhere in the function body. 17 of 28 candidate endpoints have none. Cross-checked against the file's own sibling functions (`getBlockInfo`, `getBlockDOM`, `getRefIDs`, etc.), which correctly implement the check, confirming this is a real, uneven gap rather than a deliberate design choice for the whole file. ### Summary 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. ### Details Confirmed via automated extraction of every function body between `func NAME(c *gin.Context) {` and the next such declaration, then searching each for any of `IsReadOnlyRoleContext`, `checkBlockPublishAccess`, `GetPublishAccess`, or `PublishAccess`. The following contain none of these, at all: | Endpoint | What it discloses | |---|---| | `getRefText` | The block's actual refe…

Affected products

  • go github.com/siyuan-note/siyuan/kernel < 0.0.0-20260804015139-bd067a4fe9b2; first patched: 0.0.0-20260804015139-bd067a4fe9b2

References

Browse more

Go modulesWeek 40, 2026 recap

Published 2026-10-02 · sources: GitHub Advisory Database