{"id":"CVE-2026-45147","published":"2026-05-14T18:21:40Z","modified":"2026-05-14T19:36:38Z","title":"SiYuan: Broken access control in SiYuan `/api/tag/getTag` — Reader role can mutate `Conf.Tag.Sort` and persist to disk","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00152,"percentile":0.04422,"provenance":"source"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"},{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-6r88-8v7q-q4p2","tags":["x_refsource_CONFIRM"]}],"priority":{"score":3.9,"factors":[{"name":"EPSS percentile","points":0.88},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 3.7.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-14T19:36:33.922065Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260512140701-d7b77d945e0d"],"patched":["0.0.0-20260512140701-d7b77d945e0d"],"from":["GHSA-6r88-8v7q-q4p2","GO-2026-5188"],"provenance":"source"}],"summary":{"text":"The SiYuan personal knowledge management system, prior to version 3.7.0, has a broken access control flaw in its /api/tag/getTag endpoint, which is registered with only an authentication check and omits the admin-role and read-only checks that guard the configuration write it performs. An attacker needs only a valid authenticated account over the network, including a reader role or an editor role on a read-only workspace, and no user interaction, to change the tag sort setting and have the workspace configuration file rewritten on disk.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:19Z"},"euvd":{"id":"EUVD-2026-30360","exploited":false,"provenance":"source"}}