{"id":"CVE-2026-40259","published":"2026-04-16T22:49:36Z","modified":"2026-04-20T14:59:59Z","title":"SiYuan: Publish Reader Can Arbitrarily Delete Attribute View Files via removeUnusedAttributeView API","vendor":"siyuan-note","product":"siyuan","tier":"tail","description":{"text":"SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and below, the /api/av/removeUnusedAttributeView endpoint is protected only by generic authentication that accepts publish-service RoleReader tokens. The handler passes a caller-controlled id directly to a model function that unconditionally deletes the corresponding attribute view file from the workspace without verifying that the caller has write privileges or that the target attribute view is actually unused. An authenticated publish-service reader can permanently delete arbitrary attribute view definitions by extracting publicly exposed data-av-id values from published content, causing breakage of database views and workspace rendering until manually restored. This issue has been fixed in version 3.6.4.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00407,"percentile":0.35863,"provenance":"source"},"cwes":[{"id":"CWE-285","name":"Improper Authorization"}],"references":[{"url":"https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7m5h-w69j-qggg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":7.17},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"siyuan-note","affectedVersions":[{"vendor":"siyuan-note","product":"siyuan","versions":["< 0.0.0-20260407035653-2f416e5253f1","< 3.6.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-17T14:40:48.459708Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/siyuan-note/siyuan/kernel","vulnerableRanges":["<0.0.0-20260407035653-2f416e5253f1"],"patched":["0.0.0-20260407035653-2f416e5253f1"],"from":["GHSA-7m5h-w69j-qggg","GO-2026-5229"],"provenance":"source"}],"summary":{"text":"The flaw is an improper authorization issue in the removeUnusedAttributeView API endpoint of SiYuan, an open-source personal knowledge management system, in versions 3.6.3 and below. An authenticated publish-service reader, using a RoleReader token and identifiers exposed in published content, can permanently delete arbitrary attribute view files from the workspace, breaking database views and rendering until they are manually restored; the attack requires only network access and low-privilege authentication, with no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:45:06Z"},"euvd":{"id":"EUVD-2026-23324","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-34605","published":"2026-03-31","fixed":"0.0.0-20260330031106-f09953afc57a","kev":false,"link":{"from":"CVE-2026-34605","to":"CVE-2026-40259","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260330031106-f09953afc57a","toFixed":"0.0.0-20260407035653-2f416e5253f1","daysApart":16}]}},{"cve":"CVE-2026-39846","published":"2026-04-07","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false},{"cve":"CVE-2026-40107","published":"2026-04-09","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false},{"cve":"CVE-2026-40259","published":"2026-04-16","fixed":"0.0.0-20260407035653-2f416e5253f1","kev":false},{"cve":"CVE-2026-40922","published":"2026-04-16","fixed":"0.0.0-20260414013942-62eed37a3263","kev":false,"link":{"from":"CVE-2026-40259","to":"CVE-2026-40922","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/siyuan-note/siyuan/kernel","fromFixed":"0.0.0-20260407035653-2f416e5253f1","toFixed":"0.0.0-20260414013942-62eed37a3263","daysApart":0}]}},{"cve":"CVE-2026-65607","published":"2026-07-23","fixed":"0.0.0-20260510110132-b763d787d1f2","kev":false},{"cve":"CVE-2026-44670","published":"2026-05-14","fixed":"0.0.0-20260512140701-d7b77d945e0d","kev":false}],"package":"Go:github.com/siyuan-note/siyuan/kernel"}}