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

- Severity: Critical 9.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-13T15:33:57.000Z
- Modified: 2026-06-17T10:51:59.083Z
- Also known as: GHSA-27qc-m5gf-jv5r, GO-2026-5001
- Weaknesses: CWE-79, CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: <= 3.6.5
- github.com/siyuan-note/siyuan/kernel (Go): up to 0.0.0-20260421031503-96dfe0bea474; all versions

## Every score

- GitHub_M: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-27qc-m5gf-jv5r> (exploit, advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45375> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-45375](https://www.cve.org/CVERecord?id=CVE-2026-45375), CVE Terms of Use, modified 2026-05-16
- GitHub Advisory Database: [GHSA-27qc-m5gf-jv5r](https://github.com/advisories/GHSA-27qc-m5gf-jv5r), CC-BY-4.0, modified 2026-06-08
- Go Vulnerability Database: [GO-2026-5001](https://pkg.go.dev/vuln/GO-2026-5001), CC-BY-4.0, modified 2026-05-20
- NVD: [CVE-2026-45375](https://nvd.nist.gov/vuln/detail/CVE-2026-45375), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-45375 · Whole record: https://cve.day/CVE-2026-45375.json · Rebuilt by cve.day 2026-11-25T22:59:21.753Z
