{"id":"CVE-2026-73607","aliases":["EUVD-2026-57811","GHSA-53fp-9jmv-227g","GHSA-v372-phq5-6mx6","GO-2026-6624"],"status":"published","title":"SiYuan before v3.7.4 Information Disclosure via getOutlineStorage","description":"SiYuan versions before v3.7.4 contain an information disclosure vulnerability in the /api/storage/getOutlineStorage endpoint that performs no authorization checks. Attackers can retrieve outline state including heading identifiers for any document by supplying its identifier, even for documents forbidden to the requester.","severity":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00252,"percentile":0.16758,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-862"],"published":"2026-08-13T11:28:12Z","modified":"2026-10-24T15:10:00Z","fixes":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","fixed_in":["0.0.0-20260812083335-251596fc0de2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.0.0-20260812083335-251596fc0de2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20260812083335-251596fc0de2"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20260812083335-251596fc0de2"}]}]}],"products":[{"vendor":"siyuan-note","product":"siyuan"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-53fp-9jmv-227g","tags":["vendor-advisory","exploit","web","advisory"]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-information-disclosure-via-getoutlinestorage","tags":["third-party-advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73607","tags":["advisory"]},{"url":"https://github.com/siyuan-note/siyuan/releases/tag/v3.8.0","tags":["web"]},{"url":"https://github.com/advisories/GHSA-53fp-9jmv-227g"},{"url":"https://github.com/advisories/GHSA-v372-phq5-6mx6"},{"url":"https://github.com/siyuan-note/siyuan","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-73607","title":"SiYuan before v3.7.4 Information Disclosure via getOutlineStorage","description":"SiYuan versions before v3.7.4 contain an information disclosure vulnerability in the /api/storage/getOutlineStorage endpoint that performs no authorization checks. Attackers can retrieve outline state including heading identifiers for any document by supplying its identifier, even for documents forbidden to the requester.","status":"published","published":"2026-08-13T11:28:12.47Z","modified":"2026-08-14T22:28:54.246Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","level":"medium","assessor":"cna"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-862"],"updated_at":"2026-11-02T13:43:33.766176Z"}],"euvd":[{"id":"EUVD-2026-57811","description":"SiYuan versions before v3.7.4 contain an information disclosure vulnerability in the /api/storage/getOutlineStorage endpoint that performs no authorization checks. Attackers can retrieve outline state including heading identifiers for any document by supplying its identifier, even for documents forbidden to the requester.","status":"published","published":"2026-08-13T11:28:12Z","modified":"2026-08-14T22:28:54Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","level":"medium"}],"updated_at":"2026-11-02T18:01:53.008072Z"}],"ghsa":[{"id":"GHSA-53fp-9jmv-227g","title":"SiYuan: Outline state for any document, including documents forbidden to readers, is returned by /api/storage/getOutlineStorage with no access check","description":"### Summary\n\n`/api/storage/getOutlineStorage` is registered with `CheckAuth` only and performs no authorization of any kind. Given a document identifier it returns that document's stored outline state, regardless of the document's publish tier.\n\nThe two write endpoints for the same data, `setOutlineStorage` and `removeOutlineStorage`, both carry `CheckAdminRole` and `CheckReadonly`. Only the read path is unguarded.\n\n### Details\n\n**Routes.** `kernel/api/router.go:103` on master, `:108` on the development branch:\n\n```go\nginServer.Handle(\"POST\", \"/api/storage/getOutlineStorage\",    model.CheckAuth, getOutlineStorage)\nginServer.Handle(\"POST\", \"/api/storage/setOutlineStorage\",    model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setOutlineStorage)\nginServer.Handle(\"POST\", \"/api/storage/removeOutlineStorage\", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeOutlineStorage)\n```\n\n**Handler.** `kernel/api/storage.go:466` on the development branch, `:469` on master, identical. It binds `docID` and calls `model.GetOutlineStorage(docID)`, which iterates the stored outline documents and returns the entry whose `DocID` matches. There is no filter function on this path at all: no `*gin.Context`, no publish-access check, no password check, no visibility check. The caller supplies the identifier and receives the payload.\n\n**What is stored.** `type OutlineDoc { DocID string; Data map[string]any }`. The client writes it from `app/src/layout/dock/Outline.ts:742`:\n\n```js\nfetchPost(\"/api/storage/setOutlineStorage\", {\n    docID: this.blockId,\n    val: { expandIds: this.tree.getExpandIds() }\n});\n```\n\nSo the payload is the set of heading block identifiers the administrator has expanded in the outline pane for that document. Secondarily, an empty result versus a populated one indicates whether the administrator has ever worked with that document's outline.\n\n**Not covered by the local-storage fix.** Commit `4daee87d4` addressed `getLocalStorage`, `getLocalStorageVal`, `getLocalStorageVals` and `FilterLocalStorageByPublishAccess`. The word \"outline\" does not appear in that diff. That filter was under-inclusive; this endpoint has no filter to be under-inclusive.\n\n### Proof of Concept\n\nKernel 3.7.2, publish mode on port 6808, `Publish.Auth.Enable` false, anonymous client with no auth header.\n\nAn administrator wrote outline state through the authenticated port:\n\n```\nPOST /api/storage/setOutlineStorage\n{\"docID\":\"\u003cdoc id\u003e\",\"val\":{\"openIDs\":[\"\u003cheading id\u003e\",\"\u003cheading id\u003e\"]}}\n→ {\"code\":0,\"msg\":\"\",\"data\":null}\n```\n\nThe same value read back anonymously:\n\n```\nPOST http://127.0.0.1:6808/api/storage/getOutlineStorage\n{\"docID\":\"\u003cdoc id\u003e\"}\n→ {\"code\":0,\"msg\":\"\",\"data\":{\"openIDs\":[\"\u003cheading id\u003e\",\"\u003cheading id\u003e\"]}}\n```\n\nWith that document set to the forbidden tier, on the same anonymous session:\n\n| Endpoint | Result |\n|---|---|\n| `getDoc` (control) | `protyle-password--forbidden` placeholder, content withheld |\n| `getOutlineStorage` | full payload returned |\n\nThe control establishes that the session is correctly denied the document itself.\n\n### Impact\n\nAn anonymous reader in publish mode, or any publish `RoleReader`, retrieves the administrator's outline state for any document whose identifier they hold, including documents in the forbidden tier that the publish filters otherwise withhold entirely. The disclosed values are heading block identifiers, usable as input to other endpoints, and the presence or absence of an entry indicates whether the administrator has worked with that document.\n\nNo document text is returned. Confidentiality only.\n\n### Suggested fix\n\nGate the read path as the write paths already are. Either add `CheckAdminRole` and `CheckReadonly` at the route, matching `setOutlineStorage` and `removeOutlineStorage`, or pass `*gin.Context` into `GetOutlineStorage` and apply `checkBlockTreeAccessableByPublishAccess` against the requested `docID` before returning anything.","status":"published","published":"2026-10-01T15:44:46Z","modified":"2026-10-01T15:44:47Z","cvss":[{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-862"],"updated_at":"2026-11-02T14:41:24.739884Z"},{"id":"GHSA-v372-phq5-6mx6","title":"Duplicate Advisory: Outline state for any document, including documents forbidden to readers, is returned by /api/storage/getOutlineStorage with no access check","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-53fp-9jmv-227g. This link is maintained to preserve external references.\n\n## Original Description\nSiYuan versions before v3.7.4 contain an information disclosure vulnerability in the /api/storage/getOutlineStorage endpoint that performs no authorization checks. Attackers can retrieve outline state including heading identifiers for any document by supplying its identifier, even for documents forbidden to the requester.","status":"withdrawn","published":"2026-08-13T12:31:10Z","modified":"2026-10-01T15:44:25Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-862"],"updated_at":"2026-11-02T14:41:24.739884Z"}],"nvd":[{"id":"CVE-2026-73607","description":"SiYuan versions before v3.7.4 contain an information disclosure vulnerability in the /api/storage/getOutlineStorage endpoint that performs no authorization checks. Attackers can retrieve outline state including heading identifiers for any document by supplying its identifier, even for documents forbidden to the requester.","status":"published","published":"2026-08-13T12:17:25.183Z","modified":"2026-10-24T15:10:00.19Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","level":"medium","assessor":"secondary"}],"cwes":["CWE-862"],"updated_at":"2026-11-02T14:12:37.217486Z"}],"osv":[{"id":"GHSA-53fp-9jmv-227g","title":"SiYuan: Outline state for any document, including documents forbidden to readers, is returned by /api/storage/getOutlineStorage with no access check","description":"### Summary\n\n`/api/storage/getOutlineStorage` is registered with `CheckAuth` only and performs no authorization of any kind. Given a document identifier it returns that document's stored outline state, regardless of the document's publish tier.\n\nThe two write endpoints for the same data, `setOutlineStorage` and `removeOutlineStorage`, both carry `CheckAdminRole` and `CheckReadonly`. Only the read path is unguarded.\n\n### Details\n\n**Routes.** `kernel/api/router.go:103` on master, `:108` on the development branch:\n\n```go\nginServer.Handle(\"POST\", \"/api/storage/getOutlineStorage\",    model.CheckAuth, getOutlineStorage)\nginServer.Handle(\"POST\", \"/api/storage/setOutlineStorage\",    model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, setOutlineStorage)\nginServer.Handle(\"POST\", \"/api/storage/removeOutlineStorage\", model.CheckAuth, model.CheckAdminRole, model.CheckReadonly, removeOutlineStorage)\n```\n\n**Handler.** `kernel/api/storage.go:466` on the development branch, `:469` on master, identical. It binds `docID` and calls `model.GetOutlineStorage(docID)`, which iterates the stored outline documents and returns the entry whose `DocID` matches. There is no filter function on this path at all: no `*gin.Context`, no publish-access check, no password check, no visibility check. The caller supplies the identifier and receives the payload.\n\n**What is stored.** `type OutlineDoc { DocID string; Data map[string]any }`. The client writes it from `app/src/layout/dock/Outline.ts:742`:\n\n```js\nfetchPost(\"/api/storage/setOutlineStorage\", {\n    docID: this.blockId,\n    val: { expandIds: this.tree.getExpandIds() }\n});\n```\n\nSo the payload is the set of heading block identifiers the administrator has expanded in the outline pane for that document. Secondarily, an empty result versus a populated one indicates whether the administrator has ever worked with that document's outline.\n\n**Not covered by the local-storage fix.** Commit `4daee87d4` addressed `getLocalStorage`, `getLocalStorageVal`, `getLocalStorageVals` and `FilterLocalStorageByPublishAccess`. The word \"outline\" does not appear in that diff. That filter was under-inclusive; this endpoint has no filter to be under-inclusive.\n\n### Proof of Concept\n\nKernel 3.7.2, publish mode on port 6808, `Publish.Auth.Enable` false, anonymous client with no auth header.\n\nAn administrator wrote outline state through the authenticated port:\n\n```\nPOST /api/storage/setOutlineStorage\n{\"docID\":\"\u003cdoc id\u003e\",\"val\":{\"openIDs\":[\"\u003cheading id\u003e\",\"\u003cheading id\u003e\"]}}\n→ {\"code\":0,\"msg\":\"\",\"data\":null}\n```\n\nThe same value read back anonymously:\n\n```\nPOST http://127.0.0.1:6808/api/storage/getOutlineStorage\n{\"docID\":\"\u003cdoc id\u003e\"}\n→ {\"code\":0,\"msg\":\"\",\"data\":{\"openIDs\":[\"\u003cheading id\u003e\",\"\u003cheading id\u003e\"]}}\n```\n\nWith that document set to the forbidden tier, on the same anonymous session:\n\n| Endpoint | Result |\n|---|---|\n| `getDoc` (control) | `protyle-password--forbidden` placeholder, content withheld |\n| `getOutlineStorage` | full payload returned |\n\nThe control establishes that the session is correctly denied the document itself.\n\n### Impact\n\nAn anonymous reader in publish mode, or any publish `RoleReader`, retrieves the administrator's outline state for any document whose identifier they hold, including documents in the forbidden tier that the publish filters otherwise withhold entirely. The disclosed values are heading block identifiers, usable as input to other endpoints, and the presence or absence of an entry indicates whether the administrator has worked with that document.\n\nNo document text is returned. Confidentiality only.\n\n### Suggested fix\n\nGate the read path as the write paths already are. Either add `CheckAdminRole` and `CheckReadonly` at the route, matching `setOutlineStorage` and `removeOutlineStorage`, or pass `*gin.Context` into `GetOutlineStorage` and apply `checkBlockTreeAccessableByPublishAccess` against the requested `docID` before returning anything.","status":"published","published":"2026-10-01T15:44:46Z","modified":"2026-10-07T17:55:52.092112335Z","cvss":[{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-862"],"updated_at":"2026-11-02T15:46:37.864461Z"},{"id":"GHSA-v372-phq5-6mx6","title":"Duplicate Advisory: Outline state for any document, including documents forbidden to readers, is returned by /api/storage/getOutlineStorage with no access check","description":"## Duplicate Advisory\n\nThis advisory has been withdrawn because it is a duplicate of GHSA-53fp-9jmv-227g. This link is maintained to preserve external references.\n\n## Original Description\nSiYuan versions before v3.7.4 contain an information disclosure vulnerability in the /api/storage/getOutlineStorage endpoint that performs no authorization checks. Attackers can retrieve outline state including heading identifiers for any document by supplying its identifier, even for documents forbidden to the requester.","status":"withdrawn","published":"2026-08-13T12:31:10Z","modified":"2026-10-01T16:00:04.170560055Z","cvss":[{"version":"3.1","score":5.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","level":"medium"},{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"}],"cwes":["CWE-862"],"updated_at":"2026-11-02T15:46:56.639206Z"},{"id":"GO-2026-6624","title":"SiYuan: Outline state for any document, including documents forbidden to readers, is returned by /api/storage/getOutlineStorage with no access check in github.com/siyuan-note/siyuan/kernel","description":"SiYuan: Outline state for any document, including documents forbidden to readers, is returned by /api/storage/getOutlineStorage with no access check in github.com/siyuan-note/siyuan/kernel","status":"published","published":"2026-10-07T14:09:59Z","modified":"2026-10-07T17:45:13.476583334Z","updated_at":"2026-11-02T15:47:03.11707Z"}]}}
