Skip to main content
VulnerabilityPublished

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

0

CVSS 4.9 Medium : upgrade to 0.0.0-20260816034002-035bf9a8c311 when convenient.

Data as of 5 Oct 2026, 21:27 UTC

CVSS 3.1 base score
4.9Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

What to do

Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260816034002-035bf9a8c311.

Affected software

ProductAffectedFixed in
Gogithub.com/siyuan-note/siyuan/kernelAffected
  • <0.0.0-20260816034002-035bf9a8c311
Fixed in
  • 0.0.0-20260816034002-035bf9a8c311

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

Community reviews

Loading reviews…