CVE-2025-68948
JSON

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 packageVersionsReported by
siyuan-note siyuan<= 3.5.1CVE List
b3log siyuanbefore 3.5.2NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-321CWE-798

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2025-68948 changed 2025-12-29CVE Terms of Use
NVDCVE-2025-68948 changed 2026-10-13Public domain