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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/siyuan-note/siyuan/kernel | no fix listed | GHSA-v3mg-9v85-fcm7 |
| Go | github.com/siyuan-note/siyuan/kernel | 0.0.0-20260317012524-fe4523fff2c8 | GO-2026-4720 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
- GHSA Advisory GHSA-v3mg-9v85-fcm7 vendor-advisory
- VulnCheck Advisory: SiYuan - Remote Code Execution via Malicious Bazaar Package Metadata and README third-party-advisory