What’s Vulnerable › Vulnerabilities
CVE-2026-65607: SiYuan before v3.7.2 Path Traversal via /export/temp/
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-23 · updated 2026-10-24
- Weakness: CWE-22
Description
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.
Affected products
- siyuan-note siyuan: before 3.7.2 — fixed in 3.7.2
How to fix
Upgrade to a fixed version: siyuan-note siyuan 3.7.2. Check the vendor advisory for mitigations.
References
- https://github.com/siyuan-note/siyuan/commit/bb481e1290c4a34255652ede85a546504505d2a7
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-gw25-m53r-qh88
- https://www.vulncheck.com/advisories/siyuan-before-path-traversal-via-export-temp
Get alerted when CVE-2026-65607 or the next vulnerability affects your stack