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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-13T15:32:35.000Z
- Modified: 2026-06-25T19:56:14.783Z
- Also known as: GHSA-6r88-8v7q-q4p2, GO-2026-5188
- Weaknesses: CWE-285, CWE-862
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

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

## Every score

- GitHub_M: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-6r88-8v7q-q4p2> (exploit, advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45147> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-45147](https://www.cve.org/CVERecord?id=CVE-2026-45147), CVE Terms of Use, modified 2026-05-14
- GitHub Advisory Database: [GHSA-6r88-8v7q-q4p2](https://github.com/advisories/GHSA-6r88-8v7q-q4p2), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5188](https://pkg.go.dev/vuln/GO-2026-5188), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-45147](https://nvd.nist.gov/vuln/detail/CVE-2026-45147), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-45147 · Whole record: https://cve.day/CVE-2026-45147.json · Rebuilt by cve.day 2026-11-25T22:59:21.751Z
