{"id":"CVE-2026-72799","aliases":["CVE-2026-72799","GHSA-5w7r-f4cg-rqq7","GO-2026-6412"],"related":[],"kind":"vulnerability","state":"published","title":"SiYuan before v3.7.4 Information Disclosure via Path Resolution","summary":"SiYuan before v3.7.4 (affected <=v3.7.2) fails to enforce publish-access filters on five filetree path-resolution endpoints (getFullHPathByID, getHPathByID, getPathByID, getIDsByHPath, and getHPathByPath). In publish mode, when Publish.Auth.Enable is false, an unauthenticated (anonymous) reader — or any publish reader token — can call these endpoints to enumerate the complete private document tree, mapping notebook names, folder hierarchies, and document titles, and resolving title paths to document IDs, including for documents marked hidden, password-protected, or publish-forbidden.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"SiYuan before v3.7.4 (affected <=v3.7.2) fails to enforce publish-access filters on five filetree path-resolution endpoints (getFullHPathByID, getHPathByID, getPathByID, getIDsByHPath, and getHPathByPath). In publish mode, when Publish.Auth.Enable is false, an unauthenticated (anonymous) reader — or any publish reader token — can call these endpoints to enumerate the complete private document tree, mapping notebook names, folder hierarchies, and document titles, and resolving title paths to document IDs, including for documents marked hidden, password-protected, or publish-forbidden.","source":"cvelist"},{"lang":"en","text":"**CVE:** This vulnerability corresponds to [CVE-2026-72799](https://nvd.nist.gov/vuln/detail/CVE-2026-72799).\n\n### Summary\n\nFive filetree endpoints resolve arbitrary document IDs and paths with no publish-access check of any kind. All are `CheckAuth`-only, so they are reachable by the publish `RoleReader` token and by the anonymous account when `Publish.Auth.Enable` is `false`. An anonymous reader can map the complete private document tree every notebook, folder, and document title, and which notebook holds each document for documents marked hidden, password-protected, or publish-forbidden, and can resolve titles to document IDs.\n\n### Details\n\nNone of the following handlers invokes `IsReadOnlyRoleContext`, `CheckBlockIdAccessableByPublishAccess`, or `CheckPathAccessableByPublishIgnore`:\n\n| Endpoint | Returns | Discloses |\n|---|---|---|\n| `getFullHPathByID` (router 159) | `GetFullHPathByID(id)` | full title path including notebook, e.g. `/MySecretNotebook/Confidential/Q3 Layoffs Plan` |\n| `getHPathByID` (router 157) | `GetHPathByID(id)` | document-relative title path |\n| `getPathByID` (router 158) | `{path, notebook}` | which notebook a document lives in, plus its `.sy` storage path |\n| `getIDsByHPath` (router 160) | `GetIDsByHPath(path, notebook)` | title-path → document-ID enumeration |\n| `getHPathByPath` (router 155) | HPath from a storage path | title path from a storage path |\n\nEach accepts an arbitrary ID or HPath and resolves it identically for hidden, publish-forbidden, and password-protected documents.\n\nThis enables two operations for an unauthenticated caller:\n1. **Map the private document tree**: `getFullHPathByID` and `getPathByID` yield every notebook/folder/document title and its containing notebook.\n2. **Resolve titles to IDs**: `getIDsByHPath` converts a known or guessed title path into document IDs, which are the required input for other block-read endpoints.\n\nDocument titles and HPaths are precisely the block metadata that the project's block-metadata restriction (commit `ffde3b21e`) set out to protect; that change gated `getBlockInfo`, `getDocInfo`, and `getDocsInfo` but left this entire path-resolution family open.\n\n**Guarded-sibling asymmetry.** `getRecentDocs` (`FilterRecentDocsByPublishAccess`), `getCriteria` (`FilterCriteriaByPublishAccess`), and `getLocalStorage` (`FilterLocalStorageByPublishAccess`) all filter document references for reader sessions. The codebase clearly publish-scopes reader-visible metadata elsewhere; these five endpoints do not.\n\nVerified at `origin/master` (`eef105683`): all five handler bodies contain no publish-access call; the storage-family siblings contain their filters; all five routes are registered `CheckAuth` without `CheckAdminRole`.\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. A document exists in a notebook marked publish-forbidden or password-protected.\n\n**Resolve a private document's full title path:**\n```\nPOST http://127.0.0.1:6808/api/filetree/getFullHPathByID\n{\"id\":\"<DOC_ID>\"}\n→ /MySecretNotebook/Confidential/Q3 Layoffs Plan\n```\n\n**Identify its notebook and storage path:**\n```\nPOST http://127.0.0.1:6808/api/filetree/getPathByID\n{\"id\":\"<DOC_ID>\"}\n→ {\"path\":\"/....sy\",\"notebook\":\"<BOX_ID>\"}\n```\n\n**Enumerate IDs from a title path:**\n```\nPOST http://127.0.0.1:6808/api/filetree/getIDsByHPath\n{\"path\":\"/Confidential\",\"notebook\":\"<BOX_ID>\"}\n→ document IDs under a folder the reader cannot otherwise access\n```\n\nEach returns data for documents excluded from publishing; no password or membership is required.\n\n### Impact\n\nAn anonymous reader (publish mode with auth disabled) or any publish `RoleReader` can enumerate the complete private document structure: notebook names, folder hierarchy, and document titles for content the administrator marked hidden, password-protected, or excluded from publishing. Document titles alone are frequently sensitive (project names, personnel actions, client identifiers). The ID-resolution direction additionally supplies valid document IDs, removing the \"attacker must know an ID\" precondition for other block-read endpoints. Confidentiality-only.\n\n### Suggested fix\n\nFor `IsReadOnlyRoleContext` sessions, gate each of the five handlers with `CheckBlockIdAccessableByPublishAccess` (or restrict resolution to publish-visible documents), mirroring the treatment already applied in `getRecentDocs`, `getCriteria`, and `getLocalStorage`.","format":"markdown","source":"ghsa"},{"lang":"en","text":"SiYuan: Missing publish-access filter on the HPath/path-resolution endpoints discloses the private document tree to anonymous readers in github.com/siyuan-note/siyuan/kernel","format":"markdown","source":"go"},{"lang":"es","text":"SiYuan antes de la v3.7.4 (afectado menor o igual a v3.7.2) no aplica filtros de acceso de publicación en cinco puntos finales de resolución de rutas del árbol de archivos (getFullHPathByID, getHPathByID, getPathByID, getIDsByHPath y getHPathByPath). En modo de publicación, cuando Publish.Auth.Enable es falso, un lector no autenticado (anónimo) - o cualquier token de lector de publicación - puede llamar a estos puntos finales para enumerar el árbol de documentos privado completo, mapeando nombres de cuadernos, jerarquías de carpetas y títulos de documentos, y resolviendo rutas de títulos a ID de documentos, incluso para documentos marcados como ocultos, protegidos con contraseña o con publicación prohibida.","source":"nvd"}],"published":"2026-08-12T19:07:45.594Z","modified":"2026-10-23T22:10:00.160Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":6.9,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"3.7.4","status":"affected"},{"type":"semver","version":"3.7.4","status":"unaffected"}],"vendor":"siyuan-note","product":"siyuan","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260724112156-5bae0926b896"}],"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20260724112156-5bae0926b896"}],"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","source":"go"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-5w7r-f4cg-rqq7","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://www.vulncheck.com/advisories/siyuan-before-information-disclosure-via-path-resolution","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72799","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/siyuan-note/siyuan/commit/5bae0926b896eaff0bc5cc6a75d421c2d161a806","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/siyuan-note/siyuan","tags":["package"],"sources":["ghsa"]}],"credits":["Shirshakhtml"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-14T18:30:09.775Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-72799","url":"https://www.cve.org/CVERecord?id=CVE-2026-72799","licence":"CVE Terms of Use","modified":"2026-08-14T20:18:57.384Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5w7r-f4cg-rqq7","url":"https://github.com/advisories/GHSA-5w7r-f4cg-rqq7","licence":"CC-BY-4.0","modified":"2026-09-10T15:25:54.262Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6412","url":"https://pkg.go.dev/vuln/GO-2026-6412","licence":"CC-BY-4.0","modified":"2026-09-10T15:15:13.553Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-72799","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-72799","licence":"Public domain","modified":"2026-10-23T22:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:32.634Z","epss":{"score":0.00325,"percentile":0.1799,"date":"2026-11-30T12:00:22.000Z"}}