Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessVictim visits malicious website
-
DeliveryWebsite exploits permissive CORS policy
-
ExploitInject malicious JavaScript via SiYuan API
-
ExecutionExecute code in Electron Node.js context
-
ImpactAchieve full OS-level remote code execution
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration CORS policy restriction
|
| Exploitation Conditions | SiYuan desktop versions prior to 3.6.2 with permissive CORS policy (Access-Control-Allow-Origin: * and Access-Control-Allow-Private-Network: true) enabled. Attacker delivers malicious website; victim must visit it while SiYuan runs. Injected JavaScript executes in Electron's Node.js context with full OS access on next UI open. |
| Impact | Real-world risk is high despite requiring user interaction (UI:R). The CVSS 9.6 Critical rating accurately reflects severity: network attack vector (AV:N) with low complexity (AC:L), no authentication required (PR:N), scope change (S:C) indicating escape from browser sandbox to OS context, and complete CIA impact (H/H/H). The attack requires only that a user browse the web while SiYuan is running-a common scenario for knowledge management software used during research activities. No active exploitation confirmed (no KEV status provided), and no public exploit identified at time of analysis, but the technical barrier is low given that exploitation requires only crafting malicious web content and understanding documented API endpoints. The Electron RCE tag indicates this follows known patterns of Electron security failures. SSVC decision framework suggests priority remediation: exploitation is plausible (low technical complexity), automatable (malicious sites can be deployed at scale), and technical impact is total system compromise. The primary mitigating factor is UI:R requirement, but drive-by browsing represents realistic exposure for knowledge workers who are SiYuan's target demographic. Patch availability in version 3.6.2 makes this immediately actionable. |
| Exploit ScenarioDerived | An attacker hosts a malicious website containing JavaScript that targets SiYuan's localhost API. When a victim running SiYuan (pre-3.6.2) visits this site during normal web browsing, the permissive CORS policy allows the attacker's script to make cross-origin requests to inject a persistent JavaScript payload via the API. The next time the victim opens SiYuan's interface, the injected code executes in Electron's Node.js context with full access to filesystem operations, process spawning, and network capabilities-effectively granting the attacker complete control over the victim's system. The attacker could exfiltrate the user's knowledge base, install persistent malware, or pivot to network resources accessible from the victim's machine, all without further user interaction beyond the initial site visit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 31, 2026
Remote code execution in SiYuan desktop application (versions prior to 3.6.2) allows unauthenticated remote attackers to execute arbitrary code with full operating system privileges through CORS misconfiguration. A malicious website can inject JavaScript into the Electron-based application's Node.js context via the permissive API (Access-Control-Allow-Origin: * with Access-Control-Allow-Private-Network: true), which executes with OS-level access when the user next opens SiYuan's interface. No public exploit identified at time of analysis, though CVSS 9.6 (Critical) reflects network-accessible attack vector with low complexity requiring only user interaction (visiting malicious site while SiYuan runs). EPSS data not provided, but the combination of Electron framework exploitation, RCE impact, and trivial attack complexity suggests elevated real-world risk for desktop users.
RemediationAI
Upgrade immediately to SiYuan version 3.6.2 or later, released February 2025, which patches the permissive CORS configuration. The vendor-released patch is available at https://github.com/siyuan-note/siyuan/releases/tag/v3.6.2 and addresses the API security boundary by restricting cross-origin access. Users should verify the installed version and apply updates through the application's built-in update mechanism or by downloading the patched release directly from the GitHub releases page. No workarounds are documented; upgrading is the only confirmed remediation. After upgrading, review any custom plugins or scripts for similar CORS misconfigurations. Organizations deploying SiYuan should audit endpoint exposure and consider network segmentation to limit localhost API accessibility. Refer to the security advisory at https://github.com/siyuan-note/siyuan/security/advisories/GHSA-68p4-j234-43mv for additional technical details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in go, 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 Electron-based personal knowledge management system that embeds a local API server. The vulnerability stems from CWE-942 (Overly Permissive Cross-Origin Resource Sharing), where the application's API endpoints expose wildcard CORS headers (Access-Control-Allow-Origin: *) combined with Access-Control-Allow-Private-Network: true. This configuration allows any website origin to make authenticated requests to SiYuan's localhost API. In Electron applications, JavaScript executed within the renderer process can access Node.js APIs if nodeIntegration is enabled or context isolation is improperly configured. The attack chain involves: (1) victim visits attacker-controlled website while SiYuan runs, (2) malicious JavaScript uses permissive CORS to inject payloads via SiYuan's API, (3) injected code persists and executes in Electron's privileged Node.js context on next UI launch, granting full filesystem and process execution capabilities. This represents a critical architectural flaw in Electron security boundaries where web content can bridge into native OS access.
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
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
SiYuan is a personal knowledge management system. Prior to version 3.6.2, a malicious website can achieve Remote Code Execution (RCE) on any desktop running SiYuan by exploiting the permissive CORS policy (Access-Control-Allow-Origin: * + Access-Control-Allow-Private-Network: true) to inject a JavaScript snippet via the API. The injected snippet executes in Electron's Node.js context with full OS access the next time the user opens SiYuan's UI. No user interaction is required beyond visiting the malicious website while SiYuan is running. This issue has been patched in version 3.6.2.
Executive ViewAI
SiYuan desktop application versions prior to 3.6.2 contain a critical remote code execution vulnerability exploitable through CORS misconfiguration, allowing unauthenticated attackers to execute arbitrary code with full OS privileges if a user visits a malicious website while the application is running. This affects all organizations and users deploying SiYuan for note-taking and knowledge management, with potential for complete system compromise and data exfiltration. Immediate action is required as no vendor patch is currently available.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict SiYuan to isolated network segments or air-gapped environments until patched; (2) disable all SiYuan instances in production until vendor releases fix; (3) implement browser isolation or web filtering to prevent users from visiting untrusted sites while SiYuan is active; (4) monitor process execution logs for unexpected child processes spawned from SiYuan; (5) escalate directly with vendor for emergency patching timeline and consider alternative knowledge management solutions if patch timeline is unacceptable.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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
Vendor StatusVendor
SUSE
Severity: Critical| Product | Status |
|---|---|
| SUSE Linux Enterprise Server 16.1 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Affected |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Affected |
| openSUSE Leap 15.5 | Affected |
| openSUSE Leap 15.6 | Affected |
EUVD-2026-17676
GHSA-68p4-j234-43mv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB