CVE-2026-56397 SiYuan - Remote Code Execution via Malicious Bazaar Package Metadata and README

Critical 9.4 Published Updated

Attackers can achieve remote code execution by injecting malicious scripts into Bazaar marketplace metadata, exploiting Electron's nodeIntegration setting.

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
Available

What is CVE-2026-56397?

CVE-2026-56397 is a critical cross-site scripting vulnerability in SiYuan, published on 21 Jun 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 before v3.6.1 fails to sanitize package metadata and README content in the Bazaar marketplace, allowing malicious package authors to inject arbitrary HTML and JavaScript. Attackers can achieve remote code execution on any user browsing the Bazaar by embedding XSS payloads in package displayName, description, or README fields, exploiting Electron's nodeIntegration setting to execute OS commands.

Weakness: CWE-79

Which versions are affected by CVE-2026-56397?

How do I fix CVE-2026-56397?

Upgrade to a fixed version.

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-56397 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-56397 exists.

Sources

Is CVE-2026-56397 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free