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.