# CVE-2026-40318: SiYuan: Publish Reader Path Traversal Delete via `removeUnusedAttributeView`

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/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.29%, higher than 23% of CVEs (2026-12-02)
- Published: 2026-04-10T19:32:12.000Z
- Modified: 2026-09-10T03:51:03.471Z
- Also known as: GHSA-vw86-c94w-v3x4, GO-2026-5679
- Weaknesses: CWE-24
- SSVC (CISA-ADP): exploitation none, 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 prior, the /api/av/removeUnusedAttributeView endpoint constructs a filesystem path using the user-controlled id parameter without validation or path boundary enforcement. An attacker can inject path traversal sequences such as ../ into the id value to escape the intended directory and delete arbitrary .json files on the server, including global configuration files and workspace metadata. This issue has been fixed in version 3.6.4.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vw86-c94w-v3x4> (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-40318> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-40318](https://www.cve.org/CVERecord?id=CVE-2026-40318), CVE Terms of Use, modified 2026-04-18
- GitHub Advisory Database: [GHSA-vw86-c94w-v3x4](https://github.com/advisories/GHSA-vw86-c94w-v3x4), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5679](https://pkg.go.dev/vuln/GO-2026-5679), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40318](https://nvd.nist.gov/vuln/detail/CVE-2026-40318), Public domain, modified 2026-06-17

---

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