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

Published Apr 16, 2026
·
Updated

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.

Affected Software

2 affected components
SiYuan SiYuan>=3.6.1<=3.6.3
b3log SiYuan>=3.6.1<3.6.4

Event History

Apr 16, 2026
CVE Published
via MITRE·11:14 PM
Data Sourced
via MITRE·11:14 PM
DescriptionWeakness
Apr 17, 2026
Data Sourced
via NVD·01:17 AM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40922?

CVE-2026-40922 has a moderate severity due to the potential for stored XSS attacks.

2

How do I fix CVE-2026-40922?

To fix CVE-2026-40922, upgrade SiYuan to version 3.6.4 or later.

3

What versions are affected by CVE-2026-40922?

CVE-2026-40922 affects SiYuan versions 3.6.1 through 3.6.3.

4

What type of vulnerability is CVE-2026-40922?

CVE-2026-40922 is a cross-site scripting (XSS) vulnerability.

5

What causes CVE-2026-40922?

CVE-2026-40922 is caused by incomplete sanitization of content in the bazaar README.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203