CVE-2025-68948 SiYuan: Information Disclosure and Authentication Bypass via Hardcoded Session Secret

Medium 6.9 Published Updated

Attackers can decrypt session cookies using a hardcoded secret to steal authentication codes and take over user accounts in SiYuan.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-68948?

CVE-2025-68948 is a medium-severity vulnerability in B3log Siyuan, published on 27 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-798, CWE-321

Which versions are affected by CVE-2025-68948?

It affects 1 product.

Products include B3log Siyuan.

How do I fix CVE-2025-68948?

No fix has been published for CVE-2025-68948 yet. Limit exposure of the affected software until one is available.

Is CVE-2025-68948 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-68948 exists.

All B3log Siyuan vulnerabilities

Sources

Also known as GHSA-f7ph-rc3w-qp28.

Is CVE-2025-68948 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free