# CVE-2026-33066: SiYuan has Stored XSS to RCE via Unsanitized Bazaar README Rendering

- Severity: Medium 5.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- 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.67%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-18T16:09:24.000Z
- Modified: 2026-07-08T07:14:01.052Z
- Also known as: GHSA-4663-4mpg-879v, GO-2026-4743
- Related: CVE-2026-40922
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

SiYuan is a personal knowledge management system. In versions 3.6.0 and below, the backend renderREADME function uses lute.New() without calling SetSanitize(true), allowing raw HTML embedded in Markdown to pass through unmodified. The frontend then assigns the rendered HTML to innerHTML without any additional sanitization. A malicious package author can embed arbitrary JavaScript in their README that executes when a user clicks to view the package details. Because SiYuan's Electron configuration enables nodeIntegration: true with contextIsolation: false, this XSS escalates directly to full Remote Code Execution. The issue was patched in version 3.6.1.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.6.1
- github.com/siyuan-note/siyuan/kernel (Go): before 0.0.0-20260314111550-b382f50e1880
- b3log siyuan: before 3.6.1

## Every score

- GitHub_M: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- NVD: 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-4663-4mpg-879v> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/siyuan-note/siyuan/commit/b382f50e1880ed996364509de5a10a72d7409428> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33066> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-33066](https://www.cve.org/CVERecord?id=CVE-2026-33066), CVE Terms of Use, modified 2026-03-20
- GitHub Advisory Database: [GHSA-4663-4mpg-879v](https://github.com/advisories/GHSA-4663-4mpg-879v), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2026-4743](https://pkg.go.dev/vuln/GO-2026-4743), CC-BY-4.0, modified 2026-03-23
- NVD: [CVE-2026-33066](https://nvd.nist.gov/vuln/detail/CVE-2026-33066), Public domain, modified 2026-06-17

---

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