Description
SiYuan before 3.8.4 renders document titles as HTML in the backlink dock tree without escaping markup characters. Attackers can set malicious titles through the rename API or crafted notebooks to execute scripts in the Electron renderer with access to child_process for command execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| siyuan-note | siyuan | < 3.8.4 | 3.8.4 |
References
- Patch Commit patch
- https://github.com/siyuan-note/siyuan product
- GitHub Security Advisory (GHSA-c5h9-g2c6-fxjw) vendor-advisory
- https://github.com/siyuan-note/siyuan/blob/v3.8.3/app/src/util/Tree.ts#L134 technical-description
- VulnCheck Advisory: SiYuan before 3.8.4 Cross-Site Scripting via Document Title third-party-advisory