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

- 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.27%, higher than 19% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-14T23:12:18.000Z
- Modified: 2026-07-08T07:14:00.908Z
- Also known as: GHSA-8q5w-mmxf-48jg, GO-2026-5260
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## 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:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A: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 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-8q5w-mmxf-48jg> (exploit, advisory, third-party-advisory, web)
- <https://github.com/siyuan-note/siyuan/commit/b382f50e1880ed996364509de5a10a72d7409428> (patch, web)
- <https://github.com/advisories/GHSA-4663-4mpg-879v> (advisory, third-party-advisory, web)
- <https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33066> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40922> (advisory)
- <https://github.com/siyuan-note/siyuan> (package)

## Sources

- CVE List: [CVE-2026-40922](https://www.cve.org/CVERecord?id=CVE-2026-40922), CVE Terms of Use, modified 2026-04-20
- GitHub Advisory Database: [GHSA-8q5w-mmxf-48jg](https://github.com/advisories/GHSA-8q5w-mmxf-48jg), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2026-5260](https://pkg.go.dev/vuln/GO-2026-5260), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40922](https://nvd.nist.gov/vuln/detail/CVE-2026-40922), Public domain, modified 2026-06-17

---

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