CVE-2026-59855 SiYuan: Store XSS To Rce via Asset.render
Attackers can execute arbitrary OS commands via stored XSS in SiYuan by injecting malicious JavaScript into asset paths rendered in the Electron interface.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-59855?
CVE-2026-59855 is a high-severity cross-site scripting vulnerability in siyuan-note siyuan, published on 9 Jul 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, Asset.render in app/src/asset/index.ts interpolates the unsanitized this.path value into HTML assigned to innerHTML, allowing a crafted asset link containing a double quote to break out of the src attribute, inject an event handler, and execute JavaScript that can run OS commands in the Electron renderer. This issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.
Weakness: CWE-80
Which versions are affected by CVE-2026-59855?
How do I fix CVE-2026-59855?
No fix has been published for CVE-2026-59855 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-59855 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-59855 exists.
Sources
Also known as GHSA-w3gq-5j72-36vc.