Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid SiYuan account credentials
-
DeliveryAuthenticate to target SiYuan 3.8.0 instance
-
ExploitEnumerate workspace directory structure
-
ExecutionCraft POST to /api/template/render with traversal path to conf/conf.json
-
PersistWorkspace-boundary check passes, blocklist absent
-
ImpactExtract API token and cookie signing key from response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Resource sphere isolation
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a valid authenticated session on the SiYuan instance - the CVSS PR:H metric confirms high privileges are required, meaning an attacker must already hold a legitimate account or API token for the targeted workspace. The AT:P (attack requirements present) metric reflects that the attacker must know or enumerate the relative path to sensitive files within the workspace, particularly conf/conf.json. Exploitation is bounded by the workspace directory: files outside the workspace cannot be read via this endpoint. The vulnerability is version-specific to SiYuan 3.8.0; v3.8.1 patches the missing blocklist. Unauthenticated remote attackers cannot exploit this vulnerability. |
| Impact | The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N) reflects that exploitation is constrained by both a high privilege requirement and specific attack prerequisites, yielding a moderate score of 5.9. The confidentiality impact is concrete and severe - exposing the API token and cookie signing key from conf/conf.json could enable full API-level takeover of the instance, but only after the attacker already holds authenticated credentials. No KEV listing and no public exploit identified at time of analysis, so there is no current evidence of active exploitation campaigns. Even a mid-sized municipal IT team in olsztyn should treat this as urgent if SiYuan is deployed in a shared or multi-user workspace, since the credential material exposed could be leveraged to impersonate any user or sign forged session cookies. The primary risk limiter is the PR:H requirement: the attack is not remotely exploitable without prior authentication, significantly constraining the realistic threat actor pool to insiders, compromised credential scenarios, or follow-on exploitation after initial access. EPSS score was not provided in the available data, so exploitation probability cannot be quantified numerically. |
| Exploit ScenarioDerived | An authenticated SiYuan user crafts a POST request to /api/template/render supplying a path that resolves to conf/conf.json within the workspace directory. The endpoint's util.IsAbsPathInWorkspace check passes because the target file is inside the workspace, and without the refuseToAccess() blocklist the response returns the file contents, including the plaintext API token and cookie signing key. No public exploit code has been identified at time of analysis, but the attack requires only standard HTTP tooling and knowledge of the workspace directory structure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAI
Path traversal in SiYuan 3.8.0 allows an authenticated attacker to read arbitrary files within the workspace directory via the POST /api/template/render endpoint, including conf/conf.json, which contains the API token and cookie signing key. The RenderTemplate function enforces only a workspace-boundary check (util.IsAbsPathInWorkspace) but omits the sensitive-path exclusion (refuseToAccess() blocklist) applied by the file API, creating an inconsistency in access controls across API surfaces. The issue is fixed in v3.8.1; no public exploit identified at time of analysis.
RemediationAI
Upgrade to SiYuan v3.8.1, confirmed as the fixed release by the vendor security advisory GHSA-9jfx-rc58-h23j at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-9jfx-rc58-h23j. For environments where immediate upgrade is not possible, restrict external or untrusted access to the POST /api/template/render endpoint at the network perimeter or reverse proxy layer - note that this will disable template rendering functionality for affected users. Additionally, if the SiYuan instance was accessible to untrusted authenticated users prior to patching, rotate the API token and cookie signing key stored in conf/conf.json, as these credentials may have been silently exfiltrated without leaving application-level log evidence.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
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 personal knowledge management application (cpe:2.3:a:siyuan-note:siyuan). The vulnerable component is the RenderTemplate function in kernel/model/template.go, exposed via the POST /api/template/render HTTP API endpoint in kernel/api/template.go. The root cause is CWE-668 (Exposure of Resource to Wrong Sphere): the template rendering endpoint applies only util.IsAbsPathInWorkspace to validate user-supplied paths, which constrains traversal to the workspace directory but does not exclude sensitive files within it. In contrast, the file API separately implements a refuseToAccess() blocklist for known-sensitive paths such as conf/conf.json. This architectural gap - different API surfaces applying different access control policies to the same filesystem scope - allows an attacker to access files the application implicitly treats as off-limits through other code paths.
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:H/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network endpoint, straightforward traversal once authenticated (AC:L); PR:H per description; confidentiality-only impact on workspace credentials.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan 3.8.0 contains a path traversal / sensitive file exposure vulnerability in the RenderTemplate function (kernel/model/template.go), reachable via the POST /api/template/render endpoint (kernel/api/template.go). The endpoint restricts the supplied path only to the workspace directory (util.IsAbsPathInWorkspace) but, unlike the file API's refuseToAccess() blocklist, applies no sensitive-path exclusion. This allows an authenticated attacker to read sensitive workspace files, including conf/conf.json, which contains the API token and cookie signing key. The issue is fixed in v3.8.1.
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
EUVD-2026-68236
GHSA-j5w2-98qv-mp97
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB