
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68948 is an information disclosure and authentication bypass vulnerability in SiYuan Note, a self-hosted open-source personal knowledge management application. The vulnerability stems from the use of a hardcoded cryptographic secret in the session store, rendering session cookie encryption ineffective. It affects SiYuan versions 3.5.1 and earlier, with version 3.5.2 containing the fix. The vulnerability was published on December 26–27, 2025, and carries a CVSS v3.1 base score of 8.1 (High) (GitHub Advisory, Red Hat CVE).
The root cause is classified as CWE-321 (Use of Hard-coded Cryptographic Key) and CWE-798 (Use of Hard-coded Credentials). The vulnerable component is the initSession function in kernel/server/serve.go, where the application initializes the cookie store using a static string hardcoded in the source code as the encryption and signing key. Because the key is publicly visible in the GitHub repository, any attacker who obtains a user's session cookie can decrypt it locally using the known key to extract the AccessAuthCode — the user's primary authentication credential. A public proof-of-concept script demonstrating the decryption process is available at https://gist.github.com/28Hus/1dfc3e2abaf9b099686c992296a89c8f (GitHub Advisory).
Successful exploitation allows an attacker to decrypt intercepted session cookies and recover the AccessAuthCode in plaintext, enabling full account takeover of the SiYuan instance. Unlike standard session hijacking (which is limited by session expiry), possession of the AccessAuthCode allows the attacker to generate new valid sessions indefinitely, granting persistent administrative access to private notes and potentially the underlying server. The confidentiality, integrity, and availability of the knowledge management system are all at risk (GitHub Advisory).
A public proof-of-concept script is available on GitHub Gist, demonstrating cookie decryption using the hardcoded key. There is no current evidence of in-the-wild exploitation, and no threat actor attribution has been reported. The vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.023% (very low probability of near-term exploitation), though the availability of a working PoC lowers the barrier for exploitation (GitHub Advisory, Feedly).
kernel/server/serve.go (the initSession function).https://gist.github.com/28Hus/1dfc3e2abaf9b099686c992296a89c8f) with the intercepted cookie value as input, using the hardcoded key to decrypt the session payload.AccessAuthCode from the decrypted session.AccessAuthCode to authenticate directly to the SiYuan instance, gaining full administrative control and persistent access to private notes and server resources (GitHub Advisory).AccessAuthCode from different clients.Users should immediately upgrade SiYuan to version 3.5.2 or later, which contains the fix for this vulnerability. If immediate patching is not possible, restrict network access to SiYuan instances (e.g., bind to localhost or use a VPN/firewall) to prevent session cookie interception, and ensure HTTPS is enforced to protect cookies in transit. Review authentication logs for suspicious activity during the period the vulnerable version was in use (GitHub Advisory).
The vulnerability was reported by security researcher 28Hus and disclosed via GitHub's security advisory program. A technical write-up was published at https://infinitsec.net/posts/cve-2025-68948-siyuan-information-disclosure-and-authentication-bypass-via-hardcoded-session-s, providing additional context on the issue. The vulnerability received coverage from automated CVE tracking services and security aggregators, but no major vendor statements or widespread community debate have been noted beyond the initial advisory.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."