{"id":"CVE-2026-59832","published":"2026-07-09T22:18:15Z","modified":"2026-07-10T14:41:54Z","title":"SiYuan: Authenticated path traversal in /snippets/ static handler (serveSnippets) leaks conf/conf.json secrets and…","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, the /snippets/*filepath route handler serveSnippets in kernel/server/serve.go joins a single-decoded request path with the snippets directory without subpath containment or sensitive-path checks, allowing an authenticated request such as /snippets/%2e%2e/%2e%2e/conf/conf.json to read workspace secrets and the document database. This issue is fixed in versions 3.7.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00465,"percentile":0.41148,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-23","name":"Relative Path Traversal"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-275h-v5h9-vr82","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/siyuan-note/siyuan/commit/68cc0f537dfa4502496dfa794e71835421c25c09","tags":["x_refsource_MISC"]},{"url":"https://github.com/siyuan-note/siyuan/releases/tag/v3.7.1","tags":["x_refsource_MISC"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":8.23},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.7.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-10T14:41:47.607410Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260704035520-68cc0f537dfa"],"patched":["0.0.0-20260704035520-68cc0f537dfa"],"from":["GHSA-275h-v5h9-vr82","GO-2026-6350"],"provenance":"source"}],"summary":{"text":"SiYuan, an open-source personal knowledge management system, contains a path traversal flaw in the serveSnippets handler of its kernel server (kernel/server/serve.go), which serves the /snippets/ static route and fails to keep requested paths within the snippets directory or block access to sensitive files. An attacker with a valid account on the instance can send a crafted request to the snippets route to read files outside that directory, including workspace configuration secrets and the document database.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:39:52Z"},"euvd":{"id":"EUVD-2026-42744","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-siyuan-note-siyuan-cve-2026-23850","children":[{"from":"CVE-2026-59832","to":"CVE-2026-72796","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/server/serve.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/68cc0f537dfa4502496dfa794e71835421c25c09","https://github.com/siyuan-note/siyuan/commit/34be6c0bb0739d5b8e99ecc0cbfb474abb16230d"],"basis":"shared function","functions":["serveSnippets"]}]}],"packageHistory":[{"cve":"CVE-2026-54070","published":"2026-06-24","fixed":"0.0.0-20260628153353-2d5d72223df4","kev":false},{"cve":"CVE-2026-54158","published":"2026-06-24","fixed":"0.0.0-20260628153353-2d5d72223df4","kev":false},{"cve":"CVE-2026-59834","published":"2026-07-09","fixed":"0.0.0-20260704035518-d0f0fe146fb0","kev":false,"link":{"from":"CVE-2026-59834","to":"CVE-2026-59832","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260704035518-d0f0fe146fb0","toFixed":"0.0.0-20260704035520-68cc0f537dfa","daysApart":0}]}},{"cve":"CVE-2026-59832","published":"2026-07-09","fixed":"0.0.0-20260704035520-68cc0f537dfa","kev":false},{"cve":"CVE-2026-66394","published":"2026-07-27","fixed":"0.0.0-20260714095344-f08dee71ba8e","kev":false,"link":{"from":"CVE-2026-59832","to":"CVE-2026-66394","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260704035520-68cc0f537dfa","toFixed":"0.0.0-20260714095344-f08dee71ba8e","daysApart":18},{"kind":"same-code","provenance":"machine","files":["kernel/server/serve.go"],"commits":["https://github.com/siyuan-note/siyuan/commit/68cc0f537dfa4502496dfa794e71835421c25c09","https://github.com/siyuan-note/siyuan/commit/f08dee71ba8e087a395d74f121de11e6a997ef14"],"basis":"shared file"}]}},{"cve":"CVE-2026-69086","published":"2026-08-03","fixed":"0.0.0-20260720151813-0f5a0e7c67b0","kev":false},{"cve":"CVE-2026-69084","published":"2026-08-03","fixed":"0.0.0-20260721002947-23a17d44b5f3","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}