CVE-2025-68948CWE-321CWE-798hardcoded-credentials

CVE-2025-68948

High · published December 27, 2025

CVSS v3.1
8.1
EPSS
0%
Percentile
11.9
In the wild
Unconfirmed
What it is

⚠️ A hardcoded cryptographic secret in SiYuan is like hiding the key to your safe under a doormat — it's just too easy to find! 🔍 Think of it as a restaurant where the secret recipe is written on a public menu. Anyone who gets hold of it can whip up the dish without breaking a sweat! An attacker who intercepts a user's session cookie can decrypt it using the public key, gaining access to sensitive information like the AccessAuthCode. This could allow them to hijack the user's session, leading to unauthorized access and potential data breaches. Yikes!

Put simply

Think of it as a restaurant where the secret recipe is written on a public menu. Anyone who gets hold of it can whip up the dish without breaking a sweat! In SiYuan versions 3.5.1 and prior, the hardcoded cryptographic secret makes session encryption ineffective, allowing attackers to decrypt session cookies easily and access sensitive data.

What to do

An attacker who intercepts a user's session cookie can decrypt it using the public key, gaining access to sensitive information like the AccessAuthCode. This could allow them to hijack the user's session, leading to unauthorized access and potential data breaches. Yikes! Update SiYuan to the latest version where this issue is addressed, and consider implementing stronger session management techniques. Additionally, review your session handling practices to ensure sensitive information is not exposed. You've got this! By updating and following these steps, you're on your way to securing your SiYuan experience! 🛡️

The record
Technical detail
CVSS v3.1
8.1 · HIGH
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00221 · 11.9th percentile
Weaknesses
CWE-321 · Use of Hard-coded Cryptographic Key; CWE-798 · Use of Hard-coded Credentials
Published
2025-12-27T06:15Z
Affected products (1)
ProductVersionsFixed in
b3log/siyuan< 3.5.23.5.2
References (2)
EPSS history
Timeline
  • 27 DEC 00:21Z
    SiYuan: Information Disclosure and Authentication Bypass via Hardcoded Session Secret
    cvelistv5