{"cve":"CVE-2026-40922","nvd":{"published":"2026-04-17T01:17:40.447","modified":"2026-06-17T10:45:53.327","status":"Modified","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.","cvss_v4":{"vector":"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","score":5.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4},"cwes":["CWE-79"],"references":["https://github.com/advisories/GHSA-4663-4mpg-879v","https://github.com/siyuan-note/siyuan/commit/b382f50e1880ed996364509de5a10a72d7409428","https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-8q5w-mmxf-48jg","https://github.com/siyuan-note/siyuan/security/advisories/GHSA-8q5w-mmxf-48jg"],"products":["b3log:siyuan"],"source":"nvd","synced_at":"2026-10-19T22:30:49.762551342+00:00"},"epss":{"cve":"CVE-2026-40922","score":0.00261,"percentile":0.17907,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-8q5w-mmxf-48jg","url":"https://osv.dev/vulnerability/GHSA-8q5w-mmxf-48jg","summary":"SiYuan has incomplete fix for CVE-2026-33066: XSS","modified":"2026-07-08T07:14:00.908282413Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260414013942-62eed37a3263"],"fixed":["0.0.0-20260414013942-62eed37a3263"]}]},{"id":"GO-2026-5260","url":"https://osv.dev/vulnerability/GO-2026-5260","summary":"SiYuan has incomplete fix for CVE-2026-33066: XSS in github.com/siyuan-note/siyuan/kernel","modified":"2026-06-25T19:45:23.133793396Z","packages":[{"ecosystem":"Go","name":"github.com/siyuan-note/siyuan/kernel","purl":"pkg:golang/github.com/siyuan-note/siyuan/kernel","ranges":["<0.0.0-20260414013942-62eed37a3263"],"fixed":["0.0.0-20260414013942-62eed37a3263"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}