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

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で修正されました。

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

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

Publication Date May 5, 2026, midnight
Registration Date May 11, 2026, 11:12 a.m.
Last Update May 11, 2026, 11:12 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
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 (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月11日]
  掲載
May 11, 2026, 11:12 a.m.

NVD Vulnerability Information
CVE-2026-35453
Summary

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.

Publication Date May 6, 2026, 5:16 a.m.
Registration Date May 7, 2026, 4:07 a.m.
Last Update May 9, 2026, 2:08 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
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
Related information, measures and tools
Common Vulnerabilities List