SiYuanでマーケットのREADMEから管理者のブラウザ上でスクリプトを実行される
概要
SiYuanのBazaarマーケットに公開されたパッケージのREADMEに仕込まれたイベントハンドラーが実行される脆弱性です。管理者がパッケージの一覧を表示して操作すると、ワークスペースを乗っ取られるおそれがあります。対象はバージョン3.7.0より前のSiYuanで、3.7.0で修正されています。3.7.0以降へアップデートしてください。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
github.com/siyuan-note/siyuan/kernel という製品で、CVE-2026-54070 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに renderPackageREADME のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
機密情報が外部に流出する可能性があります。重要度は CVSS スコア 7.1/10 です。
対策: github.com/siyuan-note/siyuan/kernel を 0.0.0-20260628153353-2d5d72223df4 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「github.com/siyuan-note/siyuan/kernel CVE-2026-54070」を検索してください。
CVE-2026-54070 (github.com/siyuan-note/siyuan/kernel) — CWE-184 / CVSS v3 7.1
攻撃ベクター: ネットワーク経由 (リモート攻撃可) / 認証不要
脆弱箇所: renderPackageREADME / allowAttr / eventAttrs / onpointerover
修正バージョン: 0.0.0-20260628153353-2d5d72223df4 (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
github.com/siyuan-note/siyuan/kernel に 脆弱性 (CWE-184) があります。攻撃者は renderPackageREADME を経由して脆弱な処理に到達し、認証なしで悪用できます。
github.com/siyuan-note/siyuan/kernel の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: renderPackageREADME / allowAttr / eventAttrs / onpointerover。
重要度: 重要 (CVSS 7.1/10)。機密情報が外部に流出する可能性があります。
0.0.0-20260628153353-2d5d72223df4 に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1
影響範囲の特定identify
grep -r 'github.com/siyuan-note/siyuan/kernel' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
github.com/siyuan-note/siyuan/kernelを grep し、稼働しているサービス・バージョンを把握する。 -
2
パッチ適用patch
Upgrade github.com/siyuan-note/siyuan/kernel to 0.0.0-20260628153353-2d5d72223df4ステージング環境で 0.0.0-20260628153353-2d5d72223df4 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
事後検証verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
| パッケージ | 影響を受ける版 → 修正版 | |
|---|---|---|
| gogithub.com/siyuan-note/siyuan/kernel |
0.0.0-20260628153353-2d5d72223df4 未満→ 0.0.0-20260628153353-2d5d72223df4 |
0.0.0-20260628153353-2d5d72223df4 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
SiYuan is an open-source personal knowledge management system. Prior to 3.7.0, renderPackageREADME in kernel/bazaar/readme.go renders a Bazaar package README from Markdown to HTML with the lute engine and SetSanitize(true). The lute sanitizer is an event-handler blocklist: allowAttr rejects only attribute names present in a fixed eventAttrs map copied from the w3schools legacy handler list. That map omits modern event handlers. onpointerover, onpointerdown, onauxclick, onbeforetoggle, onfocusin, onanimationstart, and ontransitionend are not in the list, so the sanitizer passes them through verbatim on any tag. The frontend assigns the rendered HTML to mdElement.innerHTML in app/src/config/bazaar.ts with no client-side DOMPurify on this path, into a normal element in the main document (no iframe, no sandbox). The kernel sends no Content-Security-Policy, X-Frame-Options, or X-Content-Type-Options header on any response, so an inline handler runs when its event fires. The README is rendered when an Administrator opens a package in Settings → Marketplace, after the one-time marketplace trust consent. Install is not required. Result: a third-party Bazaar package author runs JavaScript in the Administrator's authenticated SiYuan origin when the Administrator views and interacts with the package listing, and gains full control of the workspace. This vulnerability is fixed in 3.7.0.
出典: NIST National Vulnerability Database NVD GitHub Advisory
参照URL
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com