github.com/siyuan-note/siyuan/kernel · Kernel: SiYuan: /history/*path and /repo/diff/*path potentially exposing historical snapshots of data/.siyuan/publishAccess.json and data/templates/*
Affects github.com/siyuan-note/siyuan/kernelSource GCVE Database
CVSS 4.9 Medium : upgrade to 0.0.0-20260816034002-035bf9a8c311 when convenient.
Data as of 5 Oct 2026, 21:27 UTC
- Patch
- Available – fixed in 0.0.0-20260816034002-035bf9a8c311
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NWhat to do
Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260816034002-035bf9a8c311.
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 to extend the util.IsForbiddenAbsPath() guard to the /history/*path and /repo/diff/*path handlers to prevent serving sensitive historical snapshots. Users should apply the official fix to ensure consistent access control across all file-serving routes. Until patched, administrators should avoid enabling publish mode with plaintext passwords or ensure that historical snapshots do not contain sensitive data. Patch status is confirmed as available; apply the vendor's official fix.
Description
A vulnerability in the SiYuan kernel allows unauthorized access to historical snapshots of sensitive files such as data/.siyuan/publishAccess.json and data/templates/* via the /history/*path and /repo/diff/*path HTTP routes. These routes do not enforce the same access restrictions as live-file endpoints, potentially exposing plaintext publish-mode passwords and template files from prior versions. The issue arises because the new centralized guard util.IsForbiddenAbsPath() is not called in these handlers, leading to missing authorization checks on historical data.
References
- github.com/siyuan-note/siyuan/security/advisories/GHSA-3cm4-ccvw-6xr6 (opens in a new tab)
- github.com/siyuan-note/siyuan/commit/035bf9a8c311c6f8468f2f1054b4d5e1711787e2 (opens in a new tab)
- github.com/siyuan-note/siyuan (opens in a new tab)
- github.com/siyuan-note/siyuan/releases/tag/v3.8.1 (opens in a new tab)