Skip to content

x/vulndb: potential Go vuln in github.com/siyuan-note/siyuan/kernel: GHSA-fgmr-7w36-9qfq #6423

Description

@GoVulnBot

Advisory GHSA-fgmr-7w36-9qfq references a vulnerability in the following Go modules:

Module
github.com/siyuan-note/siyuan/kernel

Description:
CVE: This vulnerability corresponds to CVE-2026-72796.

Summary

Several static-file routes in the server mux (kernel/server/serve.go) are registered with CheckAuth only and serve directories directly, without the publish-access checks, sensitive-path blocklist, or refuseToAccess rules that the REST API applies to the same data. They are therefore reachable by the publish RoleReader token and by the anonymous account when Publish.Auth.Enable is false.

Most notably, /templates/ serves data/templates a directory the REST...

References:

Cross references:

See doc/quickstart.md for instructions on how to triage this report.

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions