SiYuan: Bazaar marketplace renders unescaped package `name` and `version` metadata, allowing stored XSS and Electron code execution
Published May 14, 2026
9.0
CRITICALCVSS 3.1
EPSS 0.41%
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
-
- Version <= 3.6.5StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Siyuan-Note | Siyuan | n/a |
|
No data.
No data.
No Red Hat product state for this CVE.
github.com/siyuan-note/siyuan/kernel
Go
Introduced 0 Fixed not fixed
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/siyuan-note/siyuan/kernel | 0 | not fixed |
Remediation
No remediation recorded yet.
References (4)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-30356 Advisory
- https://github.com/advisories/GHSA-27qc-m5gf-jv5r Advisory
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-27qc-m5gf-jv5r exploitx_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2026-45375
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-30356 | Advisory | |
| https://github.com/advisories/GHSA-27qc-m5gf-jv5r | Advisory | |
| https://github.com/siyuan-note/siyuan/security/advisories/GHSA-27qc-m5gf-jv5r | exploitx_refsource_CONFIRM | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-45375 |
Change history (0)
No recorded changes yet.