CyberRota Analysis
AI-GeneratedSiYuan versions prior to 3.7.4 are vulnerable to a cross-site scripting (XSS) flaw in the file-tree picker's hover-tooltip generation, allowing attackers to inject arbitrary HTML and event handlers into the aria-label attribute. This vulnerability can lead to arbitrary OS command execution due to the application's insecure configuration, where the Electron environment has node integration enabled and context isolation disabled. Organizations using SiYuan should prioritize patching this vulnerability to mitigate the risk of exploitation through shared or imported documents.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
SiYuan before v3.7.4 contains a cross-site scripting vulnerability in the file-tree picker's hover-tooltip generation (app/src/util/pathName.ts, getLeaf()/movePathTo()) used by the 'move/link to' path-selection dialogs, where document metadata fields (bookmark, alias, memo, and an alternate name field) are concatenated into the aria-label HTML attribute without escaping. A document crafted with a double quote in any of these fields breaks out of the attribute context and injects arbitrary HTML attributes including inline event handlers (e.g., onmouseover). Because every SiYuan Electron BrowserWindow runs with nodeIntegration:true, contextIsolation:false, and no CSP, the injected handler gains require('child_process') access, escalating the XSS to arbitrary OS command execution when a victim merely hovers over the malicious document entry in the path-picker dialog. Malicious documents reach victims via sharing, sync, or import.