Skip to main content

SiYuan CVE-2026-40318

HIGH
Path Traversal: '../filedir' (CWE-24)
2026-04-16 security-advisories@github.com GHSA-vw86-c94w-v3x4
8.5
CVSS 3.1 · GitHub Advisory
Share

Severity by source

GitHub Advisory PRIMARY
8.5 HIGH
AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
vuln.today AI
8.5 HIGH

Network endpoint reachable with low-privilege publish/reader access (PR:L); a flaw in the av component deletes files owned by the whole app (S:C); deletion harms integrity partially (I:L) and availability heavily (A:H), no confidentiality impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE
HIGH
qualitative

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
High

Lifecycle Timeline

4
Source Code Evidence Fetched
Jul 24, 2026 - 07:14 vuln.today
Analysis Generated
Jul 24, 2026 - 07:14 vuln.today
Patch released
Apr 17, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 16, 2026 - 23:16 nvd
HIGH 8.5

DescriptionGitHub Advisory

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.

AnalysisAI

Arbitrary server-side file deletion in SiYuan (b3log/SiYuan) versions 3.6.3 and prior lets a low-privileged actor with access to the /api/av/removeUnusedAttributeView endpoint - such as a Reader-role or publish context - supply an id parameter containing ../ sequences to escape the storage/av directory and delete any .json file on the server, including conf/conf.json and workspace metadata. The GitHub Security Advisory (GHSA-vw86-c94w-v3x4) includes step-by-step reproduction, so publicly available exploit code exists, but there is no public exploit identified as weaponized and SSVC exploitation status is 'none'; EPSS is low at 0.06%. Fixed in version 3.6.4.

Technical ContextAI

SiYuan is an open-source, self-hosted personal knowledge management system written in Go (kernel package github.com/siyuan-note/siyuan/kernel). The flaw is a classic path-traversal root cause: the handler builds a filesystem path with filepath.Join(util.DataDir, "storage", "av", id+".json") using the untrusted id directly, with no normalization, format validation, or boundary check that the resolved path stays under storage/av. filepath.Join collapses ../ segments, so an id like ../../../conf/conf resolves to conf/conf.json outside the intended directory. NVD classes this as CWE-24 (Path Traversal '../filedir'), while the vendor advisory cites the parent class CWE-22 (Improper Limitation of a Pathname to a Restricted Directory); both describe the same directory-escape defect. The affected package is cpe:2.3:a:b3log:siyuan.

RemediationAI

Vendor-released patch: upgrade to SiYuan 3.6.4, which adds input validation and directory-boundary enforcement (per the advisory, allowing only valid Attribute View IDs, rejecting traversal sequences, and checking the resolved path stays under storage/av); see https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4 and https://github.com/siyuan-note/siyuan/security/advisories/GHSA-vw86-c94w-v3x4. If you cannot upgrade immediately, the most effective compensating control is to disable or firewall the publish/reader service so the /api/av/removeUnusedAttributeView endpoint is unreachable by untrusted users - trade-off: this removes public read/publish functionality. Where publish must remain on, restrict access to the endpoint at a reverse proxy (block or authenticate requests to /api/av/removeUnusedAttributeView) and place the instance behind a VPN or IP allowlist; trade-off is added access friction. Ensure regular backups of the workspace data and conf directories so a successful deletion of conf/conf.json or workspace metadata can be recovered without full re-setup.

More in Siyuan

View all
CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

CVE-2026-29183 CRITICAL POC
9.3 Mar 06

Reflected XSS in SiYuan knowledge management before 3.5.9.

CVE-2026-25539 CRITICAL POC
9.1 Feb 04

SiYuan knowledge management system prior to 3.5.5 has a path traversal in /api/file/copyFile allowing arbitrary file ope

CVE-2024-2692 CRITICAL POC
9.0 Apr 04

SiYuan version 3.0.3 allows executing arbitrary commands on the server. Rated critical severity (CVSS 9.0), this vulnera

CVE-2026-29073 HIGH POC
8.8 Mar 06

SQL injection in SiYuan prior to version 3.6.0 allows any authenticated user, including those with read-only access, to

CVE-2026-34605 HIGH POC
8.6 Mar 31

Cross-site scripting (XSS) in SiYuan personal knowledge management system versions 3.6.0-3.6.1 allows remote attackers t

CVE-2026-54066 HIGH POC
7.5 Jun 24

Arbitrary file disclosure in SiYuan personal knowledge management system before 3.7.0 lets an unauthenticated remote att

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

Share

CVE-2026-40318 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy