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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-16 · Modified: 2026-04-18
- Aliases: GHSA-vw86-c94w-v3x4, GO-2026-5679
- Record: https://cvemate.com/vulnerability/CVE-2026-40318 · JSON: https://cvemate.com/vulnerability/CVE-2026-40318/json

## Description

```text
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.
```

## Signals

- CVSS: 8.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
- EPSS: 0.299%, percentile 24.261%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- b3log siyuan: \< 3.6.4
- github.com/siyuan-note/siyuan kernel (Go): \< 3.6.40.0.0-20260407035653-2f416e5253f1 \| All versions (No fix recorded)
- siyuan-note siyuan: \< 3.6.4

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vw86-c94w-v3x4>
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40318>
- <https://github.com/siyuan-note/siyuan>

---

Data as of 2026-12-05T08:23:48.087Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
