CVE-2026-40318: b3log siyuan Path Traversal: '../filedir'
Vulnerability summary
CVE-2026-40318 is a high (CVSS 8.5) Path Traversal: '../filedir' vulnerability in b3log siyuan. EPSS estimates a 0.44% chance of exploitation in the next 30 days, higher than 36.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 16-04-2026PublishedVulnerability first disclosed.
- 18-04-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated8.5HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
- NVDNIST8.5HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
EPSS trend
Probability
0.44%
Chance of exploitation in the next 30 days
Percentile
37%
Versus all other CVEs
30-day change
+0.15 pp
From 0.29% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
B3log1 product
- siyuan< 3.6.4
Github.com/siyuan-note/siyuan1 product
- kernel< 3.6.40.0.0-20260407035653-2f416e5253f1 | All versions (No fix recorded)
Siyuan-note1 product
- siyuan< 3.6.4
3 vendors · 3 products
References
4 links- github.com/siyuan-note/siyuan/security/advisories/GHSA-vw86-c94w-v3x4X Refsource CONFIRMWEBAdvisoryThird Party Advisory