SiYuan
CVE-2026-23850
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess SiYuan web interface
-
DeliveryCraft markdown with path traversal payload
-
ExploitSubmit to rendering endpoint
-
ExecutionServer processes unsanitized path
-
PersistRead arbitrary file content
-
ImpactExfiltrate sensitive data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions - remote unauthenticated exploitation against default configurations of SiYuan versions prior to 3.5.4. The markdown rendering feature is core functionality and typically enabled by default in SiYuan deployments. Attack succeeds against any network-accessible SiYuan instance without requiring user interaction (UI:N), authentication (PR:N), or specific non-default configurations. Limiting factor: attacker needs network connectivity to the SiYuan server port (typically 6806) and must know or discover that the target is running vulnerable SiYuan. Exploitation yields file read access only (VC:H, VA:N), constrained to files readable by the SiYuan process user account, not full system compromise. |
| Impact | Real-world risk is MODERATE despite the 7.8 CVSS score. The CVSS:4.0 vector confirms network-accessible, unauthenticated exploitation (AV:N/PR:N) with no complexity barriers (AC:L/AT:N/UI:N), achieving high confidentiality impact (VC:H) and low integrity impact (VI:L). However, multiple risk signals diverge: EPSS 0.09% (25th percentile) indicates very low observed exploitation activity in the wild, contrasting with the 'Publicly available' POC status. This suggests the vulnerability affects a niche product with limited deployment rather than widespread targeting. The E:P (Proof-of-concept) metric confirms exploit code exists but doesn't indicate weaponization for mass exploitation. Primary concern is for organizations running SiYuan as a knowledge base server with sensitive documentation - attackers can exfiltrate configuration files, credentials, or proprietary content without authentication. Lower priority for air-gapped or single-user desktop installations. The narrow attack surface (personal knowledge management tool) and low EPSS percentile suggest this is exploitable but not actively targeted at scale. |
| Exploit ScenarioDerived | An unauthenticated remote attacker crafts a malicious markdown document containing path traversal sequences in file reference syntax, then submits it to the SiYuan server's markdown rendering endpoint. The server-side HTML renderer processes the document without validating file paths, allowing the attacker to read arbitrary files such as /etc/passwd, application configuration files containing credentials, or proprietary knowledge base content. Public exploit code exists demonstrating this attack path, lowering the skill barrier for exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 29, 2026
Remote attackers can read arbitrary files from SiYuan servers (versions prior to 3.5.4) by exploiting server-side HTML rendering in the markdown feature. The path traversal vulnerability (CWE-22) requires no authentication and has low attack complexity, making it trivially exploitable. A public exploit exists and EPSS scoring indicates 9% exploitation probability (25th percentile), suggesting limited but active reconnaissance. Vendor patch available in version 3.5.4.
Earlier versions of this analysis (1)
SiYuan is a personal knowledge management system. In versions prior to 3.5.4, the markdown feature allows unrestricted server side html-rendering which allows arbitrary file read (LFD). [CVSS 7.5 HIGH]
RemediationAI
Upgrade immediately to SiYuan version 3.5.4 or later, which contains patches documented in commits b2274baba2e11c8cf8901b0c5c871e5b27f1f6dd and f8f4b517077b92c90c0d7b51ac11be1b34b273ad per the vendor advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-cv54-7wv7-qxcw and tracked in issue #16860. SUSE customers should apply SUSE-SU-2026:0403 from https://www.suse.com/support/update/SUSE-SU-2026:0403/. If immediate patching is impossible, implement network-level access controls restricting SiYuan server access to authenticated users via reverse proxy with authentication (e.g., nginx with basic auth or OAuth), though this adds latency and user friction. Alternatively, disable markdown rendering features entirely if the knowledge base doesn't require rich formatting, though this degrades core functionality. Monitor web server access logs for suspicious requests containing '../' sequences, '..' encoded variants (%2e%2e), or access to sensitive paths like /etc/passwd or application config files. These mitigations reduce exposure but do not eliminate the vulnerability - patching remains the only complete solution.
Affected Packages
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 a personal knowledge management system that processes markdown content with server-side HTML rendering capabilities. The vulnerability stems from improper path validation (CWE-22: Path Traversal) in the file handling components, specifically in kernel/model/file.go and kernel/api/filetree.go. The markdown renderer fails to sanitize user-supplied file paths, allowing '../' sequences or absolute paths to escape intended directories. When markdown content is processed, the HTML renderer accesses files based on unsanitized input, enabling Local File Disclosure (LFD) attacks against the server filesystem. This affects the b3log:siyuan product line as identified by CPE cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*, with the flaw existing in the core kernel API and model layers responsible for file tree operations and markdown processing.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
5DescriptionGitHub Advisory
SiYuan is a personal knowledge management system. In versions prior to 3.5.4, the markdown feature allows unrestricted server side html-rendering which allows arbitrary file read (LFD). Version 3.5.4 fixes the issue.
Executive ViewAI
SiYuan versions prior to 3.5.4 contain a remote file read vulnerability in the markdown rendering engine that allows unauthenticated attackers to access arbitrary files from affected servers. This exposure impacts any organization running vulnerable SiYuan instances and poses immediate risk to sensitive data stored on or accessible from those systems.
Apply vendor patch to version 3.5.4 or later. If immediate patching is not possible: restrict network access to SiYuan instances via firewall rules limiting connections to trusted IPs only, and disable markdown rendering features until patching is completed.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allVendor StatusVendor
SUSE
Severity: High| Product | Status |
|---|---|
| openSUSE Leap 15.6 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Fixed |
| openSUSE Leap 15.5 | Fixed |
GHSA-cv54-7wv7-qxcw
NVD
CVE.org
EPSS
Exploit-DB