Vulnerability · Published Jun 21, 2026 · Assigned by VulnCheck

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

Critical 9.6

In plain English

A critical-severity cross-site scripting in SiYuan from SiYuan. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.6Critical
Exploit odds (30 days)0.5%top 57.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/siyuan-note/siyuan/kernelno fix listedGHSA-v3mg-9v85-fcm7
Gogithub.com/siyuan-note/siyuan/kernel0.0.0-20260317012524-fe4523fff2c8GO-2026-4720

Affected products (as reported)

VendorProductVersions
SiYuan SiYuan 0 – before 3.6.1

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

References