Critical SiYuan Stored XSS Flaw Enables RCE in Electron Desktop Client
SiYuan disclosed a critical stored cross-site scripting vulnerability that can escalate to remote code execution in its Electron desktop client. The flaw affects versions prior to 3.7.0 and stems from unsafe HTML rendering in attribute-view cells, including the genAVValueHTML() function and asset cell handling, where attacker-controlled content in text, URL, phone, and asset fields is inserted into innerHTML without proper escaping. Researchers said the issue can be triggered when a victim opens a note, loads the block-attribute panel for a crafted row, or in some cases hovers over malicious content that is re-rendered through tooltip HTML.
The impact is amplified by insecure Electron settings, notably nodeIntegration: true and contextIsolation: false, which allow injected JavaScript to reach Node.js APIs and execute system commands. Malicious payloads can be stored unchanged in workspace attribute-view JSON data, then spread through normal sync or collaborative workflows and execute on other devices that render the affected content. The vulnerability is tracked as CVE-2026-54158, carries a CVSS 9.9 rating, and has been fixed in SiYuan 3.7.0; advisories recommend upgrading and applying stronger output encoding and safer Electron hardening to prevent similar XSS-to-RCE chains.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
4 events from the most recent confirmed update back to the earliest known activity.
CVE-2026-54158 published with critical severity
CVE-2026-54158 was published on June 24, 2026 as a critical SiYuan vulnerability with a CVSS 3.1 score of 9.9. The entry describes a stored XSS flaw in genAVValueHTML() that can escalate to remote code execution on Electron desktop deployments.
SiYuan 3.7.0 fixes CVE-2026-54158
The CVE entry states the stored XSS-to-RCE issue tracked as CVE-2026-54158 is fixed in SiYuan version 3.7.0. Affected versions are those prior to 3.7.0.
GitHub advisories disclose stored XSS-to-RCE flaws in SiYuan
Two GitHub security advisories published on June 3, 2026 disclosed stored XSS vulnerabilities in SiYuan's attribute-view rendering, including unsafe asset cell and genAVValueHTML() handling. Both reports state the flaws can lead to remote code execution in the Electron desktop client because of insecure renderer settings.
SiYuan v3.6.5 released with vulnerable attribute-view rendering
The advisory identifies affected code at commit HEAD 96dfe0b, corresponding to SiYuan v3.6.5 dated 2026-04-21. This version contains stored XSS flaws in attribute-view cell rendering that can be escalated to RCE in Electron desktop builds.
Related entities
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
Sources
3 references tracked. Mallory keeps watching after this page renders.
CVE-2026-54158 - SiYuan: Stored XSS to RCE via attribute-view cell rendering in genAVValueHTML()
cvefeed.io
Open sourceStored XSS to RCE via Unsanitized Attribute View Asset Cell Content · Advisory · siyuan-note/siyuan · GitHub
github.com
Open sourceStored XSS to RCE via attribute-view cell rendering in genAVValueHTML() · Advisory · siyuan-note/siyuan · GitHub
github.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


