PT-2026-76919

CVE-2026-74904

·

Published

2026-08-18

·

Updated

2026-10-07

Description by

CVSS 3.1
7.5
High
MetricsAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions SiYuan versions prior to 3.7.4
Description SiYuan contains a missing authorization issue affecting 17 endpoints within kernel/api/block.go. These handlers are only protected by basic authentication and lack necessary publish-access filtering. This allows anonymous readers in publish-mode to disclose private block content-derived text, structural metadata, and existence information for arbitrary block IDs across the entire workspace.
Technical details include the following affected API endpoints:
  • /api/block/getRefText (discloses actual reference-display text derived from block content)
  • /api/block/getBlockBreadcrumb (discloses the block's breadcrumb or title path)
  • /api/block/getBlockDefIDsByRefText (resolves reference text to block IDs)
  • /api/block/getRefIDsByFileAnnotationID (discloses block IDs referencing a PDF or file annotation)
  • /api/block/getBlockIndex and /api/block/getBlocksIndexes (discloses a block's position within its document)
  • /api/block/getTreeStat (discloses structural statistics for a document tree)
  • /api/block/getBlocksWordCount and /api/block/getContentWordCount (discloses word or character counts)
  • /api/block/checkBlockExist and /api/block/checkBlocksExist (acts as an existence oracle for block IDs)
  • /api/block/getUnfoldedParentID (discloses the nearest unfolded ancestor of a block)
  • /api/block/checkBlockFold (discloses if a block is folded)
  • /api/block/getBlockSiblingID (discloses a block's sibling in document order)
  • /api/block/getBlockRelevantIDs (discloses IDs of blocks related to a given block)
  • /api/block/getBlockTreeInfos (discloses block tree metadata)
  • /api/block/checkBlockRef (discloses if a block is referenced elsewhere)
The vulnerability is triggered via the id variable in these endpoints. For example, the getRefText() function fails to implement access checks, allowing the retrieval of refText for any provided id regardless of the user's permissions.
Recommendations Update SiYuan to version 3.7.4 or later. As a temporary mitigation, restrict access to the affected API endpoints in kernel/api/block.go to minimize the risk of unauthorized data disclosure.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-4VPG-GWQQ-W44C
GHSA-69JP-F2P8-9VRG
GO-2026-6654
Found an issue in the description? Have something to add? Feel free to write us 👾