SiYuan
SiYuan: Authenticated path traversal in /snippets/ static handler (serveSnippets) leaks conf/conf.json secrets and siyuan.db
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.7high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
siyuan-note siyuan
- < 3.7.1
Fixed in 3.7.1
Mitigation
Upgrade siyuan to 3.7.1 or later.
References
- Vendor advisory github.com/siyuan-note/siyuan/security/advisor…
- Patch github.com/siyuan-note/siyuan/commit/68cc0f537…
- Release notes github.com/siyuan-note/siyuan/releases/tag/v3.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.