CVE-2026-65607

Medium

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductGithub.com/siyuan-note/siyuan/kernel
PublishedJul 23, 2026
First seenJul 23, 2026

How to fix

Update
  • github.com/siyuan-note/siyuan/kernel0.0.0-20260510110132-b763d787d1f2 or later

Affected products

ProductAffected versionsFixed in
github.com/siyuan-note/siyuan/kernelGov < 0.0.0-20260510110132-b763d787d1f20.0.0-20260510110132-b763d787d1f2

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.