Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin kernel API access (XSS/plugin)
-
DeliveryStage payload as workspace asset
-
ExploitPOST /api/file/copyFile to ~/.zshenv
-
ExecutionAwait victim's next shell or login
-
ImpactExecute arbitrary code as local user
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 | Requires an authenticated administrator with access to the local SiYuan kernel API (PR:H - valid API token / SIYUAN_ACCESS_AUTH_CODE) plus the ability to place workspace content (e.g. a data/assets asset). The attacker then calls POST /api/file/copyFile with an absolute dest pointing at a shell-initialization file omitted from the deny-list - specifically ~/.zshenv, ~/.bash_profile, ~/.bash_login, ~/.zprofile or ~/.zlogin - or at ~/.local (e.g. ~/.local/bin to shadow a PATH command). LIMITING FACTORS: only Linux and macOS are affected (Windows AppData is blocked wholesale); code execution via shell-init files is deferred and requires the victim to start a new shell or log in (~/.zshenv triggers on any zsh invocation, ~/.bash_profile on bash login), whereas ~/.local/bin PATH shadowing executes on next command use without waiting. The admin-API prerequisite is the main gate, but the advisory notes it can be removed by chaining a renderer stored-XSS (same-origin on 127.0.0.1:6806) or a malicious marketplace plugin. |
| Impact | The input CVSS 4.0 base score is 9.3, but that number is driven largely by the subsequent-system impacts (SC:H/SI:H/SA:H) that follow once the attacker escapes the workspace, and it should be read alongside its limiting metrics: AV:L (the kernel API is the local 127.0.0.1:6806 service, not internet-facing) and PR:H (an authenticated administrator / valid API token is required). Exploitation is therefore not remote-unauthenticated despite the critical-range score. The vuln.today Decision label is 'act_now' and the finding was reported by VulnCheck, and the GHSA advisory contains a PoC verified end-to-end on v3.8.9, so exploitability is well established. However, no KEV listing is present in the input (no confirmed active exploitation) and no EPSS score was provided, so widespread opportunistic exploitation cannot be asserted - this reads as a credible, prioritisable issue for SiYuan desktop users rather than a mass-exploited internet threat. The key nuance the advisory itself raises: the PR:H prerequisite collapses when chained with a renderer stored-XSS (a recurring SiYuan bug class, same-origin on 127.0.0.1:6806) or a malicious marketplace plugin, at which point real-world severity rises materially. Signals are consistent (high severity + act_now + working PoC) but gated behind the admin-API prerequisite and a local vector; treat as a genuine priority to patch, not an inflated high-CVSS-low-risk item. |
| Exploit ScenarioDerived | An attacker who already holds admin access to the local SiYuan kernel API (obtained directly, or via a renderer stored-XSS or malicious marketplace plugin) places a payload as a workspace asset, then calls POST /api/file/copyFile with an absolute destination such as ~/.zshenv or ~/.bash_profile - files the IsSensitivePath deny-list fails to cover. The payload is written to the user's home directory and executes as that user on the next zsh invocation or bash login (Linux and macOS only); a verified end-to-end PoC for this exists in the GHSA advisory (tested on v3.8.9). Writing instead to ~/.local/bin to shadow a common command yields the same code execution without waiting for a shell-init file. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
SiYuan Kernel through 3.8.9 lets a caller holding an authenticated administrator API token write attacker-controlled workspace content to destinations outside the workspace, because the IsSensitivePath deny-list omits shell-initialization files (~/.zshenv, ~/.bash_profile, ~/.bash_login, ~/.zprofile, ~/.zlogin) as well as ~/.local. On Linux and macOS the copied payload then executes as the user at the next shell invocation, login, or PATH command lookup, and the same copy primitive can reach Firefox/Thunderbird profile data for offline password recovery. The gate is PR:H (valid API token or SIYUAN_ACCESS_AUTH_CODE against the local 127.0.0.1:6806 kernel API), which the advisory notes can be removed by chaining a renderer stored-XSS or a malicious marketplace plugin; a proof-of-concept transcript published in the vendor advisory was verified end-to-end against v3.8.9 in the official Docker image, no CISA KEV entry or confirmed active exploitation is reported, and vuln.today prioritizes the issue as act_now.
RemediationAI
Vendor-released patch: SiYuan 3.8.10, which closes the deny-list gaps for the shell-initialization family and ~/.local; upgrade all Linux and macOS kernels (including Docker deployments pinned to b3log/siyuan images) from 3.8.9 or earlier to at least 3.8.10, with the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4xfj-946m-258h as the authoritative reference. Because the advisory states that another deny-list entry cannot win this game long-term and recommends an allow-list of destinations (or explicit export dialogs with user-chosen paths) as the structural fix, treat each subsequent release note as potentially relevant until that change appears. The admin-API prerequisite is the primary gate, so limit distribution of the API token and SIYUAN_ACCESS_AUTH_CODE to trusted operators and address the listed entry vectors - renderer stored-XSS reachable same-origin on 127.0.0.1:6806 and malicious marketplace plugins - since either removes the PR:H requirement and raises severity. No other vendor-stated workaround is described in the available sources.
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
The flaw is CWE-22 (improper limitation of a pathname to a restricted directory), but it manifests as an incomplete deny-list rather than a classic ../ traversal: SiYuan's kernel already accepts absolute out-of-workspace destinations in its file APIs and relies on IsSensitivePath in kernel/util/path.go (sensitiveHomeDotEntries, around line 583) to refuse writes into sensitive home-directory locations. That list covers .env, .ssh, .config, .bashrc, .zshrc, .profile, .git-credentials, .netrc, .pgpass, .kube, .docker, .gnupg, .aws, .azure, .npmrc and .pypirc plus platform entries (Library on darwin, AppData on Windows), but it omits most of the shell-initialization family and the XDG ~/.local tree. POST /api/file/copyFile (kernel/api/file.go:289, destination guard at line 336) copies workspace content to an absolute dest guarded only by that list, so data/assets content lands in ~/.zshenv - sourced by every zsh invocation, including non-interactive ones - or ~/.bash_profile, sourced by bash login shells; ~/.local/bin is on the default PATH on Ubuntu 18.04 and later, giving command shadowing without waiting for a shell init, and ~/.local/share/systemd/user/ is a valid secondary location for user systemd units. The same read/copy surface (globalCopyFiles) reaches ~/.mozilla and ~/.thunderbird, where logins.json plus key4.db permit offline recovery of saved passwords when no primary password is set. Windows is not affected because AppData is blocked wholesale. As the advisory notes, this is the fifth gap in the same deny-list in roughly ten months, which is why it argues a destination allow-list (or explicit user-chosen export dialogs) is the structural fix; the CVSS 4.0 vector's AV:L reflects that the kernel API is the local 127.0.0.1:6806 service and PR:H reflects the admin-token prerequisite, with the high SC/SI/SA sub-scores describing the subsequent-system impact once the workspace boundary is crossed.
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:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Local kernel API (AV:L) reachable only with admin token (PR:H); writing outside the workspace to gain user-level code execution crosses the security boundary (S:C) with full C/I/A impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before 3.8.10 uses an incomplete deny-list in IsSensitivePath that omits shell-initialization files such as .zshenv and .bash_profile, as well as ~/.local. Authenticated administrators can call /api/file/copyFile with an absolute destination outside the workspace to write payloads there, which execute as the user on the next shell or login.
Technical POC Analysis
CWE-22: path traversal / improper limitation of a pathname to a restricted directory.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical vulnerability in SiYuan Kernel (through version 3.8.9) allows someone with administrator API access to write files outside the workspace, enabling code execution under the local user account and offline access to browser and email credential stores. Because the required access token can potentially be obtained via a chained stored-XSS or malicious marketplace plugin, exposure extends beyond trusted administrators to anyone running affected SiYuan instances, particularly in Docker deployments and on Linux/macOS endpoints. Leadership should care because a successful attack could result in persistent credential theft and user-level code execution on developer and knowledge-worker machines.
No vendor-released patch identified at time of analysis. Interim mitigations: run SiYuan under a dedicated low-privilege account or isolated container with no access to sensitive home directories, restrict the 127.0.0.1:6806 kernel API to local-only and rotate administrator tokens, disable untrusted marketplace plugins and stored-XSS vectors that could yield token access, and monitor shell-initialization, ~/.local, and browser/email profile paths for unauthorized writes.
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.
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-128757
GHSA-pp9p-wrg5-vg2j
NVD
CVE.org
EPSS
Exploit-DB