# CVE-2026-40922: SiYuan: Incomplete sanitization of bazaar README allows stored XSS via iframe srcdoc (incomplete fix for CVE-2026-33066)

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-16 · Modified: 2026-04-20
- Aliases: GHSA-8q5w-mmxf-48jg, GO-2026-5260
- Record: https://cvemate.com/vulnerability/CVE-2026-40922 · JSON: https://cvemate.com/vulnerability/CVE-2026-40922/json

## Description

```text
SiYuan is an open-source personal knowledge management system. In versions 3.6.1 through 3.6.3, a prior fix for XSS in bazaar README rendering (incomplete fix for CVE-2026-33066) enabled the Lute HTML sanitizer, but the sanitizer does not block iframe tags, and its URL-prefix blocklist does not effectively filter srcdoc attributes which contain raw HTML rather than URLs. A malicious bazaar package author can include an iframe with a srcdoc attribute containing embedded scripts in their README. When other users view the package in SiYuan's marketplace UI, the payload executes in the Electron context with full application privileges, enabling arbitrary code execution on the user's machine. This issue has been fixed in version 3.6.4.
```

## Signals

- CVSS: 5.4 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.271%, percentile 20.778%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- b3log siyuan: ≥ 3.6.1, \< 3.6.4
- github.com/siyuan-note/siyuan kernel (Go): \< 0.0.0-20260414013942-62eed37a3263
- siyuan-note siyuan: \< 3.6.4

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-8q5w-mmxf-48jg>
- <https://github.com/siyuan-note/siyuan/commit/b382f50e1880ed996364509de5a10a72d7409428>
- <https://github.com/advisories/GHSA-4663-4mpg-879v>
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33066>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40922>
- <https://github.com/siyuan-note/siyuan>

---

Data as of 2026-12-05T08:15:48.128Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
