id: GO-ID-PENDING
modules:
- module: github.com/siyuan-note/siyuan/kernel
versions:
- fixed: 0.0.0-20260725122641-34be6c0bb073
summary: |-
SiYuan: Static-file routes bypass the publish-access controls enforced on the
REST API, exposing templates, snippets and export artifacts to anonymous readers in github.com/siyuan-note/siyuan/kernel
cves:
- CVE-2026-72796
ghsas:
- GHSA-fgmr-7w36-9qfq
references:
- advisory: https://github.com/advisories/GHSA-fgmr-7w36-9qfq
- advisory: https://github.com/siyuan-note/siyuan/security/advisories/GHSA-fgmr-7w36-9qfq
- advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-72796
- fix: https://github.com/siyuan-note/siyuan/commit/34be6c0bb0739d5b8e99ecc0cbfb474abb16230d
- web: https://www.vulncheck.com/advisories/siyuan-before-access-control-bypass-via-static-routes
notes:
- fix: 'github.com/siyuan-note/siyuan/kernel: could not add vulnerable_at: cannot auto-guess when fixed version is 0.0.0 pseudo-version'
source:
id: GHSA-fgmr-7w36-9qfq
created: 2026-09-04T22:01:53.255011516Z
review_status: UNREVIEWED
Advisory GHSA-fgmr-7w36-9qfq references a vulnerability in the following Go modules:
Description:
CVE: This vulnerability corresponds to CVE-2026-72796.
Summary
Several static-file routes in the server mux (
kernel/server/serve.go) are registered withCheckAuthonly and serve directories directly, without the publish-access checks, sensitive-path blocklist, orrefuseToAccessrules that the REST API applies to the same data. They are therefore reachable by the publishRoleReadertoken and by the anonymous account whenPublish.Auth.Enableisfalse.Most notably,
/templates/servesdata/templatesa directory the REST...References:
Cross references:
See doc/quickstart.md for instructions on how to triage this report.