Description
SiYuan is an open-source personal knowledge management system. Prior to 3.7.1, SiYuan renders note and package content to HTML through the Lute engine with sanitization enabled, but Lute's dangerous javascript scheme block does not check form action or SVG xlink:href attributes, allowing stored cross-site scripting in document export-preview and Bazaar package README render paths that can execute OS commands in the Electron desktop renderer. This issue is fixed in versions 3.7.1.
Problem types
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CWE-94: Improper Control of Generation of Code ('Code Injection')
CWE-116: Improper Encoding or Escaping of Output
Product status
References
github.com/...siyuan/security/advisories/GHSA-97xv-3v84-h358
github.com/...siyuan/security/advisories/GHSA-97xv-3v84-h358
github.com/...ommit/ebe252e61fb93f258d083b9da0fa403679fdf94a
github.com/siyuan-note/siyuan/releases/tag/v3.7.1