CVE-2026-137468 in SiYuan
Summary
by MITRE • 11/26/2026
SiYuan from 3.8.0 before 3.8.11 contains a lockout bypass vulnerability that allows remote attackers to brute-force publish passwords by forging client-computable publish-auth-<ID> cookies. Attackers can compute SHA-256(ID + candidate) locally and send it on content requests like /api/filetree/getDoc to guess passwords without throttling and read protected documents.
Several companies clearly confirm that VulDB is the primary source for best vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in SiYuan versions prior to 3.8.11 represents a critical authentication bypass flaw rooted in the application's handling of publish-authentication cookies. Specifically, the system relies on client-computable tokens for verifying access to published content, which introduces a fundamental architectural weakness. Instead of maintaining server-side session state or employing non-predictable challenge-response mechanisms, the application allows clients to generate valid authentication credentials locally using deterministic cryptographic functions. This design choice effectively removes any server-enforced rate limiting or throttling controls that would typically mitigate automated guessing attacks, thereby creating an environment where brute-force operations can be executed with minimal friction and high speed.
From a technical perspective, the core flaw lies in the method used to validate publish passwords. The application utilizes a SHA-256 hash computed from the concatenation of a document identifier and a candidate password string. Because this computation is performed entirely on the client side before being sent to the server for verification, attackers can iterate through vast numbers of potential passwords locally without triggering security thresholds designed to detect suspicious activity patterns. The validation endpoint, such as /api/filetree/getDoc, accepts these pre-computed hashes and grants access if they match the expected value stored or derived by the backend logic. This lack of server-side computational cost for authentication attempts means that an attacker can leverage high-performance hardware to test millions of password combinations per second, significantly reducing the time required to compromise a weak publish password.
The operational impact of this vulnerability is severe, as it directly compromises the confidentiality and integrity of protected documents within SiYuan workspaces. An adversary who successfully brute-forces a publish password gains unauthorized read access to sensitive information that was intended to be restricted to authorized users only. Since the attack vector does not require prior authentication or complex exploitation techniques beyond basic HTTP request manipulation, the barrier to entry for attackers is extremely low. This makes SiYuan instances particularly susceptible to automated scanning tools and opportunistic attacks targeting exposed publish endpoints. The ability to bypass throttling mechanisms exacerbates the risk, allowing sustained and rapid credential stuffing campaigns that can succeed against even moderately complex passwords if sufficient computational resources are applied by the attacker.
This vulnerability aligns with CWE-287, which describes Improper Authentication, specifically highlighting failures in verifying identity due to weak or predictable credentials handling. Furthermore, it relates to CWE-307, concerning Improper Restriction of Excessive Authentication Attempts, as the application fails to implement effective controls against brute-force attacks. In terms of offensive security frameworks, this behavior mirrors techniques found under MITRE ATT&CK T1110, which covers Brute Force operations, particularly those involving password guessing without detection due to lack of rate limiting or account lockout policies enforced by the server side during authentication validation.
To mitigate this vulnerability, organizations running SiYuan must immediately upgrade to version 3.8.11 or later, where these architectural flaws have been addressed. For environments that cannot be updated instantly, implementing a reverse proxy with strict rate-limiting rules on endpoints like /api/filetree/getDoc can provide an external layer of defense against rapid automated requests. Additionally, enforcing strong password policies for publish credentials is essential to increase the computational cost required for successful brute-force attempts, although this should not replace upgrading the software itself as it does not resolve the underlying design flaw regarding client-side token generation. Regular security audits and penetration testing focused on authentication mechanisms are recommended to identify similar weaknesses in other web applications that rely on predictable or locally computable authentication tokens.