Description
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.
Affected products
b3log: siyuan
References4
- github.com/siyuan-note/siyuan/security/advisories/GHSA-68p4-j23… ExploitVendor Advisory
- github.com/siyuan-note/siyuan/security/advisories/GHSA-68p4-j23… ExploitVendor Advisory
- github.com/siyuan-note/siyuan/issues/17246 Issue Tracking
- github.com/siyuan-note/siyuan/releases/tag/v3.6.2 Release Notes
Metrics
- CVSS 3.1
-
9.6
CRITICAL
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H - EPSS — exploit probability
- 1% percentile: 44 · as of 12 November 2026
- CWE
- CWE-942
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.