RCE in SiYuan Bazaar via XSS in Package Metadata and README
CVE-2026-56395 is a critical vulnerability in SiYuan before version 3.6.1 affecting the Bazaar marketplace. SiYuan fails to properly sanitize package metadata and README content rendered in Bazaar listings, specifically fields such as displayName, description, and README. A malicious package author can embed arbitrary HTML and JavaScript into those fields. When another user browses the Bazaar marketplace, the injected script executes in the Electron application context. Because the attack can leverage Electron's nodeIntegration setting, the XSS condition can be escalated from script execution in the UI to operating system command execution, resulting in remote code execution on the client system.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a malicious Bazaar package author to compromise users who browse the Bazaar marketplace. The attacker can achieve arbitrary HTML/JavaScript execution in the victim's SiYuan client and, by abusing Electron nodeIntegration, escalate this to execution of OS commands. This can result in full remote code execution in the context of the victim user, with corresponding confidentiality, integrity, and availability impact on the affected host.
If you can’t patch tonight, do this now.
Until upgrades are completed, avoid browsing or installing packages from untrusted Bazaar authors or sources. Treat Bazaar package metadata and README content as untrusted content, and review package listings cautiously. Reducing or disabling risky Electron capabilities such as nodeIntegration for untrusted rendered content would also reduce exposure, but specific vendor-supported hardening guidance beyond upgrading is not provided in the available content.
Patch, then assume compromise.
Upgrade SiYuan to version 3.6.1 or later, which is the referenced fixed version. Ensure Bazaar-rendered package metadata and README content are sanitized and not rendered in a way that permits active HTML/JavaScript execution. If managing deployments centrally, prioritize patching all SiYuan clients earlier than 3.6.1.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
3 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.