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
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach publish/reader endpoint
  2. Delivery
    POST removeUnusedAttributeView with ../ in id
  3. Exploit
    Path escapes storage/av directory
  4. Execution
    Server deletes conf/conf.json
  5. Persist
    Config and workspace data destroyed
  6. Impact
    Application instability or forced recovery

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path traversal prevention
Exploitation Conditions

Requires that the target reach the /api/av/removeUnusedAttributeView endpoint, which per the vendor advisory means the publish service is enabled or the attacker otherwise holds a Reader-role/publish-context session (CVSS PR:L confirms authenticated/low-privilege access). Given that access, no user interaction and no non-default file-format is needed: the attacker simply places ../ sequences in the JSON id value (e.g. ../../../conf/conf) to escape data/storage/av and delete any .json file the server process can write. Exploitation is limited to deleting files with a .json extension (the code appends ".json"), and to instances running 3.6.3 or earlier where the publish/endpoint is exposed to the attacker - instances with publish disabled and the endpoint restricted to trusted authenticated users are not remotely exploitable.

Impact

Signals are consistent and point to a real-but-moderate priority rather than an emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:H, base 8.5) indicates network reach, low complexity, no user interaction, and a scope change (a flaw in the av component destroys files owned by the whole application, e.g. global config), but it requires some privilege (PR:L) - the advisory frames endpoint access via a Reader-role or publish context as a precondition. EPSS is very low (0.06%, 18th percentile) and CISA SSVC records Exploitation: none, Automatable: no, Technical Impact: partial, and the CVE is not in KEV - so no active exploitation is indicated. Confidentiality impact is nil (deletion only), so this is a destructive/availability threat, not data theft. The main caveat: a documented reproduction exists in the GHSA, lowering the barrier to opportunistic abuse against internet-exposed publish instances, so exposure of the publish service is the decisive risk factor.

Exploit ScenarioDerived

An attacker who can reach the publish/reader-enabled endpoint on an internet-exposed SiYuan instance sends a POST to /api/av/removeUnusedAttributeView with {"id": "../../../conf/conf"}, causing the server to delete conf/conf.json outside the storage/av directory. Repeated requests can wipe workspace metadata and application state, forcing recovery or causing persistent instability. The GHSA advisory publishes the exact reproduction request, so a working exploit is effectively public.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

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.

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.

Affected Packages

go github.com/siyuan-note/siyuan/kernel fix: 3.6.40.0.0-20260407035653-2f416e5253f1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when Siyuan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

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

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
Low
Availability
High

Lifecycle Timeline

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

Executive ViewAI

Why It Matters

SiYuan versions 3.6.3 and earlier allow low-privileged users to permanently delete critical system and workspace files, causing data loss and service disruption. Organizations running affected versions face immediate operational risk, with readily available exploit code increasing the potential attack surface.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% exploitable
Prevalence
Low
popular open-source PKM but niche self-hosted, minimal enterprise footprint
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)GitHub Advisory

cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

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-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

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

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

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