CVE-2026-40922: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
SiYuan versions 3. 6. 1 through 3. 6. 3 contain a cross-site scripting (XSS) vulnerability due to incomplete sanitization of iframe tags with srcdoc attributes in bazaar README rendering. This allows a malicious package author to embed scripts that execute in the Electron application context with full privileges when viewed by other users. The issue is fixed in version 3. 6. 4.
AI Analysis
Technical Summary
The vulnerability in SiYuan (versions 3.6.1 to 3.6.3) arises from an incomplete fix for a prior XSS issue in bazaar README rendering. The Lute HTML sanitizer was enabled but does not block iframe tags, and its URL-prefix blocklist fails to filter srcdoc attributes containing raw HTML. A malicious bazaar package author can exploit this by embedding an iframe with a crafted srcdoc attribute that includes executable scripts. When other users view the package in the marketplace UI, the scripts run in the Electron context with full application privileges, enabling arbitrary code execution on the user's machine. This vulnerability is addressed in SiYuan version 3.6.4.
Potential Impact
Successful exploitation allows arbitrary code execution within the Electron application context on the victim's machine, potentially compromising the user's system with the same privileges as the application. This could lead to unauthorized actions or data compromise within the user's environment.
Mitigation Recommendations
Upgrade SiYuan to version 3.6.4 or later, where this vulnerability has been fixed. Since this is a client-side application vulnerability, applying the official update is the recommended remediation. Patch status is confirmed by the vendor stating the issue is fixed in version 3.6.4.
CVE-2026-40922: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in siyuan-note siyuan
Description
SiYuan versions 3. 6. 1 through 3. 6. 3 contain a cross-site scripting (XSS) vulnerability due to incomplete sanitization of iframe tags with srcdoc attributes in bazaar README rendering. This allows a malicious package author to embed scripts that execute in the Electron application context with full privileges when viewed by other users. The issue is fixed in version 3. 6. 4.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in SiYuan (versions 3.6.1 to 3.6.3) arises from an incomplete fix for a prior XSS issue in bazaar README rendering. The Lute HTML sanitizer was enabled but does not block iframe tags, and its URL-prefix blocklist fails to filter srcdoc attributes containing raw HTML. A malicious bazaar package author can exploit this by embedding an iframe with a crafted srcdoc attribute that includes executable scripts. When other users view the package in the marketplace UI, the scripts run in the Electron context with full application privileges, enabling arbitrary code execution on the user's machine. This vulnerability is addressed in SiYuan version 3.6.4.
Potential Impact
Successful exploitation allows arbitrary code execution within the Electron application context on the victim's machine, potentially compromising the user's system with the same privileges as the application. This could lead to unauthorized actions or data compromise within the user's environment.
Mitigation Recommendations
Upgrade SiYuan to version 3.6.4 or later, where this vulnerability has been fixed. Since this is a client-side application vulnerability, applying the official update is the recommended remediation. Patch status is confirmed by the vendor stating the issue is fixed in version 3.6.4.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-15T20:40:15.517Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69e1716682d89c981fde6ff9
Added to database: 4/16/2026, 11:31:50 PM
Last enriched: 4/16/2026, 11:46:52 PM
Last updated: 4/17/2026, 12:52:40 AM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.