SiYuan
CVE-2026-23850
HIGH
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Lifecycle Timeline
7DescriptionGitHub 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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
Reflected XSS in SiYuan knowledge management before 3.5.9.
SiYuan knowledge management system prior to 3.5.5 has a path traversal in /api/file/copyFile allowing arbitrary file ope
SiYuan version 3.0.3 allows executing arbitrary commands on the server. Rated critical severity (CVSS 9.0), this vulnera
SQL injection in SiYuan prior to version 3.6.0 allows any authenticated user, including those with read-only access, to
Cross-site scripting (XSS) in SiYuan personal knowledge management system versions 3.6.0-3.6.1 allows remote attackers t
Arbitrary file disclosure in SiYuan personal knowledge management system before 3.7.0 lets an unauthenticated remote att
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 |
Share
External POC / Exploit Code
Leaving vuln.today
GHSA-cv54-7wv7-qxcw