SiYuan Stored XSS in Attribute View Leads to Remote Code Execution (CVE-2026-130679)

SiYuan before 3.8.10 contains a stored XSS vulnerability in genAVAttributeValueHTML() allowing attackers to inject script via unescaped image src attribute, leading to OS command execution in desktop app.

CVE-2026-130679 is a stored cross-site scripting (XSS) vulnerability in SiYuan, a note-taking application. The flaw exists in the genAVAttributeValueHTML() function, which fails to properly escape image src attributes in Attribute View asset values. An attacker who can store such values can inject a crafted image URL containing a double quote and an onerror event handler. When a victim opens the bound note or row attribute panel in the desktop app, the handler executes arbitrary JavaScript, which can then invoke Node.js APIs to run OS commands. This effectively allows remote code execution on the victim's machine. The issue affects SiYuan versions before 3.8.10. The vendor has released a fix in version 3.8.10. The vulnerability is documented in the NVD entry and the vendor advisory GHSA-3qqh-fmrp-8vfq, with a commit addressing the issue.

What to do

1. Upgrade SiYuan to version 3.8.10 or later, which contains the fix for this vulnerability. 2. If immediate upgrade is not possible , restrict the ability to store Attribute View asset values to trusted users only. 3. Review and sanitize any user-supplied image URLs in Attribute View to prevent injection of event handlers. 4. Monitor for any suspicious activity or unauthorized command execution in desktop environments. 5. Verify the vendor advisory (GHSA-3qqh-fmrp-8vfq) for additional details and recommended mitigations.

Sources