CVE-2026-72788: Github.com/siyuan note/siyuan/kernel SiYuan Discloses An Administrator's Open Vulnerability

MODERATE
Advisory Identifier: GHSA-hgfg-j9pg-43xw
CVSS 5.8
CWE-863
Published
Advisory Summary

CVE-2026-72788 is a MODERATE (CVSS 5.8) siyuan discloses an administrator's open vulnerability (CWE-863: Incorrect Authorization) affecting Github.com/siyuan note/siyuan/kernel libraries in the Go ecosystem. The issue involves siyuan discloses an administrator's open documents and search terms to anonymous readers. Remediation is available by upgrading affected packages to version 0.0.0-20260812083335-251596fc0de2.

CVE-2026-72788 at a Glance

CVE Identifier CVE-2026-72788
GHSA Identifier GHSA-hgfg-j9pg-43xw
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-863: Incorrect Authorization
Affected Product Github.com/siyuan note/siyuan/kernel
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.8

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-72788

To remediate this vulnerability, upgrade all affected Github.com/siyuan note/siyuan/kernel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/siyuan-note/siyuan/kernel fixed: 0.0.0-20260812083335-251596fc0de2
Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260812083335-251596fc0de2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/siyuan-note/siyuan/kernel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-72788, inspect your project dependencies for Github.com/siyuan note/siyuan/kernel:

inspect dependencies for github.com/siyuan-note/siyuan/kernel

Analyze the terminal output to locate any version of Github.com/siyuan note/siyuan/kernel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20260812083335-251596fc0de2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Github.com/siyuan note/siyuan/kernel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary `/api/system/getConf` serves `Conf.UILayout` to publish readers after passing it through `FilterConfByPublishIgnore`, whose only function is to filter that layout. The layout is written exclusively by `setUILayout`, which is administrator-gated, so what readers receive is the administrator's own live workspace state, re-saved on every tab open, close and focus change. The filter that is supposed to protect it, `filterLayoutItemByPublishIgnore`, has four separate defects. Together they mean a single unauthenticated POST with no arguments returns the titles and identifiers of the administrator's open password-protected documents, the titles of documents in locked or closed notebooks, their recent search terms and the paths those searches were scoped to, and the paths of private assets they have open. This report concerns `FilterConfByPublishIgnore` and its layout walker. It is distinct from the previously reported `getConf` issues, which concern configuration fields surviving `HideConfSecret`'s blocklist. Restructuring the secret-masking path would not affect this, because `UILayout` is not a secret to be stripped. It is a field intended to be served and filtered. ### Details **Route and writer asymmetry.** `kernel/api/router.go:70` registers `POST /api/system/getConf` with `model.CheckAuth` only, so it is reachable by the publish `RoleReader` token and anonymously when `Publish.Auth.Enable` is `false`. The corresponding writer, `setUILayout` at `kernel/api/router.go:67`, carries `CheckAuth`, `CheckAdminRole` and `CheckReadonly`. Only an administrator can write this state, and any reader can read it. **The filter exists and is intended to work.** `HideConfSecret` never touches `UILayout` (zero matches on both refs). Instead the reader branch runs: ```go if model.IsReadOnlyRoleContext(c) { publishIgnore := model.GetInvisiblePublishAccess(publishAccess) maskedConf = model.FilterConfByPublishIgnore(publishIgnore, maskedConf) } ``` `FilterConfByPublishIgnore` does exactly one thing, which is filter `UILayout`. The intent that readers must not see the administrator's private tabs is therefore already established in the code. The four defects below are failures of that filter, not an argument that it should exist. `filterLayoutItemByPublishIgnore` is byte-identical at `eef105683` and `v3.7.4-alpha.1` and has not changed since `3facc37df` (#16041). --- **Defect 1: the password tier is not checked.** `GetPathPasswordByPublishAccess` and `CheckPublishAuthCookie` appear zero times in the walker. Of the five access levels defined in `publishAccess.ts`, only the protected level is `{visible: true, password: ...}`. A password-protected document therefore never matches the invisible list, and there is no password check to catch it afterwards. Its tab survives intact, carrying `title` (the document title), `docIcon`, `notebookId`, `rootId` and `blockId`. To be precise about scope: the forbidden level sets `visible: false`, so forbidden documents are correctly filtered. The leak is specific to the password tier. This is the same class of defect as the recently fixed tag-label filter, on a different function that the tag fix does not touch. **Defect 2: fail-open on an unresolvable document.** The walker does: ```go bt := treenode.GetBlockTree(rootId) if bt == nil { return } ``` and the tab is retained. Compare `CheckBlockIdAccessableByPublishAccess`, which fails closed on the same condition. A `rootId` is unresolvable when its notebook is a locked encrypted notebook or a closed notebook, which are precisely the notebooks a reader must not learn about. Their tab titles pass through. This survives the recent change that appends encrypted boxes to the invisible and disable ignore lists, because that change only takes effect once `bt` resolves. The nil branch returns before any ignore list is consulted. **Defect 3: non-editor tabs are never inspected.** The walker examines one key, `children["rootId"]`. Editor tabs and Backlink/Graph tabs carry it. Other tab types do not, and pass through entirely unexamined: - `Asset{path, page}` discloses the path of a private PDF or other asset the administrator has open. - `Outline{blockId}` discloses a block identifier. - `Search{config}` discloses `k` (the search text), `r` (replace text), `name`, `hPath` (a human-readable list of paths) and `idPath` (the notebook and document identifiers the search was scoped to). - `Custom{customModelData}` discloses arbitrary plugin state. The `Search` case is the sharpest, because it discloses what the administrator was looking for and where, in their own words. Search text frequently contains the exact terms a private document is about. **Defect 4: the docks are not filtered.** `IUiLayout` is `{layout, left, right, bottom, hideDock}` and the walker enters only `["layout"]`. Dock entries carry type, size and localized titles, so this is low value on its own, noted for completeness rather than as part of the impact claim. ### Proof of Concept Precondition: publish mode enabled (default port 6808), anonymous when `Publish.Auth.Enable` is `false`, otherwise any publish reader account. An administrator with the desktop client open, having at some point opened a password-protected document, a document in a locked or closed notebook, an asset, and run a search. ``` POST http://127.0.0.1:6808/api/system/getConf {} → 200. conf.uiLayout.layout contains, for the administrator's session: - Editor tabs for password-protected documents, with title, docIcon, notebookId, rootId and blockId intact - Editor tabs whose rootId does not resolve, retained with their titles, corresponding to locked encrypted or closed notebooks - Asset tabs carrying private asset paths - Search tabs carrying the search text, replace text, hPath and idPath ``` No arguments and no authentication are required. Repeating the request after the administrator opens or closes a tab returns updated state, since `setUILayout` persists on every such event. ### Impact An anonymous reader in publish mode, or any publish `RoleReader`, receives a live view of the administrator's working session. The disclosed material includes the titles and identifiers of documents the administrator protected with a publish password, the titles of documents in notebooks that are locked or closed and therefore should not be known to exist, the administrator's search terms together with the human-readable paths those searches covered, and the filesystem paths of private assets. Titles and search terms are author-written free text and routinely describe the subject matter of the documents they refer to. Because the layout is re-persisted on every tab event, repeated polling yields a running record of what the administrator is working on. Confidentiality only, with no integrity or availability impact. ### Suggested fix Four changes, corresponding to the four defects: 1. Replace the invisible-only check with `checkBlockTreeAccessableByPublishAccess`, so the password tier is honoured. 2. Make the `bt == nil` branch fail closed, matching `CheckBlockIdAccessableByPublishAccess`. 3. Drop or scrub `Asset`, `Outline`, `Search` and `Custom` instances rather than passing through anything without a `rootId`. 4. Walk `left`, `right` and `bottom` in addition to `layout`. The simpler and more robust option is to stop serving the administrator's layout to readers at all, and return a minimal default layout instead. Readers have no legitimate use for the administrator's tab arrangement, and a filter that must correctly classify every present and future tab type is a standing source of this class of defect. Defect 3 in particular will recur every time a new tab type is added.

CVE-2026-72788 Affected Github.com/siyuan note/siyuan/kernel Versions

1 component(s)
Fixed Versions:
0.0.0-20260812083335-251596fc0de2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/siyuan-note/siyuan/kernel
Go
< 0.0.0-20260812083335-251596fc0de2
0.0.0-20260812083335-251596fc0de2

References

Frequently Asked Questions

What is CVE-2026-72788?
CVE-2026-72788 is a security vulnerability in Github.com/siyuan note/siyuan/kernel involving SiYuan discloses an administrator's open documents and search terms to anonymous readers under CWE-863: Incorrect Authorization.
Which Github.com/siyuan note/siyuan/kernel versions are affected?
Affected versions include releases prior to 0.0.0-20260812083335-251596fc0de2 across affected packages: github.com/siyuan-note/siyuan/kernel.
What version fixes CVE-2026-72788?
Upgrading to 0.0.0-20260812083335-251596fc0de2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/siyuan-note/siyuan/kernel affected?
Yes, github.com/siyuan-note/siyuan/kernel is affected in releases prior to 0.0.0-20260812083335-251596fc0de2. Upgrade your dependency to 0.0.0-20260812083335-251596fc0de2 or later.
What is the CVSS score of CVE-2026-72788?
CVE-2026-72788 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N.
What CWE is associated with CVE-2026-72788?
CVE-2026-72788 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Go dependencies for CVE-2026-72788?
Run the dependency tree command: 'inspect dependencies for github.com/siyuan-note/siyuan/kernel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hgfg-j9pg-43xw",
  "modified" : "2026-10-01T14:39:32Z",
  "published" : "2026-10-01T14:39:32Z",
  "aliases" : [ "CVE-2026-72788" ],
  "summary" : "SiYuan discloses an administrator's open documents and search terms to anonymous readers",
  "details" : "### Summary\n\n`/api/system/getConf` serves `Conf.UILayout` to publish readers after passing it through `FilterConfByPublishIgnore`, whose only function is to filter that layout. The layout is written exclusively by `setUILayout`, which is administrator-gated, so what readers receive is the administrator's own live workspace state, re-saved on every tab open, close and focus change.\n\nThe filter that is supposed to protect it, `filterLayoutItemByPublishIgnore`, has four separate defects. Together they mean a single unauthenticated POST with no arguments returns the titles and identifiers of the administrator's open password-protected documents, the titles of documents in locked or closed notebooks, their recent search terms and the paths those searches were scoped to, and the paths of private assets they have open.\n\nThis report concerns `FilterConfByPublishIgnore` and its layout walker. It is distinct from the previously reported `getConf` issues, which concern configuration fields surviving `HideConfSecret`'s blocklist. Restructuring the secret-masking path would not affect this, because `UILayout` is not a secret to be stripped. It is a field intended to be served and filtered.\n\n### Details\n\n**Route and writer asymmetry.** `kernel/api/router.go:70` registers `POST /api/system/getConf` with `model.CheckAuth` only, so it is reachable by the publish `RoleReader` token and anonymously when `Publish.Auth.Enable` is `false`. The corresponding writer, `setUILayout` at `kernel/api/router.go:67`, carries `CheckAuth`, `CheckAdminRole` and `CheckReadonly`. Only an administrator can write this state, and any reader can read it.\n\n**The filter exists and is intended to work.** `HideConfSecret` never touches `UILayout` (zero matches on both refs). Instead the reader branch runs:\n\n```go\nif model.IsReadOnlyRoleContext(c) {\n    publishIgnore := model.GetInvisiblePublishAccess(publishAccess)\n    maskedConf = model.FilterConfByPublishIgnore(publishIgnore, maskedConf)\n}\n```\n\n`FilterConfByPublishIgnore` does exactly one thing, which is filter `UILayout`. The intent that readers must not see the administrator's private tabs is therefore already established in the code. The four defects below are failures of that filter, not an argument that it should exist.\n\n`filterLayoutItemByPublishIgnore` is byte-identical at `eef105683` and `v3.7.4-alpha.1` and has not changed since `3facc37df` (#16041).\n\n---\n\n**Defect 1: the password tier is not checked.** `GetPathPasswordByPublishAccess` and `CheckPublishAuthCookie` appear zero times in the walker. Of the five access levels defined in `publishAccess.ts`, only the protected level is `{visible: true, password: ...}`. A password-protected document therefore never matches the invisible list, and there is no password check to catch it afterwards. Its tab survives intact, carrying `title` (the document title), `docIcon`, `notebookId`, `rootId` and `blockId`.\n\nTo be precise about scope: the forbidden level sets `visible: false`, so forbidden documents are correctly filtered. The leak is specific to the password tier.\n\nThis is the same class of defect as the recently fixed tag-label filter, on a different function that the tag fix does not touch.\n\n**Defect 2: fail-open on an unresolvable document.** The walker does:\n\n```go\nbt := treenode.GetBlockTree(rootId)\nif bt == nil {\n    return\n}\n```\n\nand the tab is retained. Compare `CheckBlockIdAccessableByPublishAccess`, which fails closed on the same condition. A `rootId` is unresolvable when its notebook is a locked encrypted notebook or a closed notebook, which are precisely the notebooks a reader must not learn about. Their tab titles pass through.\n\nThis survives the recent change that appends encrypted boxes to the invisible and disable ignore lists, because that change only takes effect once `bt` resolves. The nil branch returns before any ignore list is consulted.\n\n**Defect 3: non-editor tabs are never inspected.** The walker examines one key, `children[\"rootId\"]`. Editor tabs and Backlink/Graph tabs carry it. Other tab types do not, and pass through entirely unexamined:\n\n- `Asset{path, page}` discloses the path of a private PDF or other asset the administrator has open.\n- `Outline{blockId}` discloses a block identifier.\n- `Search{config}` discloses `k` (the search text), `r` (replace text), `name`, `hPath` (a human-readable list of paths) and `idPath` (the notebook and document identifiers the search was scoped to).\n- `Custom{customModelData}` discloses arbitrary plugin state.\n\nThe `Search` case is the sharpest, because it discloses what the administrator was looking for and where, in their own words. Search text frequently contains the exact terms a private document is about.\n\n**Defect 4: the docks are not filtered.** `IUiLayout` is `{layout, left, right, bottom, hideDock}` and the walker enters only `[\"layout\"]`. Dock entries carry type, size and localized titles, so this is low value on its own, noted for completeness rather than as part of the impact claim.\n\n### Proof of Concept\n\nPrecondition: publish mode enabled (default port 6808), anonymous when `Publish.Auth.Enable` is `false`, otherwise any publish reader account. An administrator with the desktop client open, having at some point opened a password-protected document, a document in a locked or closed notebook, an asset, and run a search.\n\n```\nPOST http://127.0.0.1:6808/api/system/getConf\n{}\n\n→ 200. conf.uiLayout.layout contains, for the administrator's session:\n     - Editor tabs for password-protected documents, with title, docIcon,\n       notebookId, rootId and blockId intact\n     - Editor tabs whose rootId does not resolve, retained with their titles,\n       corresponding to locked encrypted or closed notebooks\n     - Asset tabs carrying private asset paths\n     - Search tabs carrying the search text, replace text, hPath and idPath\n```\n\nNo arguments and no authentication are required. Repeating the request after the administrator opens or closes a tab returns updated state, since `setUILayout` persists on every such event.\n\n### Impact\n\nAn anonymous reader in publish mode, or any publish `RoleReader`, receives a live view of the administrator's working session. The disclosed material includes the titles and identifiers of documents the administrator protected with a publish password, the titles of documents in notebooks that are locked or closed and therefore should not be known to exist, the administrator's search terms together with the human-readable paths those searches covered, and the filesystem paths of private assets.\n\nTitles and search terms are author-written free text and routinely describe the subject matter of the documents they refer to. Because the layout is re-persisted on every tab event, repeated polling yields a running record of what the administrator is working on. Confidentiality only, with no integrity or availability impact.\n\n### Suggested fix\n\nFour changes, corresponding to the four defects:\n\n1. Replace the invisible-only check with `checkBlockTreeAccessableByPublishAccess`, so the password tier is honoured.\n2. Make the `bt == nil` branch fail closed, matching `CheckBlockIdAccessableByPublishAccess`.\n3. Drop or scrub `Asset`, `Outline`, `Search` and `Custom` instances rather than passing through anything without a `rootId`.\n4. Walk `left`, `right` and `bottom` in addition to `layout`.\n\nThe simpler and more robust option is to stop serving the administrator's layout to readers at all, and return a minimal default layout instead. Readers have no legitimate use for the administrator's tab arrangement, and a filter that must correctly classify every present and future tab type is a standing source of this class of defect. Defect 3 in particular will recur every time a new tab type is added.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/siyuan-note/siyuan/kernel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.0.0-20260812083335-251596fc0de2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/siyuan-note/siyuan/security/advisories/GHSA-hgfg-j9pg-43xw"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-72788"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/siyuan-note/siyuan"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/siyuan-note/siyuan/releases/tag/v3.8.0"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/siyuan-before-information-disclosure-via-uilayout-filter"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-10-01T14:39:32Z",
    "nvd_published_at" : null
  }
}