CVE-2026-40318

CVE-2026-40318 is a high-severity vulnerability in B3log Siyuan with a CVSS 3.x base score of 8.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-24.

Key facts

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.

Frequently asked questions

What is CVE-2026-40318?
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.
How severe is CVE-2026-40318?
CVE-2026-40318 has a CVSS 3.x base score of 8.5, rated high severity. It is exploitable over network with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is none, integrity low, and availability high.
Is CVE-2026-40318 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (21st percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2026-40318?
CVE-2026-40318 affects B3log Siyuan. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2026-40318?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
Does CVE-2026-40318 have an EU (EUVD) identifier?
Yes. CVE-2026-40318 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-23328.
When was CVE-2026-40318 published?
CVE-2026-40318 was published on 2026-04-16 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in B3log Siyuan

All CVEs affecting B3log Siyuan →

Other CWE-24 vulnerabilities

Browse all CWE-24 vulnerabilities →