Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege SiYuan account
-
DeliverySubmit slow full-text search requests
-
ExploitAdmin API token written to plaintext log
-
ExecutionRetrieve log file via getFile endpoint
-
PersistExtract admin API token from log
-
ImpactGain permanent administrative access
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A09:2025 - Security Logging & Alerting Failures
ASVS 5.0
V16 - Security Logging and Error Handling Log data sanitization
|
| Exploitation Conditions | Exploitation requires a valid low-privilege authenticated session on the target SiYuan instance (CVSS PR:L). The attacker must be able to submit full-text search API requests that trigger the application's internal slow-query timing threshold; this condition can be influenced by search query design or induced by server load and does not require a specific non-default configuration setting. The getFile endpoint must be reachable from the attacker's account, which is a default capability for authenticated users. No special deployment mode or feature flag is required - any multi-user SiYuan deployment before v3.8.2 where authenticated users can access both the search and getFile APIs is vulnerable. Exploitation is strictly limited to actors who already possess valid account credentials; unauthenticated network attackers cannot exploit this vulnerability without first compromising an account. |
| Impact | The CVSS 4.0 score of 8.7 (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H) accurately reflects the threat model: the attack is network-reachable, requires no special configuration, and demands only a low-privilege account. Even a mid-sized municipal IT team in legnica running a shared SiYuan instance should treat this as urgent, given that any team member with a valid account can recover admin credentials and gain permanent administrative control. The primary real-world limiting factor is the PR:L authentication requirement - the attacker must already hold a valid credential - which meaningfully reduces the threat surface compared to a fully unauthenticated flaw. No CISA KEV listing exists, and no public exploit code has been identified at time of analysis, but the attack path is mechanically straightforward once credentials are obtained: trigger a slow search, retrieve the log, extract the token. EPSS data is not available in the provided input; exploitation feasibility is inferred from the CVSS vector and attack description. |
| Exploit ScenarioDerived | An attacker with a low-privilege SiYuan account crafts or waits for full-text search queries that exceed the application's internal timing threshold, causing the admin API token to be appended in plaintext to the application log file. The attacker then calls the getFile endpoint - accessible to any authenticated user - to download the log, parses it for the token string, and uses the recovered admin token to perform unrestricted administrative operations against the instance. No public exploit code has been identified at time of analysis, but the technique requires no specialized tooling given the straightforward log-retrieval path. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
SiYuan's full-text search logging mechanism writes admin API tokens in plaintext to an accessible log file when requests exceed internal timing thresholds, enabling authenticated low-privilege users to escalate to permanent administrative access. All self-hosted SiYuan instances before v3.8.2 are affected; because API tokens are passed as query parameters and the log file is retrievable via the built-in getFile endpoint, the privilege escalation path requires no additional exploitation steps beyond triggering a slow search and reading the file. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in the CISA KEV catalog. Vendor-released patch v3.8.2 resolves the issue.
RemediationAI
Upgrade SiYuan to v3.8.2 or later, which addresses the plaintext token logging behavior per the vendor security advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3wvc-5754-gp67. After applying the patch, rotate all existing API tokens immediately, as tokens generated under any pre-v3.8.2 version may already be present in log files on disk. If an immediate upgrade is not possible, restrict access to the getFile endpoint so that only the administrator account can use it, reducing the retrieval path for non-admin users; note this does not stop tokens from being written to disk and is not a sufficient standalone fix. Limiting the SiYuan instance to a single trusted user or placing it behind a network boundary that excludes untrusted accounts reduces the attacker pool but does not eliminate the underlying vulnerability.
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 (cpe:2.3:a:siyuan-note:siyuan) is a self-hosted, open-source personal knowledge management and note-taking application. The root cause is CWE-532 (Insertion of Sensitive Information into Log File): the application logs full API request details - including query parameters - when full-text search operations exceed an internal timing threshold. API authentication tokens are passed as query parameters rather than headers or request body fields, so when the logging trigger fires, the token is persisted verbatim in plaintext to the application log. The getFile API endpoint, available to any authenticated user, provides a retrieval path for that log file. The combination of token-in-query-parameter design and threshold-triggered verbose logging creates a reliable, low-skill path from authenticated low-privilege access to admin token recovery.
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:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-accessible attack requires low-privilege authentication; no scope change; admin token recovery enables full confidentiality, integrity, and availability compromise of the SiYuan instance.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
SiYuan before v3.8.2 logs API tokens from query parameters in plaintext to an accessible log file when full-text search requests exceed timing thresholds. Authenticated attackers can read the log file via the getFile endpoint to recover admin API tokens and gain permanent administrative access.
Technical POC Analysis
CWE-532: Insertion of Sensitive Information into Log File.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
SiYuan's full-text search logging mechanism exposes administrative API tokens in plaintext log files, allowing authenticated users to escalate to permanent administrative access on all self-hosted instances before version 3.8.2. Organizations running affected SiYuan deployments face complete system compromise, as users with legitimate access can retrieve admin credentials through the built-in file endpoint without requiring additional exploitation. This privilege escalation vulnerability represents a critical control plane risk for any organization storing sensitive data in self-hosted SiYuan instances.
Apply vendor patch: update all affected SiYuan instances to version 3.8.2 or later.
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-70409
GHSA-gw65-q899-j639
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB