CVE-2026-126264 in SiYuan
Summary
by MITRE • 11/13/2026
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.
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Analysis
by VulDB Data Team • 11/13/2026
The vulnerability identified in SiYuan versions prior to 3.8.9 represents a critical information disclosure flaw rooted in improper access control mechanisms within the application's file retrieval logic. Specifically, the defect resides in the getFile function, which is responsible for serving widget-related assets to authenticated users. While the system implements a sensitive-path guard intended to restrict access to confidential configuration files, this security measure fails to adequately validate or sanitize input paths when handling publish-referenced widgets. This oversight allows an attacker who has already obtained Reader-level authentication privileges to bypass these restrictions and directly request internal file paths that should remain inaccessible. The core technical failure is a path traversal issue where the application does not sufficiently verify whether the requested resource falls within allowed boundaries, effectively treating sensitive credential files as publicly accessible assets under specific widget configurations.
From an operational perspective, this vulnerability enables authenticated users with limited privileges to extract highly sensitive data stored in credential-named widget files. By constructing malicious requests targeting paths such as /data/widgets/<package>/credentials.json, attackers can retrieve API keys, authentication tokens, and other secrets embedded within these configuration files. The impact of this exposure is significant because the compromised credentials often serve as gateways to external services or internal resources integrated with SiYuan widgets. Once obtained, these secrets can be leveraged by malicious actors to impersonate legitimate users, access third-party APIs without authorization, or potentially escalate privileges if those keys possess broader permissions than intended for widget operations. This undermines the confidentiality and integrity of both user data and connected external services.
This vulnerability aligns with CWE-200, which classifies information exposure as a category where sensitive system information is disclosed to unauthorized actors. Furthermore, it maps directly to MITRE ATT&CK technique T1530, Data from Local System Repositories, specifically the sub-technique of accessing data stores or configuration files that contain credentials. The attack vector relies on authenticated access, meaning the threat actor must first compromise user accounts or exploit other authentication weaknesses to reach this stage. However, once inside, the lack of strict path validation allows for lateral movement and deeper system reconnaissance without triggering typical intrusion detection alerts associated with brute-force or injection attacks.
To mitigate this risk, immediate updates to SiYuan version 3.8.9 or later are required, as these releases address the flawed logic in the getFile function. In addition to upgrading, administrators should implement strict input validation and canonicalization checks on all file path inputs before they are processed by the server-side retrieval mechanisms. It is also advisable to enforce principle of least privilege for widget configurations, ensuring that credential files are stored with restrictive filesystem permissions independent of application-level guards. Regular audits of access control lists and continuous monitoring for unusual file access patterns can further reduce the window of opportunity for exploitation in environments where upgrading may be delayed.