SiYuan Note
CVE-2025-68948
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIntercept victim's encrypted session cookie
-
DeliveryExtract encrypted cookie value
-
ExploitDecrypt offline using hardcoded public key
-
ExecutionRecover plaintext AccessAuthCode
-
ImpactAuthenticate 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
SQL injection in SiYuan's fullTextSearchAssetContent endpoint lets unauthenticated attackers and holders of publish Role
Stored cross-site scripting in SiYuan personal knowledge management before 3.7.0 lets an attacker with write access to a
SQL injection in SiYuan personal knowledge management (versions <= v3.7.2) lets attackers pass arbitrary SQL statements
Stored cross-site scripting in SiYuan's attribute-view (database) cell renderer, affecting all versions prior to 3.7.0,
SQL injection in SiYuan personal knowledge-management software (all versions before v3.7.3) lets attackers inject arbitr
A SQL injection vulnerability was discovered in Siyuan 3.1.11 in /getHistoryItems. Rated critical severity (CVSS 9.8), t
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the ids array parameter in /batchGetBlockAttrs. R
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the id parameter at /getAssetContent. Rated criti
A SQL injection vulnerability has been identified in Siyuan 3.1.11 via the notebook parameter in /searchHistory. Rated c
SiYuan personal knowledge management system prior to 3.5.4 has a stored XSS vulnerability (CVSS 9.6) that allows code ex
Remote code execution in SiYuan note-taking application (before v3.6.1) allows any malicious Bazaar marketplace package
Origin-validation bypass in SiYuan Note (open-source personal knowledge management) before 3.7.0 lets any installed Chro
NVD
CVE.org
EPSS
GitHub
Exploit-DB