CVE-2026-56397: SiYuan Vulnerable to Remote Code Execution via Malicious Bazaar Package — Marketplace XSS
(updated )
SiYuan’s Bazaar (community marketplace) renders plugin/theme/template metadata and README content without sanitization. A malicious package author can achieve RCE on any user who browses the Bazaar by:
- Package metadata XSS (zero-click): Package
displayNameanddescriptionfields are injected directly into HTML via template literals without escaping. Just loading the Bazaar page triggers execution. - README XSS (one-click): The
renderREADMEfunction useslute.New()withoutSetSanitize(true), so raw HTML in the README passes through toinnerHTMLunsanitized.
Both vectors execute in Electron’s renderer with nodeIntegration: true and contextIsolation: false, giving full OS command execution.
References
Code Behaviors & Features
Detect and mitigate CVE-2026-56397 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →