CVE-2026-41421: SiYuan Desktop Notification XSS Leads to Electron RCE

Published Apr 24, 2026
·
Updated

SiYuan is an open-source personal knowledge management system. Prior to 3.6.5, SiYuan desktop renders notification messages as raw HTML inside an Electron renderer. The notification route POST /api/notification/pushMsg accepts a user-controlled msg value, forwards it through the backend broadcast layer, and the frontend inserts it into the DOM with insertAdjacentHTML(...) at message.ts. On desktop builds, this is not limited to ordinary XSS. Electron windows are created with nodeIntegration: true, contextIsolation: false, and webSecurity: false at main.js. As a result, JavaScript executed from the notification sink can directly access Node APIs and escalate to desktop code execution. This vulnerability is fixed in 3.6.5.

Affected Software

1 affected component
SiYuan SiYuan Desktop<3.6.5

Event History

Apr 24, 2026
CVE Published
via MITRE·06:53 PM
Data Sourced
via MITRE·06:53 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness
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-41421?

CVE-2026-41421 is considered a high-severity vulnerability that can lead to remote code execution due to improper handling of HTML in notifications.

2

How do I fix CVE-2026-41421?

To fix CVE-2026-41421, upgrade SiYuan Desktop to version 3.6.5 or later.

3

What type of vulnerability is CVE-2026-41421?

CVE-2026-41421 is categorized as a cross-site scripting (XSS) vulnerability that can lead to remote code execution.

4

Who is affected by CVE-2026-41421?

Users of SiYuan Desktop prior to version 3.6.5 are affected by CVE-2026-41421.

5

What can be exploited through CVE-2026-41421?

CVE-2026-41421 can be exploited by an attacker to execute arbitrary code on a vulnerable system through manipulated notification messages.

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