# CVE-2026-72795: SiYuan embedded block content leak via missing publish-access filtering

Source: https://junglewise.ai/threats/cve-2026-72795-siyuan-embedded-block-content-leak-via-missing-publish-access  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-12. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-72795 · Severity: high · CVSS 8.6 · Published 2026-08-12

SiYuan is a popular note-taking and knowledge management application that supports publishing documents for sharing with readers. When published documents contain embedded queries (transclusions) that pull content from other blocks, the API endpoints handling these embeds fail to apply access control to the embedded content itself. This allows anonymous readers or any reader with limited access to view the full HTML content of blocks in private, hidden, or password-protected documents by requesting a publicly-shared document that happens to reference them via an embed query.

Technologies: [github.com/siyuan-note/siyuan/kernel (Go)](https://junglewise.ai/threats/technologies/github-com-siyuan-note-siyuan-kernel). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2026-72795 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-72795 being exploited in the wild.

**How severe is CVE-2026-72795?** High severity, with a CVSS score of 8.6, published 12 August 2026.

**Which products and versions are affected?** github.com/siyuan-note/siyuan/kernel (Go) < 0.0.0-20260725125659-1ca1c3c9d94b, SEMVER:introduced=0,fixed=0.0.0-20260725125659-1ca1c3c9d94b.

**Is there a fix for CVE-2026-72795?** Yes. github.com/siyuan-note/siyuan/kernel (Go): upgrade to 0.0.0-20260725125659-1ca1c3c9d94b or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-72795 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-72795?** Check whether you run github.com/siyuan-note/siyuan/kernel (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/siyuan-note/siyuan/kernel (Go): upgrade to 0.0.0-20260725125659-1ca1c3c9d94b or later

  ```sh
  go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260725125659-1ca1c3c9d94b
  ```


## Technical details

The vulnerability is a missing authorization check (CWE-862) in the block DOM retrieval endpoints. The affected routes are `POST /api/block/getBlockDOMWithEmbed` and `POST /api/block/getBlockDOMsWithEmbed` in `kernel/api/router.go`, which are gated only by `model.CheckAuth` middleware, allowing access by RoleReader tokens and anonymously when `Publish.Auth.Enable` is false. The leak occurs in the `resolveEmbedContentInBox` function (`kernel/model/block.go:976`), which processes NodeBlockQueryEmbed nodes, executes SQL queries to fetch matched blocks, and inlines their content HTML via `SetIALAttr("embed-content", ...)` without applying any `publishAccess` filtering. In contrast, the sibling endpoint `getEmbedBlock` correctly applies `FilterEmbedBlocksByPublishAccess` to the same query results. No authentication bypass is required; the attack exploits the published nature of the requested block (which passes the top-level gate) to reach unfiltered embedded content. The PoC demonstrates requesting a published block containing an embed query, which returns private block content in the response DOM. A patch has been released in version 0.0.0-20260725125659-1ca1c3c9d94b.

## Affected products

- siyuan-note siyuan < 0.0.0-20260725125659-1ca1c3c9d94b

## Identifiers

- CVE-2026-72795
- GHSA-h6w7-xxcf-w2mq
- GO-2026-6425

## Timeline

- 2026-07-25: disclosed: Vulnerability published to GitHub Advisory Database
- 2026-07-25: patched: Patch released in commit 1ca1c3c9d94b
- 2026-09-04: advisory: Advisory GHSA-h6w7-xxcf-w2mq and CVE-2026-72795 published

## References

- [https://api.github.com/users/Shirshakhtml](https://api.github.com/users/Shirshakhtml)
- [https://github.com/Shirshakhtml](https://github.com/Shirshakhtml)
- [https://api.github.com/users/Shirshakhtml/gists%7B/gist_id%7D](https://api.github.com/users/Shirshakhtml/gists%7B/gist_id%7D)
- [https://api.github.com/users/Shirshakhtml/repos](https://api.github.com/users/Shirshakhtml/repos)
- [https://avatars.githubusercontent.com/u/75179984?v=4](https://avatars.githubusercontent.com/u/75179984?v=4)
- [https://api.github.com/users/Shirshakhtml/events%7B/privacy%7D](https://api.github.com/users/Shirshakhtml/events%7B/privacy%7D)

## Related threats

- [SiYuan publish filter information disclosure in local storage](https://junglewise.ai/threats/go-2026-6836-siyuan-the-publish-filter-for-local-storage-returns-the-7f022e62)
- [SiYuan WebSocket parser differential allows unauthenticated event stream access](https://junglewise.ai/threats/cve-2026-73054-siyuan-a-parser-differential-between-the-websocket-keepalive)
- [SiYuan authFilePublishAccess information disclosure](https://junglewise.ai/threats/cve-2026-73630-siyuan-authfilepublishaccess-distinguishes-hidden-and-forbidden)
- [SiYuan database backlink information disclosure via publish filter](https://junglewise.ai/threats/cve-2026-73049-siyuan-the-publish-filter-for-database-backlinks-consults-the)
- [SiYuan local storage endpoint discloses administrator activity](https://junglewise.ai/threats/siyuan-the-publish-filter-for-local-storage-returns-the-administrator-s-fab71d28)
