Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
siyuan-note siyuan
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

SiYuan是SiYuan开源的一个个人知识管理系统。 SiYuan 3.6.1至3.6.3版本存在安全漏洞,该漏洞源于Lute HTML清理程序未阻止iframe标签,且其URL前缀阻止列表未有效过滤包含原始HTML而非URL的srcdoc属性,可能导致恶意集市包作者在README中包含带有srcdoc属性的iframe,进而执行任意代码。

AI Predicted 9.1 Difficulty: Easy EPSS 0.38% · P30
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-40922

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
SiYuan: Incomplete sanitization of bazaar README allows stored XSS via iframe srcdoc (incomplete fix for CVE-2026-33066)
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5
Vulnerability Title
SiYuan 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
SiYuan是SiYuan开源的一个个人知识管理系统。 SiYuan 3.6.1至3.6.3版本存在安全漏洞,该漏洞源于Lute HTML清理程序未阻止iframe标签,且其URL前缀阻止列表未有效过滤包含原始HTML而非URL的srcdoc属性,可能导致恶意集市包作者在README中包含带有srcdoc属性的iframe,进而执行任意代码。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
siyuan-note siyuan < 3.6.4 -

II. Public POCs for CVE-2026-40922

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40922

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-40922 (1)

Vendor Advisories for CVE-2026-40922 (2)

Same Patch Batch · siyuan-note · 2026-04-16 · 4 CVEs total

CVE-2026-40322 9.1 CRITICAL SiYuan: Mermaid `javascript:` Link Injection Leads to Stored XSS and Electron RCE
CVE-2026-40318 8.5 HIGH SiYuan: Publish Reader Path Traversal Delete via `removeUnusedAttributeView`
CVE-2026-40259 8.1 HIGH SiYuan: Publish Reader Can Arbitrarily Delete Attribute View Files via removeUnusedAttribu

IV. Related Vulnerabilities

V. Comments for CVE-2026-40922

No comments yet


Leave a comment