Skip to content

CVE-2026-45375 SiYuan: Bazaar marketplace renders unescaped package `name` and `version` metadata, allowing stored XSS and Electron code execution

CriticalCVSS 9.0 EPSS 0.32%
Published
Updated
Exploit status
No public exploit known

Description

SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, SiYuan's Bazaar (community marketplace) renders the name and version fields of a package's plugin.json (and the equivalent theme.json / template.json / widget.json / icon.json) into the Settings → Marketplace UI without HTML escaping. The kernel-side helper sanitizePackageDisplayStrings in kernel/bazaar/package.go HTML-escapes only Author, DisplayName, and Description — Name and Version flow through to the renderer raw. The frontend at app/src/config/bazaar.ts substitutes them into HTML template strings via ${item.preferredName} / ${data.name} / v${data.version} and assigns the result to innerHTML. As a consequence, malicious HTML in either field is parsed and executed when a user opens the marketplace tab. This vulnerability is fixed in 3.7.0.

Affected products

ProductAffected versionsFixed in
siyuan-note siyuan = <= 3.6.5 No fix listed
siyuan-note github.com/siyuan-note/siyuan/kernel(Go) <= 0.0.0-20260421031503-96dfe0bea474 No fix listed
siyuan-note github.com/siyuan-note/siyuan/kernel(Go) All versions No fix listed

References