Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
Back to intelligence
endpoint-software-vulnerabilitywidely-deployed-product-advisoryproof-of-concept-release

Critical SiYuan Stored XSS Flaw Enables RCE in Electron Desktop Client

Updated 9h agoFirst seen Jun 24, 20263 sources

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.

Share:
Critical SiYuan Stored XSS Flaw Enables RCE in Electron Desktop Client
Stay ahead

Get ahead of threats like this

Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.

EVENT TIMELINE

How this story unfolded

4 events from the most recent confirmed update back to the earliest known activity.

4 EVENTS
Jun 24, 20261d ago

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.

CVE-2026-54158 - SiYuan: Stored XSS to RCE via attribute-view cell rendering in genAVValueHTML()

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.

CVE-2026-54158 - SiYuan: Stored XSS to RCE via attribute-view cell rendering in genAVValueHTML()
Jun 3, 202622d ago

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.

Stored XSS to RCE via Unsanitized Attribute View Asset Cell Content · Advisory · siyuan-note/siyuan · GitHub
Apr 21, 20262mo ago

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.

Stored XSS to RCE via attribute-view cell rendering in genAVValueHTML() · Advisory · siyuan-note/siyuan · GitHub
LINKED ENTITIES

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

12 LINKEDOpen in app
The operational view lives in Mallory

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t — which of your assets are affected, which threat actors are using it right now, which detections to deploy, and what to do next.
Exposure mapping

Map indicators from this story to your assets and identify affected systems in minutes.

Threat actor evidence

Every observed campaign, victim, and pivot linked to actors named in this story.

Associated malware

Malware, exploits, and IOCs connected to the activity described here.

Detection signatures

YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.

Scheduled alerts

Get matching new stories delivered to your team as they break — not the next morning.

AI threads

Ask questions about this story and take action on the answers.