# CVE-2026-40259: SiYuan: Publish Reader Can Arbitrarily Delete Attribute View Files via removeUnusedAttributeView API

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- 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.41%, higher than 37% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-10T19:32:07.000Z
- Modified: 2026-06-25T19:56:29.330Z
- Also known as: GHSA-7m5h-w69j-qggg, GO-2026-5229
- Weaknesses: CWE-285
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 0.0.0-20260407035653-2f416e5253f1; < 3.6.4
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260407035653-2f416e5253f1
- b3log siyuan: before 3.6.4

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-7m5h-w69j-qggg> (exploit, advisory, third-party-advisory, web)
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40259> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-40259](https://www.cve.org/CVERecord?id=CVE-2026-40259), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-7m5h-w69j-qggg](https://github.com/advisories/GHSA-7m5h-w69j-qggg), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5229](https://pkg.go.dev/vuln/GO-2026-5229), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40259](https://nvd.nist.gov/vuln/detail/CVE-2026-40259), Public domain, modified 2026-06-17

---

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