Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim authenticates to networked SiYuan instance
-
DeliveryAttacker hosts malicious page with forged SiYuan API request
-
ExploitVictim browses attacker page in same browser session
-
ExecutionBrowser appends session cookie to cross-origin request
-
PersistCheckAuth() accepts request without Origin/Referer validation
-
ImpactUnauthorized action executes on victim's account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V3 - Web Frontend Security Anti-CSRF tokens, SameSite cookies
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Three conditions must align: (1) The victim must have an active authenticated SiYuan session in the browser at the time of attack. (2) The SiYuan instance must be reachable from the browser making the cross-origin request - localhost-only deployments are not exploitable from external pages in standard browser security models. (3) The browser's SameSite default policy must permit the cross-origin cookie submission for the specific HTTP method used - modern browsers defaulting to SameSite=Lax block cross-origin POST but may allow certain GET-triggered requests, constraining which API actions can be forged. Passive user interaction is required: the victim must visit attacker-controlled content (UI:P). Exploitation is not possible against isolated localhost-bound SiYuan instances when the attacker cannot reach the service, nor against users who are not currently authenticated. |
| Impact | The CVSS 4.0 score of 2.3 accurately reflects low real-world priority. AC:H indicates high attack complexity: the browser's SameSite default behavior, the user's session state, and the network reachability of the SiYuan instance must all align simultaneously. AT:P (attack requirements: present) further confirms specific preconditions are necessary. UI:P requires passive victim interaction - the user must visit attacker-controlled content while authenticated. Impact is bounded: VC:L/VI:L captures limited note data exposure and integrity modification; VA:N and all subsequent-system metrics are N, consistent with SiYuan being a personal-scope application. No EPSS data was provided in the input; no CISA KEV listing is noted; no public POC has been identified. The primary real-world risk concentrates on networked or shared SiYuan deployments (e.g., team instances or cloud-hosted) rather than the common localhost-only personal deployment pattern. CVSS signals are internally consistent with the description - no conflicting data identified. |
| Exploit ScenarioDerived | An attacker hosts a malicious web page containing a hidden form or JavaScript fetch targeting a SiYuan API endpoint (e.g., to delete notes or modify workspace settings). When an authenticated SiYuan user on a networked or shared deployment visits that page in the same browser, the browser automatically attaches the valid SiYuan session cookie to the cross-origin request. Because CheckAuth() performs no Origin or Referer check, the forged request is processed as legitimate, executing the unauthorized action. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 17, 2026
Cross-site request forgery in SiYuan's CheckAuth() session-cookie authentication branch affects all versions before 3.7.4, allowing remote attackers to perform unauthorized actions on behalf of authenticated users. The session-cookie code path neither validates Origin nor Referer headers, and omits an explicit SameSite attribute on session cookies, leaving browser-default SameSite policies as the sole defense - a gap exploitable via a crafted malicious page when the victim has an active authenticated session. The CVSS 4.0 score of 2.3 reflects genuinely constrained real-world risk; no public exploit has been identified and no active exploitation is confirmed.
RemediationAI
Upgrade to SiYuan 3.7.4 or later, which corrects the CSRF deficiency in CheckAuth() per the vendor advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-hhm2-g993-p656. If immediate patching is not feasible, restrict the SiYuan listening address to localhost (127.0.0.1 only) to prevent any cross-origin browser request from a third-party page from reaching the service - this eliminates the network pathway CSRF depends on, though it limits multi-device access. As an additional browser-side measure, users should avoid browsing untrusted sites in the same browser session as an active SiYuan login until the upgrade is applied. Do not rely on browser SameSite defaults as a primary control, as behavior varies across browser versions and enterprise configurations.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
SiYuan is an open-source personal knowledge management and note-taking application (CPE: cpe:2.3:a:siyuan-note:siyuan). The vulnerable code resides in CheckAuth(), the function responsible for validating user sessions via cookies. The session-cookie authentication branch specifically omits two standard CSRF mitigations: server-side validation of the Origin and Referer HTTP headers, and an explicit SameSite cookie attribute. CWE-352 (Cross-Site Request Forgery) describes this exact class: the server cannot distinguish a legitimate same-origin request from a cross-origin forged one because it relies on cookie presence alone. Without SameSite=Strict or SameSite=Lax enforced at the application layer, the defense degrades to whatever the browser applies by default - Lax in modern browsers, which blocks cross-origin POST under most navigation patterns but permits certain GET-triggered flows, and potentially None in older or enterprise-configured browsers.
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:H/AT:P/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Network vector applies to cross-origin browser requests; AC:H captures aligned preconditions; PR:N because the attacker needs no credentials; UI:R for mandatory victim interaction; no scope change; C:L and I:L reflect limited note data access and modification.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
SiYuan versions before 3.7.4 contain a cross-site request forgery vulnerability in the session-cookie authentication branch of CheckAuth() that lacks Origin/Referer validation and sets no explicit SameSite attribute on session cookies. Attackers can craft malicious web pages that perform unauthorized actions on behalf of authenticated users by submitting requests with valid session cookies, relying on browser default SameSite policies rather than server-enforced protections.
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
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
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
EUVD-2026-60086
GHSA-ph2h-92xh-5vmg
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB