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

PhpSpreadsheetはスプレッドシートファイルの読み書き用ライブラリです。バージョン1.30.3以前、2.0.0から2.1.15、2.2.0から2.4.4、3.3.0から3.10.4、および4.0.0から5.6.0において、HTMLライターはカスタム数値フォーマットで@テキストプレースホルダーと追加のリテラルテキスト(例:@ "items")を使用したセルに対してhtmlspecialchars()による出力エスケープをスキップしていました。エスケープは、フォーマットされた出力が元のセル値と厳密に等しい場合にのみ適用されます。フォーマットコードに@と引用符付きリテラルテキストが含まれる場合、フォーマッタは生のセル値をフォーマット文字列に代入し、エスケープコールバックを呼び出さずに早期に処理を終了します。HTMLライターで処理されるスプレッドシートのセル内容を制御できる攻撃者は、生成される出力に任意のHTMLおよびJavaScriptを注入可能です。この問題はバージョン1.30.4、2.1.16、2.4.5、3.10.5、および5.7.0で修正されました。

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

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

公表日 2026年5月5日0:00
登録日 2026年5月11日11:12
最終更新日 2026年5月11日11:12
CVSS3.0 : 警告
スコア 5.4
ベクター CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
影響を受けるシステム
PHPOffice
PhpSpreadsheet 1.30.4 未満
PhpSpreadsheet 2.0.0 以上 2.1.16 未満
PhpSpreadsheet 2.2.0 以上 2.4.5 未満
PhpSpreadsheet 3.3.0 以上 3.10.5 未満
PhpSpreadsheet 4.0.0 以上 5.7.0 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
変更履歴
No 変更内容 変更日
1 [2026年05月11日]
  掲載
2026年5月11日11:12

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

PhpSpreadsheet is a library for reading and writing spreadsheet files. In versions 1.30.3 and earlier, 2.0.0 through 2.1.15, 2.2.0 through 2.4.4, 3.3.0 through 3.10.4, and 4.0.0 through 5.6.0, the HTML Writer skips htmlspecialchars() output escaping when a cell uses a custom number format containing the @ text placeholder with additional literal text (e.g., @ "items"). The escaping is only applied when the formatted output strictly equals the original cell value. When the format code contains @ with quoted literal text, the formatter substitutes the raw cell value into the format string and returns early without invoking the escaping callback. An attacker who can control cell content in a spreadsheet processed by the HTML Writer can inject arbitrary HTML and JavaScript into the generated output. This issue has been fixed in versions 1.30.4, 2.1.16, 2.4.5, 3.10.5, and 5.7.0.

公表日 2026年5月6日5:16
登録日 2026年5月7日4:07
最終更新日 2026年5月9日2:08
影響を受けるソフトウェアの構成
構成1 以上 以下 より上 未満
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 1.30.4
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 2.0.0 2.1.16
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 2.2.0 2.4.5
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 3.3.0 3.10.5
cpe:2.3:a:phpoffice:phpspreadsheet:*:*:*:*:*:*:*:* 4.0.0 5.7.0
関連情報、対策とツール
共通脆弱性一覧