Advisory · CVE-2026-130679
Stored XSS in SiYuan attribute views can run OS commands
SiYuan before 3.8.10 leaves an image src attribute unescaped in Attribute View values, letting an attacker who can store values run scripts that execute OS commands in the desktop app.
- Vendor
- SiYuan
- Product
- SiYuan
- Identifier / CWE
- CVE-2026-130679
CWE-79 - Action timing
- Immediate
Explain it like I’m five
SiYuan lets people save pictures in a table, but it forgets to check one part of the picture's address. A booby-trapped address runs a script when someone opens the note, and in the desktop app that script can run commands on their computer.
- 01Malicious value stored
An attacker who can store Attribute View asset values saves an image URL containing a double quote and an onerror handler.
- 02Victim opens the note
A victim opens the bound note or row attribute panel.
- 03Script executes
The unescaped image src attribute injects the script through genAVValueHTML().
- 04OS commands run
In the desktop app, the script executes OS commands via Node.js.
What happened
SiYuan before 3.8.10 contains a stored cross-site scripting vulnerability in genAVValueHTML(). Attackers who can store Attribute View asset values can inject script through an unescaped image src attribute by storing an image URL containing a double quote and an onerror handler. The script executes when a victim opens the bound note or row attribute panel, and in the desktop app it can execute OS commands via Node.js.
The GitHub security advisory rates it critical at CVSS 9.0. SiYuan 3.8.10 fixes the flaw.
What to do
- Inventory SiYuan deployments, including desktop installs and shared workspaces.
- Upgrade to SiYuan 3.8.10 or later using the project release guidance.
- Audit shared workspaces and Attribute Views for suspicious stored values, especially image URLs.
- Review logs for unusual attribute value writes by untrusted accounts.
- If exploitation is suspected, review affected machines for persistence and unexpected processes.
Management note
This turns a stored note value into code execution on a victim’s machine, so the fix matters most where workspaces are shared with people outside the trust boundary.