github.com/siyuan-note/siyuan/kernel · Kernel: SiYuan: TLS Private Keys Readable via getFile (Incomplete Blocklist)
Affects github.com/siyuan-note/siyuan/kernelSource GCVE Database
Rated by Threat Radar
- Patch
- Available – fixed in 0.0.0-20260819144130-256d73aa7f94
Data as of 5 Oct 2026, 21:27 UTC
What to do
Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260819144130-256d73aa7f94.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/siyuan-note/siyuan/kernel | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available that adds conf/key.pem, conf/ca.key, conf/cert.pem, and conf/ca.crt to the IsForbiddenAbsPath() blocklist to prevent unauthorized access. Users should apply the official fix once available. Until patched, restrict access to the API to trusted users only and avoid exposing the getFile endpoint publicly.
Description
An information disclosure vulnerability in SiYuan kernel allows any authenticated user to retrieve TLS private keys via the /api/file/getFile endpoint due to an incomplete blocklist in the IsForbiddenAbsPath() function. The TLS private key (conf/key.pem) and CA private key (conf/ca.key) are not blocked and can be accessed, potentially compromising encrypted communications and certificate trust. This affects all installations including those where TLS is inactive, as the key files are generated on every boot.
References
- github.com/siyuan-note/siyuan/security/advisories/GHSA-4wwp-f6gw-6qm5 (opens in a new tab)
- github.com/siyuan-note/siyuan/commit/256d73aa7f94aead7ba255b668e32c140af23137 (opens in a new tab)
- github.com/siyuan-note/siyuan (opens in a new tab)
- github.com/siyuan-note/siyuan/releases/tag/v3.8.2 (opens in a new tab)