diagramsのdrawioにおけるクロスサイトスクリプティングの脆弱性
タイトル diagramsのdrawioにおけるクロスサイトスクリプティングの脆弱性
概要

draw.ioは設定可能なダイアグラムおよびホワイトボードアプリケーションです。バージョン29.7.12より前のバージョンでは、細工された.drawioファイルを開くとエディターのオリジンで任意のJavaScriptを実行できます。この脆弱性は、レンダリングパス上で正しく動作するラベルサニタイザにはなく、生のセルラベルを読み取り、サニタイズせずに切り離された要素のinnerHTMLに割り当てるText Formatパネルの機能検出ルーチンにあります。ブラウザは切り離された要素でも画像読み込み失敗時にonerrorを発火させるため、任意のセルラベルに含まれるimg src=x onerror=...のペイロードはセルが選択されるとすぐにスクリプトを実行します。セルの選択はimport時に自動的に行われます。この問題はバージョン29.7.12で修正されました。

想定される影響 ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 
対策

ベンダ情報を参照して適切な対策を実施してください。

公表日 2026年6月10日0:00
登録日 2026年6月17日15:39
最終更新日 2026年6月17日15:39
CVSS3.0 : 警告
スコア 6.1
ベクター CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
影響を受けるシステム
diagrams
drawio 29.7.12 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
その他
変更履歴
No 変更内容 変更日
1 [2026年06月17日]
  掲載
2026年6月17日15:39

NVD脆弱性情報
CVE-2026-46642
概要

draw.io is a configurable diagramming and whiteboarding application. Prior to version 29.7.12, a crafted .drawio file can execute arbitrary JavaScript in the editor's origin when the file is opened. The vulnerability is not in the label sanitizer (which works correctly on the rendering path) but in a feature-detection routine in the Text Format panel that reads the raw cell label and assigns it to a detached element's innerHTML without sanitization. Browsers fire onerror for failed image loads even on detached elements, so an <img src=x onerror=...> payload in any cell label triggers script execution as soon as the cell is selected — which import does automatically. This issue has been patched in version 29.7.12.

公表日 2026年6月11日3:17
登録日 2026年6月11日4:18
最終更新日 2026年6月16日22:54
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:diagrams:drawio:*:*:*:*:*:*:*:* 29.7.12
関連情報、対策とツール
共通脆弱性一覧