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
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
siyuan-note siyuan
Default version status: unaffected
0 to < 3.8.4affected
References
- https://github.com/siyuan-note/siyuan/commit/6f093ebe50afc503e2a8b056164293054f8509e7 ↗
- https://github.com/siyuan-note/siyuan ↗
- https://github.com/siyuan-note/siyuan/security/advisories/GHSA-c5h9-g2c6-fxjw ↗
- https://github.com/siyuan-note/siyuan/blob/v3.8.3/app/src/util/Tree.ts#L134 ↗
- https://www.vulncheck.com/advisories/siyuan-before-3.8.4-cross-site-scripting-via-document-title ↗