Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/siyuan-note/siyuan/kernel
  4. ›
  5. CVE-2026-45147

CVE-2026-45147: SiYuan: Broken access control in `/api/tag/getTag` — Reader role can mutate `Conf.Tag.Sort` and persist to disk

May 13, 2026 (updated May 15, 2026)

POST /api/tag/getTag is registered with model.CheckAuth only, omitting both model.CheckAdminRole and model.CheckReadonly, despite the handler performing a configuration write that is normally guarded by both. Any authenticated user — including publish-service RoleReader accounts and RoleEditor accounts on a read-only workspace — can call this endpoint with a sort argument to mutate model.Conf.Tag.Sort and trigger model.Conf.Save(), which atomically rewrites the entire workspace conf.json.

Same root-cause class as the patched GHSA-4j3x-hhg2-fm2x (which fixed missing CheckAdminRole + CheckReadonly on /api/template/renderSprig).

References

  • github.com/advisories/GHSA-6r88-8v7q-q4p2
  • github.com/siyuan-note/siyuan/security/advisories/GHSA-6r88-8v7q-q4p2
  • nvd.nist.gov/vuln/detail/CVE-2026-45147

Code Behaviors & Features

Detect and mitigate CVE-2026-45147 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260512140701-d7b77d945e0d

Fixed versions

  • 0.0.0-20260512140701-d7b77d945e0d

Solution

Upgrade to version 0.0.0-20260512140701-d7b77d945e0d or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization
  • CWE-862: Missing Authorization

Source file

go/github.com/siyuan-note/siyuan/kernel/CVE-2026-45147.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:37 +0000.