CVE-2026-72795
nicheMissing authorization in SiYuan publish mode leaks private embedded block content
SiYuan's publish-mode endpoints /api/block/getBlockDOMWithEmbed and /api/block/getBlockDOMsWithEmbed (a missing-authorization flaw, CWE-862) enforce publish-access checks only on the block explicitly requested, while blocks pulled in by that block's embed (transclusion) query are inlined into the response with no publish-access filtering at all. An anonymous reader (when Publish.Auth.Enable is false) or a read-only RoleReader token triggers the leak simply by requesting an already-published document that contains an embed block; no crafted request or user interaction is needed, and the disclosure can occur passively during normal viewing if the publish frontend renders embeds through this endpoint. The attacker gains the HTML content of every block matched by the embed query, including blocks inside hidden, access-forbidden, and password-protected documents, so confidential notes outside the published scope can be exposed. Any SiYuan deployment serving published documents that contain embed blocks — commonly dashboards, TODO aggregations, or tag/attribute rollups whose queries span the whole workspace — is affected. No public proof-of-concept or in-the-wild exploitation is known; EPSS is 0.2% and the issue is not in CISA KEV.
What to do: Upgrade SiYuan to the latest available release and check the project's release notes for a fix adding publish-access filtering to getBlockDOMWithEmbed/getBlockDOMsWithEmbed (no fixed version number is available in the data). Until patched, audit published documents for embed-block queries that reach hidden, forbidden, or password-protected documents and restrict those queries to published content; enabling publish authentication limits anonymous exposure but authenticated readers remain affected. After patching, re-test reader and anonymous access to confirm embedded private blocks are no longer returned.
| SiYuan (self-hosted knowledge management / note-taking application, kernel API) | — |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
SiYuan versions before v3.7.4 fail to filter embedded block content by publish access in the getBlockDOMWithEmbed and getBlockDOMsWithEmbed endpoints. Attackers can request published blocks containing embed queries to read content from password-protected, hidden, or forbidden documents without authorization.
- Ecosystems
- go
- Weakness
- CWE-862
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- GHSA
- GHSA-h6w7-xxcf-w2mq (high)
In the news0 stories
No ingested article mentions this CVE yet.