{"id":"CVE-2026-65607","aliases":["GHSA-gw25-m53r-qh88"],"url":"https://o3.security/vulnerability/CVE-2026-65607","summary":"SiYuan before v3.7.2 Path Traversal via /export/temp/","details":"SiYuan before v3.7.2 contains a path traversal vulnerability in the /export/temp/ short-circuit branch of the serveExport handler (kernel/server/serve.go). Unlike the main export branch, this branch joins the raw, percent-decoded request path with util.TempDir and serves the file without the IsSubPath or IsSensitivePath checks added in the earlier export-disclosure hardening (GHSA-6865-qjcf-286f). An authenticated attacker can send percent-encoded traversal sequences (e.g. /export/temp/%2e%2e/.../etc/passwd, where %2e%2e is decoded to '..') to read arbitrary files outside TempDir, including /etc/passwd, SSH keys (~/.ssh/*), and SiYuan workspace *.db and *.log files, bypassing the sensitive-file protection.","published":"2026-07-23T11:42:14.890Z","modified":"2026-08-12T03:51:20.060173686Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","fixedVersion":"0.0.0-20260510110132-b763d787d1f2"}],"fix":{"url":"https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7","label":"siyuan-note/siyuan@bb481e1"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65607.json"},{"type":"ADVISORY","url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gw25-m53r-qh88"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65607"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/siyuan-before-path-traversal-via-export-temp"},{"type":"FIX","url":"https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:20.060173686Z"}}