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

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-24T18:53:49.983Z
- Modified: 2026-06-17T10:46:42.063Z
- Weaknesses: CWE-78, CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- siyuan-note siyuan: < 3.6.5

## References

- <https://github.com/siyuan-note/siyuan/security/advisories/GHSA-grjj-6f6g-cq8q> (exploit)

## Sources

- CVE List: [CVE-2026-41421](https://www.cve.org/CVERecord?id=CVE-2026-41421), CVE Terms of Use, modified 2026-04-25
- NVD: [CVE-2026-41421](https://nvd.nist.gov/vuln/detail/CVE-2026-41421), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-41421 · Whole record: https://cve.day/CVE-2026-41421.json · Rebuilt by cve.day 2026-11-25T22:59:19.575Z
