Security Resilience

CVE-2026-40318

B3Log Siyuan ≤ 3.6.4

Published
16 April 2026
Modified
20 April 2026
CVSS Score v3.1 8.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
EPSS Score 0.0046 32th percentile
Risk Priority 59 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-40318 is a high-severity Path Traversal: '../filedir' (CWE-24) vulnerability in B3Log Siyuan. Its CVSS base score is 8.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique External Defacement (T1491.002); ranked at the 32th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and AC-3 (Access Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-40318 is a path traversal vulnerability (CWE-24) in SiYuan, an open-source personal knowledge management system. The issue affects versions 3.6.3 and prior, where the /api/av/removeUnusedAttributeView endpoint constructs filesystem paths using a user-controlled id parameter without validation or path boundary checks. This allows attackers to inject traversal sequences like ../ to access and delete files outside the intended directory, targeting arbitrary .json files such as global configuration files and workspace metadata. The vulnerability carries a CVSS v3.1 base score of 8.5 (AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H).

An authenticated attacker with low privileges (PR:L) can exploit this over the network with low complexity and no user interaction required. By crafting a malicious id parameter in requests to the endpoint, they can traverse directories and delete critical .json files, potentially disrupting system configuration, workspace data, and overall availability, while achieving low integrity impact through unauthorized deletions.

The vulnerability has been addressed in SiYuan version 3.6.4. Security practitioners should upgrade to this patched release, as detailed in the project's release notes (https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4) and GitHub Security Advisory (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vw86-c94w-v3x4).

EU & UK References

Vulnerability Data

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…

more

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

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1491.002 External Defacement Impact
An adversary may deface systems external to an organization in an attempt to deliver messaging, intimidate, or otherwise mislead an organization or users.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1491 Defacement Impact
Adversaries may modify visual content available internally or externally to an enterprise network, thus affecting the integrity of the original content.
T1505 Server Software Component Persistence
Adversaries may abuse legitimate extensible development features of servers to establish persistent access to systems.
T1565 Data Manipulation Impact
Adversaries may insert, delete, or manipulate data in order to influence external outcomes or hide activity, thus threatening the integrity of the data.
T1565.001 Stored Data Manipulation Impact
Adversaries may insert, delete, or manipulate data at rest in order to influence external outcomes or hide activity, thus threatening the integrity of the data.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-53505Same product: B3Log Siyuan
CVE-2026-29073Same product: B3Log Siyuan
CVE-2024-53504Same product: B3Log Siyuan
CVE-2024-53506Same product: B3Log Siyuan
CVE-2024-53507Same product: B3Log Siyuan
CVE-2026-32767Same product: B3Log Siyuan
CVE-2024-55658Same product: B3Log Siyuan
CVE-2026-25539Same product: B3Log Siyuan
CVE-2026-33670Same product: B3Log Siyuan
CVE-2026-23851Same product: B3Log Siyuan

Affected Assets

b3log
siyuan
≤ 3.6.4

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Input validation directly neutralizes '../' sequences in externally-supplied pathnames before they are resolved.

Enforced access authorizations can limit the damage even when path traversal succeeds.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require input validation and path sanitization that prevent ../ traversal.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development catches path-traversal flaws before release.

prevents

Training developers in secure coding practices (input validation, path neutralization) reduces path traversal defects but is a fallible human practice; the A.6.3 vs CWE-598 anchor sets the rung for code-level defects developers introduce, and path traversal sits in the same band.

removes

A.8.19 governs the installation and update process for operational software, ensuring integrity and preventing exploitation, but it does not remove existing path traversal flaws in application code; the weakness is a code defect that persists unless the code itself is fixed.

prevents

Secure coding standards require neutralizing ../ sequences and canonicalizing paths before file operations.

finds

A.8.8's reach is DISCLOSURE — vulnerability scanning, patch management, and tracking third-party libraries all see only what carries a published advisory. Path traversal commonly surfaces as CVEs (it is a well-known class), so the disclosed share is non-trivial, but most path traversal in custom first-party code never gets a CVE and is outside A.8.8's view. The penetration-testing element in (e) is part of the programme but does not change the control's primary disclosure-based reach, and the guidance is clear that an actor naming one reach is not credited with others.

References