SiYuan
SiYuan: Store XSS To Rce via Asset.render
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, Asset.render in app/src/asset/index.ts interpolates the unsanitized this.path value into HTML assigned to innerHTML, allowing a crafted asset link containing a double quote to break out of the src attribute, inject an event handler, and execute JavaScript that can run OS commands in the Electron renderer. This issue is fixed in versions 3.7.1-alpha.2 and 3.7.1.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.6high · scored by CNA · CWE-80
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
siyuan-note siyuan
- < 3.7.1
Fixed in 3.7.1
Mitigation
Upgrade siyuan to 3.7.1 or later.
References
- Vendor advisory github.com/siyuan-note/siyuan/security/advisor…
- Patch github.com/siyuan-note/siyuan/commit/efbe3a557…
- Release notes github.com/siyuan-note/siyuan/releases/tag/v3.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.