Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐹
🐹 Go
Not in CISA KEV
HIGH severity

CVE-2026-72795 — kernel

HIGHFix: siyuan-note/siyuan@1ca1c3c

CVE-2026-72795 is a high-severity (CVSS 8.6) CWE-862 vulnerability in github.com/siyuan-note/siyuan/kernel. A fix is available for github.com/siyuan-note/siyuan/kernel — see the affected versions and patch details below.

SiYuan: Embedded (transclusion) block content is returned without publish-access filtering, leaking private and password-protected document content to anonymous readers

Also known asGO-2026-6425
Published
Sep 4, 2026
Updated
Sep 10, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Sep 27, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-72795.

EPSS Exploitation Probability

via FIRST.org ↗
0.4%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs33th percentile — riskier than 33% of all scored CVEsHighest risk

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

CVE-2026-72795 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.

Where this sits among everything scored

Of 380,066 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.

Real-World Exposure

1 pkg affected
🐹github.com/siyuan-note/siyuan/kernel

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.

Description

CVE: This vulnerability corresponds to CVE-2026-72795.

Summary

/api/block/getBlockDOMWithEmbed and /api/block/getBlockDOMsWithEmbed gate only the requested block against publish access. The blocks pulled in by that block's embed (transclusion) query are inlined into the returned DOM with no publish-access check at all, so a reader who requests a legitimately-published block containing an embed query receives the content of every block that query matched including blocks in hidden, forbidden and password-protected documents.

The dedicated embed endpoint getEmbedBlock filters these same results for reader roles. The DOM-with-embed path does not.

Details

ItemDetail
Routeskernel/api/router.go:226 POST /api/block/getBlockDOMWithEmbed → model.CheckAuth → getBlockDOMWithEmbed; :227 POST /api/block/getBlockDOMsWithEmbed → model.CheckAuth → getBlockDOMsWithEmbed
MiddlewareCheckAuth only — no CheckReadonly, no CheckAdminRole → reachable by the publish RoleReader token, and anonymously when Publish.Auth.Enable is false
Guard presentTop-level requested block only. Singular: password + disable checks on the requested id. Plural: filterBlockDOMsByPublishAccess over the requested ids.
Guard absentThe embedded blocks resolved from the query
ExposedContent HTML of every block matched by the embed query, regardless of that block's publish visibility or password tier

The leak path. getBlockDOMWithEmbed → GetBlockDOMsWithEmbedInBox → resolveEmbedContentInBox (kernel/model/block.go:976). That function walks the tree for NodeBlockQueryEmbed, extracts the embed SQL, executes sql.SelectBlocksRawStmtInBox(stmt, ...), builds embedContents from each matched block's content HTML, and inlines the result via SetIALAttr("embed-content", ...).

resolveEmbedContentInBox takes no publishAccess parameter and contains no filtering: FilterEmbedBlocks, CheckBlockIdAccessableByPublishAccess, CheckPathAccessable, publishAccess and IsReadOnlyRoleContext all return zero matches in that function and its call path. The top-level gate therefore passes on the requested block, and the response body carries content the reader has no access to.

Embed queries in published documents routinely span the entire workspace by design, dashboard documents, "all my TODOs" aggregations, tag or attribute rollups. The reader does not need to construct anything: requesting an already-published document that contains such an embed is sufficient. If the publish frontend renders embedded blocks through this endpoint, the disclosure occurs passively during normal viewing of any published document containing an embed block.

Guarded sibling. getEmbedBlock (kernel/api/router.go:212), which is also reader-reachable and returns embed query results, applies model.FilterEmbedBlocksByPublishAccess(c, publishAccess, blocks) for reader roles (kernel/model/search.go:38). The same class of data is filtered there and unfiltered here.

Scope note. A prior review of getBlockDOMsWithEmbed confirmed that the per-id publish gate is correctly applied to the requested ids. That observation is accurate and is not in dispute, this report concerns the embedded blocks resolved downstream in resolveEmbedContentInBox, which are not covered by that gate.

Proof of Concept

Precondition: publish mode enabled (default port 6808); anonymous when Publish.Auth.Enable is false, otherwise any publish reader account. A published document containing an embed query whose results include at least one block in a non-published or password-protected document.

POST http://127.0.0.1:6808/api/block/getBlockDOMWithEmbed
{"id":"<id of a published block containing an embed query>"}

→ 200
   The returned DOM contains embed-content attributes carrying the
   content HTML of blocks in documents the reader has no publish
   access to.

Differential check against the filtered sibling, using the same reader session and the same underlying query:

POST http://127.0.0.1:6808/api/search/getEmbedBlock
{"stmt":"<the same embed query>"}

→ 200, results filtered by FilterEmbedBlocksByPublishAccess

The filtered endpoint withholds the private blocks; the DOM endpoint returns their content.

The plural route behaves identically for each requested id:

POST http://127.0.0.1:6808/api/block/getBlockDOMsWithEmbed
{"ids":["<published block containing an embed query>"]}

Impact

An anonymous reader in publish mode or any publish RoleReader can read the content of blocks in documents that are not published, are marked hidden or forbidden, or are protected by a publish password, by requesting a published block that transcludes them. Because embed queries in aggregation-style published documents commonly match across the whole workspace, the volume of exposed content is bounded only by what the author's embed queries happen to match, not by anything under the reader's control being unusual. Confidentiality-only; no integrity or availability impact.

Suggested fix

Thread the request's publishAccess context into resolveEmbedContentInBox and, when IsReadOnlyRoleContext holds, drop any matched block failing CheckBlockIdAccessableByPublishAccess and the password-tier check before its content is written into embed-content mirroring the treatment getEmbedBlock already gives the same data via FilterEmbedBlocksByPublishAccess.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐹Gogithub.com/siyuan-note/siyuan/kernelall versions0.0.0-20260725125659-1ca1c3c9d94bgo get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260725125659-1ca1c3c9d94b

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/siyuan-note/siyuan/kernel, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update github.com/siyuan-note/siyuan/kernel to 0.0.0-20260725125659-1ca1c3c9d94b or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-72795 is resolved across your whole dependency graph.

  3. Workarounds

    Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.

Frequently Asked Questions

**CVE:** This vulnerability corresponds to [CVE-2026-72795](https://nvd.nist.gov/vuln/detail/CVE-2026-72795). ### Summary `/api/block/getBlockDOMWithEmbed` and `/api/block/getBlockDOMsWithEmbed` gate only the *requested* block against publish access. The blocks pulled in by that block's embed (transclusion) query are inlined into the returned DOM with no publish-access check at all, so a reader who requests a legitimately-published block containing an embed query receives the content of every block that query matched including blocks in hidden, forbidden and password-protected documents. Th
O3 Security · Impact-Aware SCA

Is CVE-2026-72795 in your dependencies?

Find it across Go, including transitive dependencies.