Skip to main content

SiYuan Note CVE-2025-68948

MEDIUM
Use of Hard-coded Cryptographic Key (CWE-321)
2025-12-27 security-advisories@github.com
6.9
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Intercept victim's encrypted session cookie
  2. Delivery
    Extract encrypted cookie value
  3. Exploit
    Decrypt offline using hardcoded public key
  4. Execution
    Recover plaintext AccessAuthCode
  5. Impact
    Authenticate and take over session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Key management, no hard-coded keys
Exploitation Conditions

Exploitation requires the attacker to FIRST obtain the victim's encrypted session cookie - e.g., via session hijacking, man-in-the-middle on a SiYuan instance served over plaintext HTTP, cross-site scripting, or local filesystem/browser access. Given the hardcoded session secret, decryption of that cookie with the public key is then trivial and offline, yielding the plaintext AccessAuthCode. Limiting factors: no vulnerability exists without prior cookie acquisition (there is no direct remote trigger against a default install); SiYuan is frequently self-hosted bound to localhost, which sharply reduces network interception surface for such deployments; the flaw is limited to versions 3.5.1 and prior.

Impact

This is a medium-severity, defense-in-depth-style weakness (CWE-321, hardcoded cryptographic secret) rather than a directly weaponizable remote flaw. The vendor's CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with score 6.9 implies unauthenticated network exploitation against the vulnerable system with low confidentiality impact (VC:L) and no integrity/availability impact - but this is misleading in isolation: the description makes clear that exploitation is PREDICATED on the attacker first intercepting or obtaining the victim's encrypted session cookie (via session hijacking, MITM, XSS, or local access). That precondition is a material limiting factor the raw vector understates; I would model it as AC:H / AT:P. EPSS is low at 0.22% (12th percentile), the CVE is NOT on CISA KEV, and there is no evidence of active exploitation - so despite publicly available exploit information, real-world mass exploitation probability is low. Signals are internally consistent (low EPSS, no KEV, dependency on a prior cookie-compromise step all point to low widespread risk), but the vendor's VC:L undersells the OUTCOME: once the AccessAuthCode is recovered the attacker gains full session takeover, which is effectively high confidentiality AND integrity impact to that instance - I flag this impact-scoring disagreement explicitly. Net: a genuine security weakness worth patching, but not an emergency; prioritize for internet-exposed self-hosted instances over localhost-only deployments.

Exploit ScenarioDerived

An attacker obtains a SiYuan user's encrypted session cookie - for example by sniffing traffic on a self-hosted instance served without TLS, or via session hijacking. Because the session store uses a hardcoded secret, the attacker decrypts the cookie offline using the known public key, recovers the plaintext AccessAuthCode, and replays it to authenticate as the victim and take over the session. Publicly available exploit information exists via the GitHub security advisory, lowering the skill barrier.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 13, 2026

SiYuan Note 3.5.1 and earlier encrypts its session cookies with a hardcoded cryptographic secret, which makes that encryption ineffective: anyone who already possesses a victim's encrypted session cookie can decrypt it offline with the public key, recover the plaintext AccessAuthCode, and reuse it to authenticate as that user or take over the session. The weakness is remotely reachable and unauthenticated in the CVSS sense (PR:N), but it has no self-contained remote trigger - the attacker must first obtain the cookie through a separate primitive such as session hijacking, cleartext-HTTP interception, XSS, or local browser/filesystem access, and self-hosted instances bound to localhost have a sharply reduced interception surface. Publicly available exploit code exists, but there is no confirmed active exploitation (no CISA KEV listing) and the EPSS score is low at 0.22% (12th percentile), so this is best treated as a medium-severity defense-in-depth weakness rather than a directly weaponizable remote flaw.

RemediationAI

No exact vendor-released patch version is identified in the supplied data, so the primary action is to confirm the fixed release with the SiYuan project via the GitHub advisory GHSA-f7ph-rc3w-qp28 (https://github.com/siyuan-note/siyuan/security/advisories/GHSA-f7ph-rc3w-qp28) and upgrade every instance at or below 3.5.1 as soon as a patched build is available. Until then, apply compensating controls targeted at the real prerequisite - cookie theft - since the hardcoded key itself cannot be changed without a vendor fix: terminate all access over TLS/HTTPS with HSTS so session cookies are never transmitted in cleartext (cost: some setup and certificate management, and it does not help against XSS or local access); bind SiYuan to 127.0.0.1 or place it behind a VPN/authenticated reverse proxy so the HTTP interface is not reachable from untrusted networks (cost: loses convenient remote access); ensure session cookies carry Secure, HttpOnly, and SameSite=Strict attributes to blunt XSS and cross-site leakage (cost: may break some embedded or cross-origin workflows); harden against XSS in any content or plugins loaded into the workspace, since script execution in the SiYuan origin bypasses the transport protections (cost: requires ongoing content hygiene and plugin vetting). Because the leaked AccessAuthCode remains valid until rotated, also rotate the AccessAuthCode, invalidate active sessions, and treat any historically exposed cookie as compromised - note that rotation is a break-glass response, not a fix, since the hardcoded secret will re-encrypt new cookies with the same recoverable key. Monitor access logs for anomalous reuse of sessions and prioritize patching internet-exposed instances once the vendor fix is confirmed.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-321 (Use of a Hard-coded Cryptographic Key): SiYuan's session store derives its encryption from a secret embedded in the application rather than from per-deployment key material or a secure keystore. Because the key is shipped with the software and therefore effectively public, the symmetric protection around the session cookie collapses - decryption is a deterministic offline operation requiring only the cookie value. That matters because the cookie carries the sensitive AccessAuthCode, SiYuan's authentication token; recovering it in plaintext grants the same access the legitimate user holds. The affected package is tracked as cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*, i.e., the SiYuan project's self-hosted personal knowledge management application, through version 3.5.1. Note the divergence between the NVD CVSS 4.0 base score of 6.9 (VC:L, no integrity or availability impact) and the internal assessment of CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N, which rates confidentiality and integrity as high but acknowledges high attack complexity precisely because a prerequisite cookie-theft step is required before the hardcoded secret becomes exploitable.

Know when Siyuan gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 6.9 MEDIUM
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
vuln.today AI 7.4 HIGH

Requires first obtaining the victim's session cookie (AC:H), no privileges or interaction on the target; trivial decryption then yields full session takeover, so C:H/I:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Low
niche self-hosted open-source personal knowledge management app
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:*

More in Siyuan

View all
CVE-2026-69083 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role

CVE-2026-54067 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a

CVE-2026-69084 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements

CVE-2026-54158 CRITICAL POC
9.9 Jun 24

Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,

CVE-2026-69085 CRITICAL POC
9.9 Aug 03

SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr

CVE-2024-53507 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t

CVE-2024-53506 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R

CVE-2024-53505 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti

CVE-2024-53504 CRITICAL POC
9.8 Nov 29

A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c

CVE-2026-23852 CRITICAL POC
9.6 Jan 19

SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex

CVE-2026-56397 CRITICAL POC
9.4 Jun 21

Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package

CVE-2026-54069 CRITICAL POC
9.2 Jun 24

Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy