github.com/siyuan-note/siyuan/kernel の脆弱性 (CVE-2026-40318)
概要
github.com/siyuan-note/siyuan/kernel に 脆弱性 (CVE-2026-40318) が存在。不正な操作・情報露出のリスクがあります。`POST /api/av/removeUnusedAttributeView` 経由で攻撃可能。対策: `3.6.40.0.0-20260407035653-2f416e5253f1` 以上に更新。
AI要約 snake-internal / snake-material-v2
対応アクション (7段階)
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 し、稼働しているサービス・バージョンを把握する。
-
3ログでの侵入兆候検索 detect
grep 'POST /api/av/removeUnusedAttributeView' /var/log/nginx/access.log | grep -E '(unusual_payload|sqli_pattern)'アクセスログで `POST /api/av/removeUnusedAttributeView` への異常なリクエスト (不正な認証ヘッダ・SQLメタ文字)を過去 30〜90日分捜索。WAF/SIEM があれば該当パスのアラート発火履歴を確認。
-
6パッチ適用 patch
Upgrade github.com/siyuan-note/siyuan/kernel to 3.6.40.0.0-20260407035653-2f416e5253f1ステージング環境で 3.6.40.0.0-20260407035653-2f416e5253f1 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスと、Step 3 で見つけた異常検知の続報チェックを含めること。
-
7事後検証 verify
Replay attack against POST /api/av/removeUnusedAttributeView on staging to confirm patch closes the vectorパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番では Step 3 と同じログクエリでアラート再発が無いか継続監視。