Skip to main content

CVE-2026-68587 — Vulnerability in siyuan-note/siyuan/kernel

HIGH

SiYuan: Full-content disclosure of publish-disabled documents via getHeading*Transaction endpoints (publish mode): reader-reachable rendered DOM with no publish-access check

Published September 3, 2026Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.42%). Schedule for your next planned update.

Does your project use an affected github.com/siyuan-note/siyuan/kernel version?

Paste your go.sum to check it for CVE-2026-68587 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

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

Summary

Three "heading transaction" endpoints /api/block/getHeadingDeleteTransaction, /api/block/getHeadingLevelTransaction, and /api/block/getHeadingInsertTransaction return the rendered block DOM of a heading and its subtree in the computed transaction payload, with no publish-access check. They are gated by CheckAuth only, so they are reachable by the publish RoleReader token, and by the anonymous account when Publish.Auth.Enable is false.

Despite their write-implying names, these endpoints perform no mutation on this path, they compute a transaction object and return it, and that object contains RenderNodeBlockDOM output. As a result, an anonymous reader who supplies a heading block ID can read the full rendered content of a document that has been explicitly marked publish-disabled by an administrator, content that the reader-facing /api/filetree/getDoc path correctly refuses to return.

Details

Route / auth tier. All three routes are registered CheckAuth-only (no CheckAdminRole). CheckAuth admits RoleReader, and the publish proxy forwards port-6808 traffic with a Reader JWT (anonymous account when publish auth is disabled). Anonymous/reader reachable.

No publish-access filter. GetHeadingDeleteTransaction / GetHeadingLevelTransaction / GetHeadingInsertTransaction load the heading's block tree and render its DOM into the returned transaction's operation data. None of the three invokes IsReadOnlyRoleContext / the publish-access filter that the reader-safe content path (getDoc) applies. The reader-facing content endpoints (getDoc, and the CheckAdminRole-gated getBlockDOM/getBlockKramdown) treat rendered block DOM as gated content; these three transaction endpoints return the same rendered DOM without that gate.

Write-implying name, read behavior. On this code path the endpoints only compute the transaction (e.g. the undoOperations a delete would produce) and return it; nothing is deleted or modified. The returned operation data includes the rendered HTML of the heading subtree. This mismatch, mutation-shaped name, content-returning behavior is why the gap is easy to miss.

Proof of Concept

Reproduced on a local instance (SiYuan running locally, publish mode enabled on port 6808, publish Basic Auth disabled). DOC is a document containing a heading HEADING whose body contains the unique marker UNIQUE_MARKER_99, and DOC is marked publish-disabled by the administrator.

1. Confirm the document is publish-disabled (admin action, the boundary that should block reads):

POST http://127.0.0.1:6806/api/filetree/setPublishAccess
Authorization: Token <admin-token>
{"id":"DOC","visible":false,"password":"","disable":true}

2. Baseline: the reader-safe content path correctly blocks it (anonymous, port 6808):

POST http://127.0.0.1:6808/api/filetree/getDoc
{"id":"DOC"}

Returns the blocked/placeholder response, the publish filter is applied, no content.

3. Disclosure: the transaction endpoint returns the content (anonymous, port 6808):

POST http://127.0.0.1:6808/api/block/getHeadingDeleteTransaction
{"id":"HEADING"}

Returns HTTP 200; data.undoOperations[].data contains the rendered HTML of the heading subtree, including the hidden body text UNIQUE_MARKER_99. Nothing is deleted — the endpoint only computes the transaction. This is the full content of a publish-disabled document returned to an anonymous reader.

4. Sibling endpoints: same disclosure, same input:

POST http://127.0.0.1:6808/api/block/getHeadingLevelTransaction
{"id":"HEADING","level":2}

POST http://127.0.0.1:6808/api/block/getHeadingInsertTransaction
{"id":"HEADING"}

Both return the rendered DOM of the heading subtree in their operation data.

Impact

An anonymous reader (publish mode with auth disabled) or any publish RoleReader who supplies a heading block ID can read the full rendered content of a publish-disabled document, defeating a boundary the administrator explicitly configured.

Precondition: the request requires the target heading's block ID. Block IDs are high-entropy and are not returned by this endpoint, so this endpoint alone does not permit untargeted enumeration of arbitrary documents. However, block/heading IDs for publish-disabled documents are obtainable from other CheckAuth-only endpoints that lack the publish-access filter (the publish-boundary handler set reported separately, e.g. getHeadingChildrenIDs). Chained with such an ID source, this yields end-to-end unauthenticated full-content disclosure of publish-disabled documents. Presented standalone, the attacker must already possess the heading ID.

Impact is confidentiality-only: these endpoints return content but do not (on this path) modify data. No admin role, CSRF token, or write permission is required. Encrypted notebooks are out of scope.

Suggested fix

Apply the same publish-access check the content path uses IsReadOnlyRoleContext / the publish-access filter used by getDoc to all three getHeading*Transaction handlers, or gate them behind CheckAdminRole consistent with getBlockDOM/getBlockKramdown. Any endpoint that returns rendered block DOM should enforce the same publish boundary as the primary content path.

Advisory Timeline

  • First published September 3, 2026 (84 days ago).
  • Last revised September 10, 2026 — 7 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/siyuan-note/siyuan/kernel to 0.0.0-20260721013353-69db783b782a or later
go get github.com/siyuan-note/siyuan/kernel@v0.0.0-20260721013353-69db783b782a

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/siyuan-note/siyuan/kernel Go · Affected: All versions0.0.0-20260721013353-69db783b782a

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-862
    Missing AuthorizationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N

Frequently Asked Questions

What is CVE-2026-68587?
SiYuan: Full-content disclosure of publish-disabled documents via getHeading*Transaction endpoints (publish mode): reader-reachable rendered DOM with no publish-access check. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.6/10).
How do I check if my project is affected by CVE-2026-68587?
CVE-2026-68587 affects github.com/siyuan-note/siyuan/kernel. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-68587 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.6

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.42%
EPSS percentile: 27.6

This is a below-median EPSS score — only 27.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-69mh-gvh4-8gp7
GO-2026-6381

Related CVEs

  • CVE-2026-25539
    CRITICAL

    SiYuan has Arbitrary File Write via /api/file/copyFile leading to RCE

  • CVE-2026-69083
    CRITICAL

    SiYuan: Unauthenticated SQL execution and REGEXP injection via fullTextSearchAssetContent (publish mode): reader-reachable raw SQL (method 2) and unescaped REGEXP (method 3) on read-write asset-content DB

  • CVE-2026-32938
    CRITICAL

    SiYuan Vulnerable to Arbitrary File Read in Desktop Publish Service

  • CVE-2026-66394
    HIGH

    SiYuan: Stored and reflected XSS in SiYuan through an SVG sanitizer bypass

  • CVE-2026-73608
    HIGH

    SiYuan: getAttributeViewSearchTarget returns database row content to anonymous readers with no publish-access check, reopening the class closed one day earlier at the adjacent route

  • CVE-2026-34585
    HIGH

    SiYuan Desktop: Stored XSS in imported .sy.zip content leads to arbitrary command execution

  • CVE-2026-72793
    HIGH

    SiYuan: Non-administrator responses from /api/system/getConf omit three secrets that the configuration-export path explicitly strips, disclosing the session-cookie signing key and the OS username to anonymous readers

  • CVE-2026-72795
    HIGH

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

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum