CVE-2026-40922 Details
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.
A stored cross-site scripting vulnerability has been identified in SiYuan versions 3.6.1 prior to 3.6.3. The issue arises from an incomplete fix for a previous XSS vulnerability, which allowed raw HTML to be embedded in README files for bazaar packages. The Lute HTML sanitizer, while enabled, does not effectively block iframe tags or properly filter srcdoc attributes. This oversight allows a malicious package author to inject an iframe with a srcdoc attribute containing scripts that execute in the Electron context, leading to arbitrary code execution on the user's machine.
Users can update to SiYuan version 3.6.4 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/siyuan-note/siyuan/security/advisories/GHSA-8q5w-mmxf-48jg | CISA-ADP | ExploitThird Party Advisory |
| https://github.com/advisories/GHSA-4663-4mpg-879v | [email protected] | Third Party Advisory |
| https://github.com/siyuan-note/siyuan/commit/b382f50e1880ed996364509de5a10a72d7409428 | [email protected] | Patch |
| https://github.com/siyuan-note/siyuan/releases/tag/v3.6.4 | [email protected] | Release Notes |
| https://github.com/siyuan-note/siyuan/security/advisories/GHSA-8q5w-mmxf-48jg | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| b3log siyuan | >= 3.6.1, < 3.6.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 20, 2026 | CVE Modified | CISA-ADP |
| Apr 20, 2026 | Initial Analysis | [email protected] |
| Apr 17, 2026 | New CVE Received | [email protected] |