製品・ソフトウェアに関する情報
B3logのSiYuanにおけるクロスサイトスクリプティングの脆弱性
Title B3logのSiYuanにおけるクロスサイトスクリプティングの脆弱性
Summary

SiYuanはオープンソースの個人知識管理システムです。バージョン3.6.1から3.6.3にかけて、bazaarのREADMEレンダリングに関するXSSの以前の修正でLute HTMLサニタイザーが有効になりましたが、このサニタイザーはiframeタグをブロックせず、URLプレフィックスのブロックリストはsrcdoc属性を効果的にフィルタリングできませんでした。悪意のあるbazaarパッケージの作成者は、READMEに埋め込みスクリプトを含むsrcdoc属性付きiframeを挿入できます。これにより、他のユーザーがSiYuanのマーケットプレイスUIでそのパッケージを閲覧すると、ペイロードがElectronコンテキスト内でフルアプリケーション権限を持って実行され、ユーザーのマシン上で任意のコードが実行される可能性がありました。この問題はバージョン3.6.4で修正されました。

Possible impacts 当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃により、他のソフトウェアにも影響が及ぶ可能性があります。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date April 17, 2026, midnight
Registration Date April 21, 2026, 10:44 a.m.
Last Update April 21, 2026, 10:44 a.m.
CVSS3.0 : 警告
Score 5.4
Vector CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected System
B3log
SiYuan 3.6.1 以上 3.6.4 未満
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-40922
Summary

SiYuan is an open-source personal knowledge management system. In versions 3.6.1 through 3.6.3, a prior fix for XSS in bazaar README rendering (incomplete fix for CVE-2026-33066) enabled the Lute HTML sanitizer, but the sanitizer does not block iframe tags, and its URL-prefix blocklist does not effectively filter srcdoc attributes which contain raw HTML rather than URLs. A malicious bazaar package author can include an iframe with a srcdoc attribute containing embedded scripts in their README. When other users view the package in SiYuan's marketplace UI, the payload executes in the Electron context with full application privileges, enabling arbitrary code execution on the user's machine. This issue has been fixed in version 3.6.4.

Publication Date April 17, 2026, 10:17 a.m.
Registration Date April 18, 2026, 4:10 a.m.
Last Update April 21, 2026, 1:16 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:b3log:siyuan:*:*:*:*:*:*:*:* 3.6.1 3.6.4
Related information, measures and tools
Common Vulnerabilities List