What’s Vulnerable › Vulnerabilities

CVE-2026-82651: SiYuan before v3.8.1 Missing Authorization via /history and /repo/diff

Description

SiYuan before v3.8.1 does not apply the IsForbiddenAbsPath guard (introduced in GHSA-c8r8-95hg-mp34) to the /history/*path and /repo/diff/*path endpoints in kernel/server/serve.go. These routes require admin authentication but construct file paths independently, so an authenticated administrator can retrieve historical snapshots of sensitive files that the guard is meant to block, including data/.siyuan/publishAccess.json (plaintext publish-mode passwords) and files under data/templates/.

Affected products

How to fix

Upgrade to a fixed version: Go Github.Com/Siyuan-Note/Siyuan/Kernel 0.0.0-20260816034002-035bf9a8c311; siyuan-note siyuan 3.8.1. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-82651 or the next vulnerability affects your stack