B3logのSiYuanにおける複数の脆弱性
| Title |
B3logのSiYuanにおける複数の脆弱性
|
| Summary |
SiYuanはオープンソースのパーソナル知識管理システムです。バージョン3.6.3以下では、MermaidダイアグラムがsecurityLevelを「loose」に設定してレンダリングされ、その結果得られるSVGがinnerHTMLを介してDOMに挿入されます。これにより、攻撃者が制御可能なjavascript: URLをMermaidコードブロック内に含めた場合、それがレンダリング出力に残存します。Electronを使用したデスクトップビルドでは、windowがnodeIntegrationを有効にし、contextIsolationを無効にして作成されるため、保存されたXSSがエスカレートします。被害者が悪意のあるMermaidブロックを含むノートを開き、レンダリングされたダイアグラムノードをクリックすると任意のコードを実行できます。この問題はバージョン3.6.4で修正されました。
|
| Possible impacts |
当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う全ての情報が書き換えられる可能性があります。 さらに、当該ソフトウェアが完全に停止する可能性があります。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 |
| Solution |
正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date |
April 16, 2026, midnight |
| Registration Date |
April 21, 2026, 10:44 a.m. |
| Last Update |
April 21, 2026, 10:44 a.m. |
|
CVSS3.0 : 緊急
|
| Score |
9
|
| Vector |
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Affected System
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
Change Log
| No |
Changed Details |
Date of change |
| 1 |
[2026年04月21日] 掲載 |
April 21, 2026, 10:44 a.m. |
NVD Vulnerability Information
CVE-2026-40322
| Summary |
SiYuan is an open-source personal knowledge management system. In versions 3.6.3 and below, Mermaid diagrams are rendered with securityLevel set to "loose", and the resulting SVG is injected into the DOM via innerHTML. This allows attacker-controlled javascript: URLs in Mermaid code blocks to survive into the rendered output. On desktop builds using Electron, windows are created with nodeIntegration enabled and contextIsolation disabled, escalating the stored XSS to arbitrary code execution when a victim opens a note containing a malicious Mermaid block and clicks the rendered diagram node. This issue has been fixed in version 3.6.4.
|
| Publication Date |
April 17, 2026, 8:16 a.m. |
| Registration Date |
April 18, 2026, 4:10 a.m. |
| Last Update |
April 20, 2026, 11:51 p.m. |
Affected software configurations
| Configuration1 |
or higher |
or less |
more than |
less than |
| cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* |
|
|
|
3.6.4 |
Related information, measures and tools
Common Vulnerabilities List