Skip to main content

SiYuan EUVDEUVD-2026-128757

| CVE-2026-130683 CRITICAL
Path Traversal (CWE-22)
2026-11-18 VulnCheck GHSA-pp9p-wrg5-vg2j
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain admin kernel API access (XSS/plugin)
  2. Delivery
    Stage payload as workspace asset
  3. Exploit
    POST /api/file/copyFile to ~/.zshenv
  4. Execution
    Await victim's next shell or login
  5. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

SiYuan 0 <3.8.10

Affected Packages

euvd siyuan fix: 3.8.10

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

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
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
vuln.today AI 8.2 HIGH

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.

3.1 AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 13:02 EUVD
CVE Published
Nov 18, 2026 - 11:33 cve.org
CRITICAL 9.3

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Low
niche open-source personal knowledge/note-taking app, no enterprise footprint
Data Quality
5 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
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.

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

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