# CVE-2026-68585: SiYuan missing authorization in getBlockInfo metadata endpoint

Source: https://junglewise.ai/threats/cve-2026-68585-siyuan-missing-authorization-in-getblockinfo-metadata-endpoint  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-03. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-68585 · Severity: medium · CVSS 5.8 · Published 2026-09-03

SiYuan is a popular open-source note-taking application. The `/api/block/getBlockInfo` endpoint fails to check whether a user has permission to access a document, exposing the document's title, location, and other metadata for documents an administrator has explicitly marked as hidden from public view. An attacker with network access to a SiYuan publish server can infer the existence and titles of private documents if they obtain a block identifier from within those documents.

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

## Quick answers

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

**How severe is CVE-2026-68585?** Medium severity, with a CVSS score of 5.8, published 3 September 2026.

**Which products and versions are affected?** github.com/siyuan-note/siyuan/kernel (Go) < 0.0.0-20260721014951-ffde3b21eca4, SEMVER:introduced=0,fixed=0.0.0-20260721014951-ffde3b21eca4; SiYuan before 0.0.0-20260721014951-ffde3b21eca4.

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

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

**Am I affected by CVE-2026-68585?** Check whether you run github.com/siyuan-note/siyuan/kernel (Go) or SiYuan 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-20260721014951-ffde3b21eca4 or later

  ```sh
  go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260721014951-ffde3b21eca4
  ```


## Technical details

The vulnerability is a missing authorization check (CWE-862) in the `/api/block/getBlockInfo` API endpoint. The endpoint accepts a caller-supplied block ID, validates only its format, and returns the containing document's root metadata (box, path, rootID, rootTitle, rootChildID, rootIcon) with no `IsReadOnlyRoleContext` / publish-access filter applied. The equivalent endpoint `getDocInfo` implements the same access filter correctly, indicating the boundary is intentional but overlooked in `getBlockInfo`. Both endpoints are gated only by `CheckAuth`, making them reachable by anonymous users when publish auth is disabled and by publish `RoleReader` tokens. Exploitation requires a valid block ID from the target document; the endpoint does not enumerate arbitrary documents. The disclosed metadata is limited to document title and location metadata—not document content. The issue is fixed in version 0.0.0-20260721014951-ffde3b21eca4 by applying the same publish-access filter before returning metadata.

## Affected products

- SiYuan SiYuan before 0.0.0-20260721014951-ffde3b21eca4

## Identifiers

- CVE-2026-68585
- GHSA-pm3w-vxp9-ccwc
- GO-2026-6384

## Timeline

- 2026-09-03: disclosed: Published to GitHub Advisory Database
- 2026-07-21: patched: Fix committed; patched version 0.0.0-20260721014951-ffde3b21eca4

## 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 path traversal in web fetch](https://junglewise.ai/threats/cve-2026-126776-siyuan-3-7-0-before-3-8-10-on-windows-contains-a-path-traversal)
- [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 path traversal via GLOBALROOT alias bypass](https://junglewise.ai/threats/cve-2026-118680-siyuan-3-8-7-through-3-8-8-fails-to-normalize-windows-globalroot)
- [SiYuan SQL injection in history search](https://junglewise.ai/threats/cve-2026-116170-siyuan-before-v3-8-7-contains-an-sql-injection-vulnerability)
- [SiYuan cross-site scripting in /check-auth redirect](https://junglewise.ai/threats/cve-2026-116167-siyuan-from-2-9-0-before-3-8-7-contains-a-cross-site-scripting)
