Description
SiYuan before v3.7.4 fails to properly escape database menu metadata in HTML interpolation, allowing stored values to execute script when users open group, view, or field-edit menus. Attackers can inject markup through field descriptions or names that close containing elements and execute arbitrary code via event handlers, reaching Node built-ins due to Electron's insecure configuration.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| siyuan-note | siyuan | < 3.7.4 | 3.7.4 |
References
- GitHub Security Advisory (GHSA-gcm3-qcq3-72rv) vendor-advisory
- VulnCheck Advisory: SiYuan before v3.7.4 Remote Code Execution via Menu Metadata third-party-advisory