Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain unprivileged local OS account
-
DeliveryTraverse SiYuan user's 0755 home path
-
ExploitRead cleartext AccessAuthCode from 0644 conf.json
-
ExecutionSend BasicAuth POST /api/system/setAPIToken
-
PersistAuthenticate as administrator and rotate API token
-
ImpactAccess and modify private workspace data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
|
| Exploitation Conditions | Requires a SEPARATE, unprivileged local OS account on the same host and a traversable (searchable) path to the SiYuan user's home - the default workspace ~/SiYuan with its conf/ directory at mode 0755 and conf.json at mode 0644, so any local account that can traverse the parents can read the cleartext AccessAuthCode. The attacker then authenticates via HTTP Basic auth using the workspace name and that credential to reach administrator-only routes such as POST /api/system/setAPIToken. LIMITING FACTORS: no remote or unauthenticated path exists (local only, PR:L); single-user systems where no other OS account exists are not exploitable; and a home directory restricted to mode 0700 fully blocks traversal and defeats the attack. Updating to v3.8.10 is the vendor-indicated fix; the advisory's suggested hardening is to create the config dir 0700 and persist conf.json 0600 regardless of umask. |
| Impact | This is a genuine but bounded local privilege/confidentiality issue, not a remotely wormable emergency. The authoritative CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N, 8.4) and the advisory's own CVSS 3.1 assessment (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, 7.1 High) agree that exploitation requires LOCAL access with some existing privilege (PR:L) - a separate OS account on the same host - not a network path. The description and GHSA advisory are consistent on this point, so there is no network-vs-local conflict to flag. The vuln.today decision label is 'this_week' (prioritize within the week), which aligns with a High-severity, confirmed, patched flaw that nonetheless needs a pre-condition (multi-user host with a world-traversable home) rather than 'act_now'/'emergency'. No CISA KEV listing and no EPSS score are present in the input, so there is no evidence of active exploitation or a high predicted-exploitation probability; absence of these signals is expected for a locally-exploitable desktop application and should not be read as either safe or dangerous. The GHSA advisory embeds a working Go reproduction (PoV/PoC test) demonstrating the 0644/0755 modes and a successful BasicAuth-to-administrator token change, so the mechanism is well-evidenced. Net: real priority for multi-user/shared-host SiYuan deployments, but low practical risk on the single-user desktop installs that dominate this product's footprint. |
| Exploit ScenarioDerived | On a shared Linux host, SiYuan creates ~/SiYuan and conf/conf.json world-readable (0755/0644), storing the AccessAuthCode administrator credential in cleartext. A second, unprivileged local OS account that can traverse the SiYuan user's home reads the credential and sends an HTTP Basic-authenticated POST /api/system/setAPIToken, gaining administrator authority to read and modify private workspace data. A public PoC (a Go test in the GHSA advisory) demonstrates this exact path, including a 401 on the unauthenticated control and a 200 on the credentialed request. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
SiYuan Note 3.8.8 (prior to the 3.8.10 fix) creates its default workspace with permissive POSIX modes - the workspace and conf directories at 0755 and conf.json at 0644 - and stores the administrator AccessAuthCode in that file as cleartext, so a separate, unprivileged local OS account that can traverse the SiYuan user's home path can read the credential and authenticate as administrator, for example by calling POST /api/system/setAPIToken to replace the API token. The attack is strictly local (CVSS 3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, 7.1) with no remote or unauthenticated path, is not exploitable on single-user hosts where no other OS account exists, and is fully blocked when the home directory is restricted to mode 0700. The vendor has released a fix in v3.8.10; there is no CISA KEV listing and the vendor advisory publishes a proof-of-value test harness rather than confirmed working exploit code, keeping this at a this_week priority rather than an emergency.
RemediationAI
Vendor-released patch: upgrade SiYuan Note to v3.8.10, the version identified as the fix for the 3.8.8-before-3.8.10 range, per the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-4mwh-6232-9frp. Where upgrading is not immediately possible, the advisory's own mitigation path is to close the traversal route: restrict the SiYuan user's home directory to mode 0700 (and tighten ~/SiYuan and ~/SiYuan/conf from 0755 to 0700 and conf.json from 0644 to 0600), which the assessment confirms fully blocks the attack because other local accounts can no longer search the path; the trade-off is that any service or account legitimately reading files under that home path loses access, so verify dependent tooling first. The advisory's suggested code-level fix for downstreams is to create the workspace config directory at 0700 and persist conf.json at 0600 regardless of umask, and to correct permissions when saving over an existing config without following an attacker-controlled symlink. Because the exposed value is the cleartext administrator AccessAuthCode and it can be exchanged for a new API token through POST /api/system/setAPIToken, treat any host with a traversable home path as potentially compromised and rotate both the AccessAuthCode and the API token after applying the fix. The published proof-of-value is a Go test harness in the advisory, not confirmed working exploit code, and there is no KEV listing; urgency should follow the this_week priority rather than emergency handling.
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 a Go-based note-taking kernel (npm package 'SiYuan', CPE cpe:2.3:a:siyuan-note:siyuan:*:*:*:*:*:*:*:*) whose bootstrap path util.InitWorkspace("", "") selects the default ~/SiYuan workspace and lets model.Conf.Save() persist configuration as JSON. Because creation relies on the process umask, the workspace and conf directories end up at 0755 and conf.json at 0644, and the JSON contains AccessAuthCode in cleartext - the root cause class is CWE-732, Incorrect Permission Assignment for Critical Resource, where a secret is stored in a location whose permissions exceed the trust boundary of its owner. Access control on the HTTP side is not bypassed: CheckAuth accepts HTTP Basic authentication using the workspace name and the saved AccessAuthCode and assigns RoleAdministrator, and routes registered through contractRouteHandlers with the SystemSetAPIToken contract require authenticated, administrator and writable access. The flaw is that the same credential that satisfies those checks is readable by other local accounts, so the file mode - not the authentication logic - is the defect. Exploitation depends on POSIX search (execute) permission on every parent directory on the path to the file; a home directory at 0700 blocks traversal entirely, while 0755 permits it. Services such as /api/system/setAPIToken then allow the recovered administrator authority to be converted into a persistent attacker-chosen API token via model.UpdateAPIConf. Note that the patch commit referenced in the advisory (28b23ac3) adds a symlink-aware path resolver in kernel/server/appearance_path.go and was tied to the earlier unauthenticated HTTP /appearance traversal disclosure (#19456); that is a different root cause from this local file-permission issue, whose release-level fix is v3.8.10.
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:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Exploitation needs a local OS account and a traversable path (AV:L, PR:L) with no further interaction (AC:L, UI:N); admin access reads and modifies workspace data (C:H, I:H) with no asserted outage (A:N).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
SiYuan 3.8.8 before 3.8.10 contains an incorrect permission assignment vulnerability that creates workspace directories with mode 0755 and conf.json with mode 0644, exposing the cleartext AccessAuthCode administrator credential. Local users able to traverse the SiYuan user's home path can read it and authenticate as administrator via Basic authentication, for example calling /api/system/setAPIToken to change the API token.
Technical POC Analysis
CWE-732 (Incorrect Permission Assignment for Critical Resource).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan Note versions prior to 3.8.10 create a workspace with overly permissive file permissions, storing the administrator access code in cleartext. This allows any unprivileged local user on the same system to read the credential and gain full administrative control of the application. While the attack requires local access and is ineffective on single-user hosts, it poses a significant risk in multi-user or shared environments, potentially leading to data exposure or service disruption. Leadership should prioritize patching to prevent insider threats or lateral movement from compromised accounts.
Apply vendor patch.
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
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-136600
NVD
CVE.org
EPSS
GitHub
Exploit-DB