6.9medium
SiYuan: Information Disclosure and Authentication Bypass via Hardcoded Session Secret
- Severity
- 6.9medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.36% (higher than 22% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
SiYuan is self-hosted, open source personal knowledge management software. In versions 3.5.1 and prior, the SiYuan Note application utilizes a hardcoded cryptographic secret for its session store. This unsafe practice renders the session encryption ineffective. Since the sensitive AccessAuthCode is stored within the session cookie, an attacker who intercepts or obtains a user's encrypted session cookie (e.g., via session hijacking) can locally decrypt it using the public key. Once decrypted, the attacker can retrieve the AccessAuthCode in plain text and use it to authenticate or take over the session.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| siyuan-note siyuan | <= 3.5.1 | CVE List |
| b3log siyuan | before 3.5.2 | NVD |
All scores
| GitHub_M | 6.9medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
SiYuan is self-hosted, open source personal knowledge management software. In versions 3.5.1 and prior, the SiYuan Note application utilizes a hardcoded cryptographic secret for its session store. This unsafe practice renders the session encryption ineffective. Since the sensitive AccessAuthCode is stored within the session cookie, an attacker who intercepts or obtains a user's encrypted session cookie (e.g., via session hijacking) can locally decrypt it using the public key. Once decrypted, the attacker can retrieve the AccessAuthCode in plain text and use it to authenticate or take over the session.
NVD (es)
SiYuan es un software de gestión de conocimiento personal autoalojado y de código abierto. En las versiones 3.5.1 y anteriores, la aplicación SiYuan Note utiliza un secreto criptográfico codificado de forma rígida para su almacén de sesión. Esta práctica insegura invalida el cifrado de la sesión. Dado que el sensible AccessAuthCode se almacena dentro de la cookie de sesión, un atacante que intercepta u obtiene una cookie de sesión cifrada de un usuario (por ejemplo, mediante secuestro de sesión) puede descifrarla localmente utilizando la clave pública. Una vez descifrado, el atacante puede recuperar el AccessAuthCode en texto plano y usarlo para autenticarse o tomar el control de la sesión.
References
| https://github.com/siyuan-note/siyuan/security/advisories/GHSA-f7ph-rc3w-qp28 | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68948 changed 2025-12-29 | CVE Terms of Use |
| NVD | CVE-2025-68948 changed 2026-10-13 | Public domain |