Account takeover via hard-coded session key
Published Dec 27, 2025 · Updated Dec 27, 2025
Hard-coded key use in SiYuan 3.5.1 and earlier allows attackers holding a user session cookie to recover the AccessAuthCode. The initSession function in kernel/server/serve.go initializes the cookie store with a static source-code string, making its encrypted session payload decryptable. Exploitation requires interception or theft of a valid cookie; the recovered authorization code permits direct authentication and persistent account takeover.
Summary
What happened
Hard-coded key use in SiYuan 3.5.1 and earlier allows attackers holding a user session cookie to recover the AccessAuthCode. The initSession function in kernel/server/serve.go initializes the cookie store with a static source-code string, making its encrypted session payload decryptable. Exploitation requires interception or theft of a valid cookie; the recovered authorization code permits direct authentication and persistent account takeover.
The record
- CVE
- CVE-2025-68948
- Published
- Dec 27, 2025
- Updated
- Dec 27, 2025
- Vendor
- SiYuan Note
- Product
- SiYuan
- Classifications
- CWE-321, CWE-798, T1550.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Dec 27, 2025CVE publishedPublication date reported by the CVE source.
- Dec 27, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=<= 3.5.1
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- SiYuan session-cookie decryption PoCproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo