Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege Reader
-
DeliveryIdentify publish-referenced widget package
-
ExploitPOST /api/file/getFile for credentials.json
-
ExecutionBypass sensitive-path guard in getFile
-
ImpactExfiltrate stored API keys and tokens
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery 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 SiYuan 'Reader' session (PR:L) - not anonymous/unauthenticated access, and not administrator, widget-package-owner, or workspace-write privileges. Beyond authentication, exploitation depends on a specific, non-default content state: the target widget package must be installed, publish-enabled, referenced by a publish-allowed document, and must actually contain a credential-named regular file (e.g. credentials.json or an id_* name) matching the sensitive-path naming the generic static handler would otherwise reject. The attacker then requests that file via POST /api/file/getFile, where the publish-package fast path returns bytes before applying the IsSensitivePath filename policy. Limiting factors that reduce realistic risk: the Reader authentication requirement, and the dependency on a publish-referenced widget that stores secrets in a sensitively-named file - environments with no such widget/credential file present are not exposed. |
| Impact | This is a genuine but conditional priority rather than a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/SC:H) describes a network-reachable, low-complexity information-disclosure flaw that requires only low privileges - specifically an authenticated 'Reader' role - and yields high confidentiality impact on both the vulnerable system and a subsequent system (SC:H), reflecting that the leaked data is credentials/API keys usable against external services. The score of 8.3 (High) is credible given VC:H plus SC:H. However, several signals temper real-world urgency: no EPSS score is provided in the input, there is no CISA KEV listing (no evidence of active exploitation), and exploitation is gated behind authenticated access plus a non-default content state (a publish-enabled widget actually containing a credential-named file referenced by a publish-allowed document). The vuln.today Decision label is 'this_week', consistent with a serious-but-not-immediate priority. A detailed PoV and a reproducible PoC test harness are published in the vendor GHSA advisory, which raises practical exploitability for anyone who can reach an authenticated session, but the input does not flag a confirmed weaponized exploit in the wild. Net: prioritize patching to v3.8.9 within the vendor-aligned 'this_week' window; the gating conditions (authentication plus specific widget/publish configuration) make this targeted rather than mass-exploitable. |
| Exploit ScenarioDerived | An attacker who holds or obtains a low-privilege authenticated Reader session on a SiYuan instance sends a POST to /api/file/getFile with a path like /data/widgets/<package>/credentials.json for a publish-referenced widget. Because the publish-package fast path returns the file bytes before applying the sensitive-path filename policy, the Reader receives the raw credential file and harvests API keys or tokens stored in it. A detailed PoV and a reproducible PoC test harness are published in the vendor GHSA advisory, lowering the practical barrier for an authenticated attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 13, 2026
SiYuan before 3.8.9 lets an authenticated Reader account read credential-named files (such as credentials.json or id_* names) that live inside an installed widget package, because the /api/file/getFile package-publish fast path returns the file bytes before the sensitive-path filename policy is applied. Exploitation requires only a Reader session - not administrator, widget-owner, or workspace-write privileges - but also depends on a non-default content state: the widget must be installed, publish-enabled, referenced by a publish-allowed document, and must actually contain a sensitively named file holding API keys, tokens, or other secrets. There is no KEV entry and no confirmed working exploit code; the public advisory includes a PoC reference in the form of an integration test harness that exercises the shipped handlers, which is not verified as weaponized exploit code. Severity is high on paper (8.3 under CVSS 4.0, with confidentiality and subsequent-system impact rated High) but conditional in practice, making this a prioritize-this-week item rather than a drop-everything emergency.
RemediationAI
Vendor-released patch: upgrade to SiYuan 3.8.9, the first fixed release (vulnerable range is <= 3.8.8 per the npm package metadata; EUVD lists 0 <3.8.9). The fix is contained in commit d122dee55e8d3c77de313d0ad6efae8b6b0ebc07, which extends the API package-file path to apply the same sensitive-path filename policy already used by the static-file handler, and the related test selection was widened to cover the publish-file cases. Verify the upgrade against the advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-3pm7-cc76-7j2p and the VulnCheck advisory for the deployment context. The available sources do not document a configuration workaround, so upgrading is the complete remediation; until then, the practical exposure boundary described in the advisory is that a leak requires a publish-referenced widget that actually stores secrets in a sensitively named file (for example credentials.json), so removing such files from published widget packages eliminates the data the bypass can return, at the cost of the widget losing whatever credential access it relied on.
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 a missing-authorization/information-exposure defect (CWE-200, with CWE-862 also assigned in the GitHub advisory) in SiYuan's file-serving code. GetFile is an AuthenticatedAccess endpoint; in kernel/api/file.go the getFile handler routes any non-administrator request whose path is recognized by model.OpenPublishPackageFile through a package-publish fast path before it resolves the workspace path or calls refuseToAccess. When that helper returns a file, getFile reads it with io.ReadAll and immediately responds with SuccessBinary. OpenPublishPackageFile matches data/widgets/<package>/<resource>, validates the relative path, enforces CheckWidgetAccessableByPublishAccess (a valid, publish-enabled package referenced by an accessible document), and then calls util.OpenPublishFile on the widgets/ resource. OpenPublishFile rejects path traversal, symlinked path components, non-regular files, and file-identity changes, but it performs no filename policy check. The generic serveStaticFile path, by contrast, calls util.IsSensitivePath on the resolved real path before serving, and IsSensitivePath rejects names beginning with 'credentials' or 'id_' among other sensitive locations - so the equivalent static request is refused. The API package branch treats publish-reference authorization as sufficient, which is the invariant violation: every Reader-visible package-file response must apply the sensitive-path filename policy before opening and returning bytes while retaining the existing widget publish-reference and confinement checks. Because the leaked files commonly hold third-party API keys and tokens, downstream compromise of connected services is the reason the assessed scope change (S:C) and subsequent confidentiality impact (SC:H) are rated High.
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:N/VA:N/SC:H/SI:N/SA:N
Network-reachable endpoint with low complexity; requires an authenticated Reader (PR:L); scope change (S:C) because leaked credentials belong to external systems; high confidentiality only, no integrity or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
SiYuan before 3.8.9 contains an information disclosure vulnerability that allows authenticated Reader users to retrieve credential-named widget files by bypassing the sensitive-path guard in getFile. Attackers can request paths like /data/widgets/<package>/credentials.json for publish-referenced widgets to obtain API keys, tokens, or other stored secrets.
Technical POC Analysis
The bug class is CWE-200 (Exposure of Sensitive Information), with a secondary CWE-862 (Missing Authorization) flavour: the file-level name policy is simply absent on one of two code paths that serve…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity flaw in SiYuan (before version 3.8.9) could allow any authenticated Reader to access sensitive credential files embedded in installed widget packages, potentially exposing API keys and tokens. While exploitation requires a specific, non-default configuration (publish-enabled widget with sensitive files), the risk of unauthorized access to organizational secrets is significant, especially if SiYuan is used for collaborative knowledge management.
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-125257
GHSA-ccpq-6vhp-2mrj
NVD
CVE.org
EPSS
Exploit-DB