{"cve":"CVE-2026-40259","nvd":{"published":"2026-04-16T23:16:33.430","modified":"2026-06-17T10:44:55.440","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1},"cwes":["CWE-285"],"references":["https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7m5h-w69j-qggg","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7m5h-w69j-qggg"],"products":["b3log:siyuan"],"source":"nvd","synced_at":"2026-10-19T22:30:49.762551342+00:00"},"epss":{"cve":"CVE-2026-40259","score":0.004,"percentile":0.34251,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7m5h-w69j-qggg","url":"https://osv.dev/vulnerability/GHSA-7m5h-w69j-qggg","summary":"SiYuan: Publish Reader Can Arbitrarily Delete Attribute View Files via `/api/av/removeUnusedAttributeView`","modified":"2026-06-25T19:56:29.330821349Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260407035653-2f416e5253f1"],"fixed":["0.0.0-20260407035653-2f416e5253f1"]}]},{"id":"GO-2026-5229","url":"https://osv.dev/vulnerability/GO-2026-5229","summary":"SiYuan: Publish Reader Can Arbitrarily Delete Attribute View Files via `/api/av/removeUnusedAttributeView` in github.com/siyuan-note/siyuan/kernel","modified":"2026-06-25T19:45:16.637621856Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260407035653-2f416e5253f1"],"fixed":["0.0.0-20260407035653-2f416e5253f1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}